comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Sparse matrixes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Sparse matrixes [message #89971] Mon, 12 January 2015 03:31
amin farhang is currently offline  amin farhang
Messages: 39
Registered: November 2010
Member
Dear All,

I want to define a sparse matrix using coordinate storage format, to use in IMSL_SP_GMRES function. When I run below commands, IDL do not know imsl_f_sp_elem structure. how can I solve this?

A = replicate(imsl_f_sp_elem, 15)
a(*).row = [0, 1, 1, 1, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5]
a(*).col = [0, 1, 2, 3, 2, 0, 3, 4, 0, 3, 4, 5, 0, 1, 5]
a(*).val = [10, 10, -3, -1, 15, -2, 10, -1, -1, -5, 1, -3, -1, -2, 6]

Thanks
Best,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Add a variable to existing NetCDF file
Next Topic: Re: FG subplot question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:36:34 PDT 2025

Total time taken to generate the page: 0.00477 seconds