# Abs

Computes absolute value of vector elements.

## Syntax

Fortran:

call vsabs( n, a, y )

call vdabs( n, a, y )

call vcabs( n, a, y )

call vzabs( n, a, y )

C:

vsAbs( n, a, y );

vdAbs( n, a, y );

vcAbs( n, a, y );

vzAbs( n, a, y );

## Input Parameters

Name | Type | Description
--- | --- | ---
n | FORTRAN: INTEGER, INTENT(IN) C: int | Specifies the number of elements to be calculated.
a | FORTRAN: REAL, INTENT(IN) for vsabs DOUBLE PRECISION, INTENT(IN) for vdabs COMPLEX, INTENT(IN) for vcabs DOUBLE COMPLEX, INTENT(IN) for vzabs C: const float* for vsAbs const double* for vdAbs const MKL_Complex8* for vcAbs const MKL_Complex16* for vzAbs | FORTRAN: Arrays, specify the input vector a. C: Pointers to arrays that contain the input vector a.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vsabs, vcabs DOUBLE PRECISION for vdabs, vzabs C: float* for vsAbs, vcAbs double* for vdAbs, vzAbs | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Arithmetic Functions