Matrix<T>.Get Nearest Column<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#
The column with key key.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
Invalid | The matrix does not have a column index. |
Invalid | The element type of the column index is not C. |