# Sqr

Performs element by element squaring of the vector.

## Syntax

Fortran:

call vssqr( n, a, y )

call vdsqr( n, a, y )

C:

vsSqr( n, a, y );

vdSqr( 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 vssqr DOUBLE PRECISION, INTENT(IN) for vdsqr C: const float* for vsSqr const double* for vdSqr | 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 vssqr DOUBLE PRECISION for vdsqr C: float* for vsSqr double* for vdSqr | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Arithmetic Functions