Function

vDSP_mmul(_:_:_:_:_:_:_:_:_:)

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

Declaration

func vDSP_mmul(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Float>, _ __IB: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __M: vDSP_Length, _ __N: vDSP_Length, _ __P: vDSP_Length)

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