| SparseVectorDataTSetData Method |
Sets the sparse vector data of self to the given values.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected void SetData(
T[] nonZeroEntries,
IndexArray indices,
int numberNonZero,
bool copyData
)
Protected Sub SetData (
nonZeroEntries As T(),
indices As IndexArray,
numberNonZero As Integer,
copyData As Boolean
)
protected:
void SetData(
array<T>^ nonZeroEntries,
IndexArray^ indices,
int numberNonZero,
bool copyData
)
member SetData :
nonZeroEntries : 'T[] *
indices : IndexArray *
numberNonZero : int *
copyData : bool -> unit
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
- numberNonZero Int32
- Number of non-zero.
- copyData Boolean
- Copy data or not.
See Also