fromRowMajorArray
fun fromRowMajorArray(values: ReadonlyArray<Double>, result: Matrix2? = definedExternally): Matrix2(source)
Creates a Matrix2 instance from a row-major order array. The resulting matrix will be in column-major order.
Return
The modified result parameter, or a new Matrix2 instance if one was not provided.
Parameters
values
The row-major order array.
result
The object in which the result will be stored, if undefined a new instance will be created.