Skip to main content

m2_transpose

m2_transpose(out, m) ⇒ Array.<number>

Transposes a 2x2 matrix, stored in a flattened array.

Kind: global function
Returns: Array.<number> - The out parameter.

ParamTypeDescription
outArray.<number>Output: The transposed matrix. Can be the same array as m.
mArray.<number>Input: The 2x2 matrix to transpose, stored as a flattened array [a, b, c, d], representing [[a, c], [b, d]].