Matrix<T>.GetNearestRow<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.4
C#
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

InvalidOperationException

The matrix does not have a row index.

InvalidCastException

The element type of the row index is not R.

See Also