Vector<T>.Get Value Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Get | Gets the vector element at the specified position. |
Get |
Gets the value at the specified key.
Preliminary |
GetValue<K>(K)
Gets the value at the specified key.
public T GetValue<K>(
K key
)
Parameters
- key K
- The key value.
Type Parameters
- K
- The type of the key.
Return Value
TThe value of the element with key key, or missing if the key could not be found.
Exceptions
Invalid | The vector is not indexed. |
Invalid | The type K does not match the element type of the index. |
GetValue(Int32)
Gets the vector element at the specified position.
public abstract T GetValue(
int index
)
Parameters
- index Int32
- The zero-based index of the element.
Return Value
TThe element of the Vector<T> in the indexth position.
Remarks
This method does not perform bounds checking. It is provided for optimized access in situations where the argument is known to be within bounds. If the argument is outside its valid range, the result is unspecified.