Click or drag to resize

FloatSparseVector(Single, IndexArray, Int32, Boolean) Constructor

Constructs a FloatSparseVector instance from the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatSparseVector(
	float[] nonZeroEntries,
	IndexArray indices,
	int numberNonZero,
	bool copyData
)

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 entry of
C#
nonZeroEntries
is
C#
indices[i]
.
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
ExceptionCondition
ArgumentExceptionThrown if the length of either
C#
nonZeroEntries
or
C#
indices
is less than
C#
numberNonZero
.
See Also