Function

vDSP_mmul

Performs an out-of-place multiplication of two matrices; single precision.

Declaration

void vDSP_mmul(const float *__A, vDSP_Stride __IA, const float *__B, vDSP_Stride __IB, float *__C, vDSP_Stride __IC, vDSP_Length __M, vDSP_Length __N, vDSP_Length __P);

Parameters

__A

Single-precision real M-by-P input matrix.

__IA

Stride for A.

__B

Single-precision real P-by-N input matrix.

__IB

Stride for B.

__C

Single-precision real M-by-N result matrix.

__IC

Stride for C.

__M

The number of rows in matrices A and C.

__N

The number of columns in matrices B and C.

__P

The number of columns in matrix A and the number of rows in matrix B.

Discussion

This function multiplies an M-by-P matrix A by a P-by-N matrix B and stores the results in an M-by-N matrix C.

This performs the following operation:

mathematical formula

See Also

Matrix Multiplication (Real Matrices)

vDSP_mmulD

Performs an out-of-place multiplication of two matrices; double precision.