Function

vDSP_mmov(_:_:_:_:_:_:)

Copies the contents of a submatrix to another submatrix; single precision.

Declaration

func vDSP_mmov(_ __A: UnsafePointer<Float>, _ __C: UnsafeMutablePointer<Float>, _ __M: vDSP_Length, _ __N: vDSP_Length, _ __TA: vDSP_Length, _ __TC: vDSP_Length)

Parameters

__A

Single-precision real input submatrix.

__C

Single-precision real output submatrix.

__M

Number of columns in A and C

__N

Number of rows in A and C

__TA

Number of columns in the matrix of which A is a submatrix.

__TC

Number of columns in the matrix of which C is a submatrix.

Discussion

The matrices are assumed to be stored in row-major order. Thus elements A[i][j] and A[i][j+1] are adjacent. Elements A[i][j] and A[i+1][j] are TA elements apart.

This function may be used to move a subarray beginning at any point in a larger embedding array by passing for A the address of the first element of the subarray. For example, to move a subarray starting at A[3][4], pass &A[3][4]. Similarly, the address of the first destination element is passed for C

M may equal TA, and it may equal TC. To copy all of an array to all of another array, pass the number of rows in N and the number of columns in M, TA, and TC.

See Also

Matrix and Submatrix Copying

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software