Matrix<T>.ToArray Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

ToArray() Gets the elements of the vector.
ToArray(MatrixElementOrder) Gets the elements of the matrix.

ToArray

Gets the elements of the vector.
C#
public T[] ToArray()

Return Value

T[]
An array that contains the elements of the vector in column-major order.

ToArray(MatrixElementOrder)

Gets the elements of the matrix.
C#
public virtual T[] ToArray(
	MatrixElementOrder elementOrder
)

Parameters

elementOrder  MatrixElementOrder
A MatrixElementOrder value that specifies whether the elements should be listed by row or by column.

Return Value

T[]
An array that contains a copy of the elements of the matrix in the order specified by elementOrder.

See Also