SparseMatrix<T>.InsertEntries Method

Inserts a set of values at the specified positions in the sparse matrix.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual void InsertEntries(
	T[] values,
	int[] rows,
	int[] columns
)

Parameters

values  T[]
Array of values to insert.
rows  Int32[]
Array of zero-based row indexes where the elements of values are to be inserted.
columns  Int32[]
Array zero-based column indexes where the elements of values are to be inserted.

Remarks

Existing nonzero components are overwritten. If the same row and column appear multiple times, then only the last value is entered.

Exceptions

ArgumentNullException

values is null

-or-

rows is null

-or-

columns is null

DimensionMismatchException

The length of rows is not equal to the length of values.

-or-

The length of columns is not equal to the length of values.

See Also