| FloatSparseVector(Single, IndexArray) Constructor |
Constructs a FloatSparseVector instance from the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatSparseVector(
float[] nonZeroEntries,
IndexArray indices
)
Public Sub New (
nonZeroEntries As Single(),
indices As IndexArray
)
public:
FloatSparseVector(
array<float>^ nonZeroEntries,
IndexArray^ indices
)
new :
nonZeroEntries : float32[] *
indices : IndexArray -> FloatSparseVector
Parameters
- nonZeroEntries Single
- 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