DenseMatrix<T>.SwapRows Method

Swaps the elements in the specified rows.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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