Scatters the elements of the compressed sparse vector x
to a full storage vector.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleVector Scatter( DoubleSparseVector x, int outputVectorLength ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Scatter ( _ x As DoubleSparseVector, _ outputVectorLength As Integer _ ) As DoubleVector |
| Visual C++ |
|---|
public: static DoubleVector^ Scatter( DoubleSparseVector^ x, int outputVectorLength ) |
Parameters
- x
- Type: CenterSpace.NMath.Matrix..::.DoubleSparseVector
A sparse vector.
- outputVectorLength
- Type: System..::.Int32
The length of the output full storage vector.
Return Value
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.