Matrix<T>.Get Columns(IEnumerable<Int 32>) Method
Returns a new matrix that contains only the columns
in the specified sequence.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A new matrix containing only the columns at the positions in indexes.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Matrix<T> GetColumns(
IEnumerable<int> indexes
)
Parameters
- indexes IEnumerable<Int32>
- A sequence of indexes of the columns to return.
Return Value
Matrix<T>A new matrix containing only the columns at the positions in indexes.
Exceptions
Argument | indexes is null. |
Argument | At least one of the values in indexes is not a valid column index. |