Click or drag to resize

SparseVectorDataT(T, IndexArray, Int32, Boolean) Constructor

Constructs a SparseVectorData instance from the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
protected SparseVectorData(
	T[] nonZeroEntries,
	IndexArray indices,
	int numberNonZero,
	bool copyData
)

Parameters

nonZeroEntries  T
The non-zero entries of the sparse vector.
indices  IndexArray
The indices of the non-zero entries such that the index of ith non-zero entry is
C#
indices[i]
.
numberNonZero  Int32
The number of non-zero entries in the sparse vector.
copyData  Boolean
If true the input data will be copied. If false the input data will be referenced.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if the length of either
C#
nonZeroEntries
or
C#
indices
is less than
C#
numberNonZero
.
See Also