SparseCompressedColumnMatrix<T>.SwapRows Method

Interchanges the specified rows of the matrix.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public override Matrix<T> SwapRows(
	int row1,
	int row2
)

Parameters

row1  Int32
The first row.
row2  Int32
The second row.

Return Value

Matrix<T>

Exceptions

ArgumentOutOfRangeException

row1 is less than zero or greater than or equal to the number of rows in the matrix.

-or-

row2 is less than zero or greater than or equal to the number of rows in the matrix.

See Also