FULSTR restores a row-indexed
array to full storage mode. If the sparse array was created with the SPRSIN function using the THRESH keyword, any values in the original array that were below the specified threshold are replaced with zeros.
Result = FULSTR(
A row-indexed sparse array created by the SPRSIN function.
Suppose we have converted an array to sparse storage format with the following commands:
A = [[ 5.0, -0.2, 0.1], $
[ 3.0, -2.0, 0.3], $
[ 4.0, -1.0, 0.0]]
sparse = SPRSIN(A, THRESH=0.5)
The variable SPARSE now contains a representation of the array A in structure form. To restore the array from the sparse-format structure, type:
result = FULSTR(sparse)
5.00000 0.00000 0.00000
3.00000 -2.00000 0.00000
4.00000 -1.00000 0.00000
Note that the elements with an absolute value less than the specified threshold have been set to zero.