| NMathFunctionsScatter(FloatSparseVector, Int32) Method |
Scatters the elements of the compressed sparse vector x
to a full storage vector.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatVector Scatter(
FloatSparseVector x,
int outputVectorLength
)
Public Shared Function Scatter (
x As FloatSparseVector,
outputVectorLength As Integer
) As FloatVector
public:
static FloatVector^ Scatter(
FloatSparseVector^ x,
int outputVectorLength
)
static member Scatter :
x : FloatSparseVector *
outputVectorLength : int -> FloatVector
Parameters
- x FloatSparseVector
- A sparse vector.
- outputVectorLength Int32
- The length of the output full storage vector.
Return Value
FloatVectorFull 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