Matrix<T>.Set Value Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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.
Preliminary |
SetValue(T)
Sets all elements of the matrix to the specified value.
public virtual Matrix<T> SetValue(
T value
)
Parameters
- value T
- The new value.
Return Value
Matrix<T>SetValue(T, Int32, Int32)
Sets the matrix element at the specified position to the specified value.
public abstract 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.
SetValue<R, C>(T, R, C)
Sets the value at the specified row and column key value.
public void SetValue<R, C>(
T value,
R rowKey,
C columnKey
)
Parameters
- value T
- The value to assign.
- 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.
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. |