Skip to content
Chung Leong edited this page Jan 10, 2022 · 3 revisions

mm_mult - Matrix-Matrix multiplication

float[][] mm_mult( float[][] $m1, float[][] $m2 )

mm_mult() multiplies the matrix m1 by the matrix m2.

Parameters:

m1 - The first matrix. It can be a single two-dimensional array or an array of two-dimensional arrays.

m2 - The second matrix. It can be a single one-dimensional array or an array of two-dimensional arrays. The number of rows should match the number of columns in m1.

Return Value:

Matrix product of m1 and m2. If either m1 or m2 contains multiple matrices, the return value will be an array of matrices.

Version

1.0 and above.

Clone this wiki locally