The
WRITE_SPR procedure writes a row-indexed
sparse array structure to a specified file. Row-indexed sparse arrays are created using the SPRSIN function.
Calling Sequence
WRITE_SPR,
AS, Filename
Arguments
AS
A row-indexed sparse array created by SPRSIN.
Filename
The name of the file that will contain AS.
Example
A = [[3.,0., 1., 0., 0.],$ ;
Create an array.
[0.,4., 0., 0., 0.],$
[0.,7., 5., 9., 0.],$
[0.,0., 0., 0., 2.],$
[0.,0., 0., 6., 5.]]
A = SPRSIN(A) ;
Convert it to sparse storage format.
WRITE_SPR, A, 'sprs.as' ;
Store it in the file
sprs.as