v?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 );

Include Files

The FORTRAN 77 interfaces are specified in the mkl_vml.f77 include file, the Fortran 95 interfaces are specified in the mkl_vml.f90 include file, and the C interfaces are specified in the mkl_vml_functions.h include file.

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

DOUBLE PRECISION for vdsqr

Fortran 90: REAL, INTENT(IN) for vssqr

DOUBLE PRECISION, INTENT(IN) for vdsqr

C: const float* for vsSqr

const double* for vdSqr

FORTRAN: Array that specifies the input vector a.

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

Output Parameters

Name

Type

Description

y

FORTRAN 77: REAL for vssqr

DOUBLE PRECISION for vdsqr

Fortran 90: REAL, INTENT(OUT) for vssqr

DOUBLE PRECISION, INTENT(OUT) for vdsqr

C: float* for vsSqr

double* for vdSqr

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

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.