# Mul

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

## Syntax

Fortran:

call vsmul( n, a, b, y )

call vdmul( n, a, b, y )

call vcmul( n, a, b, y )

call vzmul( n, a, b, y )

C:

vsMul( n, a, b, y );

vdMul( n, a, b, y );

vcMul( n, a, b, y );

vzMul( 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 vsmul DOUBLE PRECISION, INTENT(IN) for vdmul COMPLEX, INTENT(IN) for vcmul DOUBLE COMPLEX, INTENT(IN) for vzmul C: const float* for vsMul const double* for vdMul const MKL_Complex8* for vcMul const MKL_Complex16* for vzMul | 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 vsmul DOUBLE PRECISION for vdmul COMPLEX, for vcmul DOUBLE COMPLEX for vzmul C: float* for vsMul double* for vdMul MKL_Complex8* for vcMul MKL_Complex16* for vzMul | FORTRAN: Array, specifies the output vector y. C: Pointer to an array that contains the output vector y.

Parent topic: Arithmetic Functions