Swaps the columns with the specified indices.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Matrix<T> SwapColumns(
int column1,
int column2
)
Public Overridable Function SwapColumns (
column1 As Integer,
column2 As Integer
) As Matrix(Of T)
public:
virtual Matrix<T>^ SwapColumns(
int column1,
int column2
)
abstract SwapColumns :
column1 : int *
column2 : int -> Matrix<'T>
override SwapColumns :
column1 : int *
column2 : int -> Matrix<'T>
Parameters
- column1
- Type: SystemInt32
The zero-based index of the first column. - column2
- Type: SystemInt32
The zero-based index of the second column.
Return Value
Type:
MatrixTA reference to this instance.
Exception | Condition |
---|
ArgumentOutOfRangeException | 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. |
Reference