Matrix<T>.Get<R, C> Method

Gets the value with the specified key.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
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

T
The value with row key rowKey and column key columnKey.

Exceptions

InvalidOperationException

The matrix does not have a row or column index.

InvalidCastException

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.

KeyNotFoundException

rowKey was not found in the row index.

-or-

columnKey was not found in the column index.

See Also