 | DoubleSparseVector(Double, IndexArray, Int32, Boolean) 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,
int numberNonZero,
bool copyData
)
Public Sub New (
nonZeroEntries As Double(),
indices As IndexArray,
numberNonZero As Integer,
copyData As Boolean
)
public:
DoubleSparseVector(
array<double>^ nonZeroEntries,
IndexArray^ indices,
int numberNonZero,
bool copyData
)
new :
nonZeroEntries : float[] *
indices : IndexArray *
numberNonZero : int *
copyData : bool -> 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 entry of 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
resulting instance will reference the input data.
Exceptions
See Also