Constructs a DoubleSparseVector instance from the given data.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleSparseVector( DoubleVector nonZeroEntries, IndexArray indices ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ nonZeroEntries As DoubleVector, _ indices As IndexArray _ ) |
| Visual C++ |
|---|
public: DoubleSparseVector( DoubleVector^ nonZeroEntries, IndexArray^ indices ) |
Parameters
- nonZeroEntries
- Type: CenterSpace.NMath.Core..::.DoubleVector
The non-zero entries of the sparse vector.
- indices
- Type: CenterSpace.NMath.Matrix..::.IndexArray
The indices of the non-zero entries such that the index of ith entry of
CopyC#isnonZeroEntries
CopyC#indices[i]
Remarks
The input data is copied.