 | DoubleSparseVector(Double, IndexArray) Constructor |
Constructs a DoubleSparseVector instance from the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic DoubleSparseVector(
double[] nonZeroEntries,
IndexArray indices
)
Public Sub New (
nonZeroEntries As Double(),
indices As IndexArray
)
public:
DoubleSparseVector(
array<double>^ nonZeroEntries,
IndexArray^ indices
)
new :
nonZeroEntries : float[] *
indices : IndexArray -> DoubleSparseVector
Parameters
- nonZeroEntries Double
- 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
RemarksThe input data is copied.
See Also