Click or drag to resize

NMathFunctionsScatter(FloatSparseVector, Int32) Method

Scatters the elements of the compressed sparse vector x to a full storage vector.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatVector Scatter(
	FloatSparseVector x,
	int outputVectorLength
)

Parameters

x  FloatSparseVector
A sparse vector.
outputVectorLength  Int32
The length of the output full storage vector.

Return Value

FloatVector
Full storage vector version of x.
Remarks
If the outputVectorLength is larger than the largest nonzero value index in the sparse vector, the output vector will be padded with zeros. On the other hand, if outputVectorLength is is less than the largest nonzero value index the output vector will contain the appropriately truncated data in the sparse vector.
See Also