v?Sqr

Performs element by element squaring of the vector.

Syntax

FORTRAN:

call vssqr( n, a, y )

call vmssqr( n, a, y, mode )

call vdsqr( n, a, y )

call vmdsqr( n, a, y, mode )

C:

vsSqr( n, a, y );

vmsSqr( n, a, y, mode );

vdSqr( n, a, y );

vmdSqr( n, a, y, mode );

Include Files

Input Parameters

Name

Type

Description

n

FORTRAN 77: INTEGER

Fortran 90: INTEGER, INTENT(IN)

C: const int

Specifies the number of elements to be calculated.

a

FORTRAN 77: REAL for vssqr, vmssqr

DOUBLE PRECISION for vdsqr, vmdsqr

Fortran 90: REAL, INTENT(IN) for vssqr, vmssqr

DOUBLE PRECISION, INTENT(IN) for vdsqr, vmdsqr

C: const float* for vsSqr, vmssqr

const double* for vdSqr, vmdsqr

FORTRAN: Array that specifies the input vector a.

C: Pointer to an array that contains the input vector a.

mode

FORTRAN 77: INTEGER*8

Fortran 90: INTEGER(KIND=8), INTENT(IN)

C: const MKL_INT64

Overrides global VML mode setting for this function call. See vmlSetMode for possible values and their description.

Output Parameters

Name

Type

Description

y

FORTRAN 77: REAL for vssqr, vmssqr

DOUBLE PRECISION for vdsqr, vmdsqr

Fortran 90: REAL, INTENT(OUT) for vssqr, vmssqr

DOUBLE PRECISION, INTENT(OUT) for vdsqr, vmdsqr

C: float* for vsSqr, vmssqr

double* for vdSqr, vmdsqr

FORTRAN: Array that specifies the output vector y.

C: Pointer to an array that contains the output vector y.

Description

The v?Sqr function performs element by element squaring of the vector.

Special Values for Real Function v?Sqr(x)
Argument Result Exception
+0 +0  
-0 +0  
+ +  
- +  
QNAN QNAN  
SNAN QNAN INVALID

Submit feedback on this help topic