Matrix<T>.Get<R, C> Method
Gets the value with the specified key.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
The value with row key rowKey and column key columnKey.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
public T Get<R, C>(
R rowKey,
C columnKey
)
Parameters
- rowKey R
- The key of the row to look up.
- columnKey C
- The key of the column to look up.
Type Parameters
- R
- The element type of the row index of the matrix.
- C
- The element type of the column index of the matrix.
Return Value
TThe value with row key rowKey and column key columnKey.
Exceptions
Invalid | The matrix does not have a row or column index. |
Invalid | The element type of the row index of the matrix is not R. -or- The element type of the column index of the matrix is not C. |
Key | rowKey was not found in the row index. -or- columnKey was not found in the column index. |