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

Home » Public Forums » archive » Re: adding sparse arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: adding sparse arrays [message #54303 is a reply to message #54301] Thu, 07 June 2007 01:36 Go to previous messageGo to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
nivedita.raghunath@gmail.com wrote:
> Hello all,
>
> How do I add two sparse arrays? The fact that a sparse function to add
> doesn't exist makes me think its pretty simple, but I just can't get
> it. I do not want to use any loops.

Well, it depends where the non-zero, non-diagonal elements of the two
arrays are. If they are located in the same positions, you just need
to add the sa vectors while keeping the ija vectors fixed.

Ciao,
Paolo




>
> Thanks in advance.
>
> -Nivedita
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Executable files
Next Topic: scaling idlGrAxis ticks?

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

Current Time: Sun Oct 12 06:16:01 PDT 2025

Total time taken to generate the page: 1.65493 seconds