IDL

WRITE_SPR

WRITE_SPR

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.

Examples


; Create an array:
A = [[3.,0., 1., 0., 0.],$
     [0.,4., 0., 0., 0.],$
     [0.,7., 5., 9., 0.],$
     [0.,0., 0., 0., 2.],$
     [0.,0., 0., 6., 5.]]
 
; Convert it to sparse storage format:
A = SPRSIN(A)
 
; Store it in the file sprs.as:
WRITE_SPR, A, 'sprs.as'

Syntax


WRITE_SPR, AS, Filename

Arguments


AS

A row-indexed sparse array created by SPRSIN.

Filename

The name of the file that will contain AS.

Keywords


None.

Version History


Pre-4.0

Introduced

See Also


FULSTR, LINBCG, SPRSAB, SPRSAX, SPRSIN, READ_SPR


This information is not subject to the controls of the International Traffic in Arms Regulations (ITAR) or the Export Administration Regulations (EAR). However, it may be restricted from transfer to various embargoed countries under U.S. laws and regulations.
© 2017 Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation