Matrix<T>.GetNearestColumn<C> Method

Gets the column nearest to the specified column key.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Vector<T> GetNearestColumn<C>(
	C key,
	Direction direction
)

Parameters

key  C
The key of the column to be returned.
direction  Direction
The direction to look for the key if an exact match is not found.

Type Parameters

C

Return Value

Vector<T>
The column with key key.

Exceptions

InvalidOperationException

The matrix does not have a column index.

InvalidCastException

The element type of the column index is not C.

See Also