DenseMatrix<T, TSlice, TStorage2D>.SwapRows Method

Swaps the elements in the specified rows.

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
Zero-based index of the first row.
row2  Int32
Zero-based index of 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