Click or drag to resize

SparseVectorDataTSetData Method

Sets the sparse vector data of self to the given values.

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

Parameters

nonZeroEntries  T
The non-zero values in 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
Number of non-zero.
copyData  Boolean
Copy data or not.
See Also