Matrix<T>.GetNearestRow<R> Method

Gets the row nearest to the specified row key.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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