Matrix<T>.SwapRowsAndColumns Method

Swaps the elements in the specified rows and columns simultaneously.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
C#
public virtual Matrix<T> SwapRowsAndColumns(
	int index1,
	int index2
)

Parameters

index1  Int32
Zero-based index of the first row and column.
index2  Int32
Zero-based index of the second row and column.

Return Value

Matrix<T>
A reference to this instance.

Remarks

This method swaps row index1 with row index2 and column index1 with column index2.

See Also