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
Type: T
The non-zero values in the sparse vector.
indices
Type: CenterSpace.NMath.CoreIndexArray
>The indices of the non-zero entries such that the index of ith non-zero entry is
indices[i]
numberNonZero
Type: SystemInt32
Number of non-zero.
copyData
Type: SystemBoolean
Copy data or not.
See Also