Matrix<T>.Swap Rows And Columns 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#
A reference to this instance.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
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.