Distributed Matrix<T>.Set Value Method
Definition
Namespace: Numerics.NET.Distributed
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
Overload List
| Set | Sets all elements of the matrix to the specified value. |
| Set | Sets the matrix element at the specified position to the specified value. |
| Set | Sets the value at the specified row and column key value. |
SetValue(T)
Sets all elements of the matrix to the specified value.
public override Matrix<T> SetValue(
T value
)Parameters
- value T
- The new value.
Return Value
Matrix<T>This matrix.
Exceptions
| Component | One or more elements cannot be written. |
SetValue(T, Int32, Int32)
Sets the matrix element at the specified position to the specified value.
public override void SetValue(
T value,
int row,
int column
)Parameters
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 effect may be unpredictable.
This virtual member remains a compatibility extension point for existing derived matrix types. New derived types should override UnsafeSetValue(T, Int32, Int32).Exceptions
| Component | The selected element cannot be written. |