# Add

Performs element by element addition of vector a and vector b.

## Syntax

Fortran:

call vsadd( n, a, b, y )

call vdadd( n, a, b, y )

call vcadd( n, a, b, y )

call vzadd( n, a, b, y )

C:

vsAdd( n, a, b, y );

vdAdd( n, a, b, y );

vcAdd( n, a, b, y );

vzAdd( n, a, b, y );

## Input Parameters

Name | Type | Description
--- | --- | ---
n | FORTRAN: INTEGER, INTENT(IN) C: int | Specifies the number of elements to be calculated.
a, b | FORTRAN: REAL, INTENT(IN) for vsadd DOUBLE PRECISION, INTENT(IN) for vdadd COMPLEX, INTENT(IN) for vcadd DOUBLE COMPLEX, INTENT(IN) for vzadd C: const float* for vsAdd const double* for vdAdd const MKL_Complex8* for vcAdd const MKL_Complex16* for vzAdd | FORTRAN: Arrays, specify the input vectors a and b. C: Pointers to arrays that contain the input vectors a and b.

## Output Parameters

Name | Type | Description
--- | --- | ---
y | FORTRAN: REAL for vsadd DOUBLE PRECISION for vdadd COMPLEX, for vcadd DOUBLE COMPLEX for vzadd C: float* for vsAdd double* for vdAdd MKL_Complex8* for vcAdd MKL_Complex16* for vzAdd | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Arithmetic Functions