DiagonalMatrix<T>.CopyTo Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0

Overload List

CopyTo(Matrix<T>) Copies the elements of this matrix to another matrix.
CopyTo(Array2D<T>, TransposeOperation) Copies the elements of this matrix to another matrix.
CopyTo(Matrix<T>, TransposeOperation) Copies the elements of this matrix to another matrix.
CopyTo(Span<T>, MatrixElementOrder)Copies the logical matrix elements into a destination span.

CopyTo(Span<T>, MatrixElementOrder)

Copies the logical matrix elements into a destination span.
C#
public override void CopyTo(
	Span<T> destination,
	MatrixElementOrder elementOrder = MatrixElementOrder.ColumnMajor
)

Parameters

destination  Span<T>
A span with room for at least RowCount * ColumnCount elements. Any remaining elements are unchanged.
elementOrder  MatrixElementOrder  (Optional)
The order in which to copy the elements.

Remarks

This method copies the logical values, including any transpose, conjugation, or structural interpretation of the matrix. Arguments are validated before writing to the destination.

Exceptions

ArgumentOutOfRangeExceptionelementOrder is not a supported order.
ArgumentExceptiondestination is too short.

See Also