Matrix<T>.Get Nearest Rows<R> Method
Returns a new matrix that contains only the rows
in the specified sequence.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A new matrix containing only the rows whose key is in keys.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public Matrix<T> GetNearestRows<R>(
IEnumerable<R> keys,
Direction direction
)
Parameters
- keys IEnumerable<R>
- A sequence of keys of the rows to return.
- direction Direction
- The direction to look for the key if an exact match is not found.
Type Parameters
- R
Return Value
Matrix<T>A new matrix containing only the rows whose key is in keys.
Exceptions
Argument | keys is null. |
Invalid | The matrix does not have a row index. |
Invalid | The element type of the row index is not R. |