TriangularMatrix<T>.SetValue Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

SetValue(T) Sets all elements of the matrix to the specified value.
SetValue(T, Int32, Int32) Sets the matrix component at the specified position to the specified value.
SetValue<R, C>(T, R, C) Sets the value at the specified row and column key value.
Preliminary

SetValue(T, Int32, Int32)

Sets the matrix component at the specified position to the specified value.
C#
public override void SetValue(
	T value,
	int row,
	int column
)

Parameters

value  T
The new value of the component.
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

The component 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 effect may be unpredictable.

Exceptions

ComponentReadOnlyExceptionFor an storedTriangle-triangular matrix (IsUpperTriangular is true), you try to set an component below the diagonal.

-or-

For a lower-triangular matrix (IsLowerTriangularis true), you try to set an component above the diagonal.

-or-

The matrix has IsUnitDiagonal set to true, and you try to set a diagonal component.

See Also