Creates a matrix from an array.
[Visual Basic] Shared OverloadsPublic Function FromArray( _ ByVal matrix As Double(), _ ByVal cols As Integer, _ ByVal rowMajor As Boolean _ ) As Matrix [C#] public static Matrix FromArray( double[] matrix, int cols, bool rowMajor ); [C++] public: static Matrix* FromArray( double matrix __gc[], int cols, bool rowMajor ); [JScript] public static function FromArray( double[] matrix, int cols, bool rowMajor ): Matrix;
A matrix corresponding to the specified array.
Exception Type | Condition |
---|---|
ArgumentNullException | Thrown when matrix is null. |
ArgumentOutOfRangeException | Thrown when cols is less than one or matrix does not have a usable number of elements. |
Matrix Class | Lydos.Matlab Namespace | Matrix.FromArray Overload List