| FloatSparseVector(FloatVector, IndexArray) Constructor |
Constructs a FloatSparseVector instance from the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatSparseVector(
FloatVector nonZeroEntries,
IndexArray indices
)
Public Sub New (
nonZeroEntries As FloatVector,
indices As IndexArray
)
public:
FloatSparseVector(
FloatVector^ nonZeroEntries,
IndexArray^ indices
)
new :
nonZeroEntries : FloatVector *
indices : IndexArray -> FloatSparseVector
Parameters
- nonZeroEntries FloatVector
- 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
Remarks The input data is copied.
See Also