Matrix<T>.Swap Columns Method
Swaps the columns with the specified indices.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A reference to this instance.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual Matrix<T> SwapColumns(
int column1,
int column2
)
Parameters
- column1 Int32
- The zero-based index of the first column.
- column2 Int32
- The zero-based index of the second column.
Return Value
Matrix<T>A reference to this instance.
Exceptions
Argument | column1 is less than zero, or greather than or equal to the number of columns in the matrix. -or- column2 is less than zero, or greather than or equal to the number of columns in the matrix. |