Matrix<T>.Get Nearest Column<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#
The column with key key.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |