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

vm_mult - Vector-Matrix multiplication

float[] vm_mult( float[] $v, float[][] $m )

vm_mult() multiplies the vector v by the matrix m.

Parameters:

v - The vector. It can be a single one-dimensional array or an array of one-dimensional array. The width of the vector should match the number of rows in m.

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

Return Value:

Matrix product of v and m. If either v contains multiple vectors or m contains multiple matrices, the return value will be an array of vectors.

Version

1.0 and above.

Clone this wiki locally