| SparseVectorDataT(T, IndexArray, Int32, Boolean) Constructor |
Constructs a SparseVectorData instance from the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected SparseVectorData(
T[] nonZeroEntries,
IndexArray indices,
int numberNonZero,
bool copyData
)
Protected Sub New (
nonZeroEntries As T(),
indices As IndexArray,
numberNonZero As Integer,
copyData As Boolean
)
protected:
SparseVectorData(
array<T>^ nonZeroEntries,
IndexArray^ indices,
int numberNonZero,
bool copyData
)
new :
nonZeroEntries : 'T[] *
indices : IndexArray *
numberNonZero : int *
copyData : bool -> SparseVectorData
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 .
- 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 See Also