Matrix<T>.Get Nearest Columns<C> 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 whose key is in keys.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Matrix<T> GetNearestColumns<C>(
IEnumerable<C> keys,
Direction direction
)
Parameters
- keys IEnumerable<C>
- A sequence of indexes of the columns to return.
- direction Direction
- The direction to look for the key if an exact match is not found.
Type Parameters
- C
Return Value
Matrix<T>A new matrix containing only the columns whose key is in keys.
Exceptions
Argument | keys is null. |
Invalid | The matrix does not have a column index. |
Invalid | The element type of the column index is not C. |