Matrix<T>.Get Nearest Row<R> Method
Gets the row nearest to the specified row key.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The row with key key.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public Vector<T> GetNearestRow<R>(
R key,
Direction direction
)
Parameters
- key R
- The key of the row to be returned.
- direction Direction
- The direction to look for the key if an exact match is not found.
Type Parameters
- R
Return Value
Vector<T>The row with key key.
Exceptions
Invalid | The matrix does not have a row index. |
Invalid | The element type of the row index is not R. |