SparseMatrix<T>.SubtractAt Method

Subtracts a value from the element at the specified location.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public virtual void SubtractAt(
	int row,
	int column,
	T value
)

Parameters

row  Int32
The row of the component.
column  Int32
The column of the component.
value  T
The value to be subtracted from the component.

Remarks

Looking up a component in a sparse matrix is a relatively expensive operation. It is therefore more efficient to get and set the value of a component in one function call that performs the lookup only once.

See Also