Returns a new matrix that contains only the columns
in the specified sequence.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public Matrix<T> GetNearestColumns<C>(
IEnumerable<C> keys,
Direction direction
)
Public Function GetNearestColumns(Of C) (
keys As IEnumerable(Of C),
direction As Direction
) As Matrix(Of T)
public:
generic<typename C>
Matrix<T>^ GetNearestColumns(
IEnumerable<C>^ keys,
Direction direction
)
member GetNearestColumns :
keys : IEnumerable<'C> *
direction : Direction -> Matrix<'T>
Parameters
- keys
- Type: System.Collections.GenericIEnumerableC
A sequence of indexes of the columns to return. - direction
- Type: Extreme.DataAnalysisDirection
The direction to look for the key if an exact match is not found.
Type Parameters
- C
Return Value
Type:
MatrixTA new matrix containing only the columns
whose key is in
keys.
Reference