# Inv

Performs element by element inversion of the vector.

## Syntax

Fortran:

call vsinv( n, a, y )

call vdinv( n, a, y )

C:

vsInv( n, a, y );

vdInv( 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 vsinv DOUBLE PRECISION, INTENT(IN) for vdinv C: const float* for vsInv const double* for vdInv | FORTRAN: Array, specifies the input vector a. C: Pointer to an array that contains the input vector a.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vsinv DOUBLE PRECISION for vdinv C: float* for vsInv double* for vdInv | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Power and Root Functions