SparseMatrix<T>.IncrementNonzeroCount Method

Called by inheritors to increment the number of nonzero components by the specified amount.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
protected void IncrementNonzeroCount(
	int amount
)

Parameters

amount  Int32
The amount to increase the number of nonzero components by.

Remarks

All sparse matrix classes keep an independent count of the number of nonzero components in the matrix. This method is called by inheritors to adjust this value to keep it in sync with the actual data in the matrix.

See Also