Matrix<T>.Get Value Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Get | Gets the matrix element at the specified position. |
Get |
Gets the value at the specified row and column keys.
Preliminary |
GetValue<R, C>(R, C)
Gets the value at the specified row and column keys.
public T GetValue<R, C>(
R rowKey,
C columnKey
)
Parameters
- rowKey R
- The row key.
- columnKey C
- The column key.
Type Parameters
- R
- The element type of the row index.
- C
- The element type of the column index.
Return Value
TThe value of the element at row rowKey and column columnKey, or missing if either key could not be found.
Exceptions
Invalid | The vector is not indexed. |
Invalid | The type R does not match the element type of the row index. -or- The type C does not match the element type of the column index. |
GetValue(Int32, Int32)
Gets the matrix element at the specified position.
public abstract T GetValue(
int row,
int column
)
Parameters
- row Int32
- The zero-based row index of the element to get or set.
- column Int32
- The zero-based column index of the element to get or set.
Return Value
TThe element of the Matrix<T> in the columnth column of the rowth row.
Remarks
This method does not perform bounds checking. It is provided for optimized access in situations where the arguments are known to be within bounds. If either argument is outside its valid range, the result is unspecified.