| NMathFunctionsScatter(DoubleSparseVector, 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 DoubleVector Scatter(
DoubleSparseVector x,
int outputVectorLength
)
Public Shared Function Scatter (
x As DoubleSparseVector,
outputVectorLength As Integer
) As DoubleVector
public:
static DoubleVector^ Scatter(
DoubleSparseVector^ x,
int outputVectorLength
)
static member Scatter :
x : DoubleSparseVector *
outputVectorLength : int -> DoubleVector
Parameters
- x DoubleSparseVector
- A sparse vector.
- outputVectorLength Int32
- The length of the output full storage vector.
Return Value
DoubleVectorFull 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