Matrix<T>.GetNearestColumn<C> Method

Gets the column nearest to the specified column key.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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