fromArray

fun fromArray(array: DoubleArray, offset: Int = 0): Matrix2

Sets the elements of the matrix from the given array.

Return

A reference to this matrix.

Parameters

array

The matrix elements in column-major order.

offset

Index of the first element in the array.