The FULSTR restores a row-indexed sparse 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.
Suppose we have converted an array to sparse storage format with the following commands:
sparse = SPRSIN(A, THRESH=0.5)
;
Convert to sparse storage mode. All elements of the array A that have absolute values less than THRESH are set to zero.
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) ; Restore the array.
PRINT, result ; Print the result.
Note that the elements with an absolute value less than the specified threshold have been set to zero.