| SparseVectorDataT(T, IndexArray) 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
)
Protected Sub New (
nonZeroEntries As T(),
indices As IndexArray
)
protected:
SparseVectorData(
array<T>^ nonZeroEntries,
IndexArray^ indices
)
new :
nonZeroEntries : 'T[] *
indices : IndexArray -> 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
Remarks The input data is copied.
See Also