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

Home » Public Forums » archive » Removing Array Values
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
Removing Array Values [message #78582] Wed, 07 December 2011 18:12
Oana Coman is currently offline  Oana Coman
Messages: 27
Registered: December 2011
Junior Member
Hi Guys!
I'm trying to make a sparse matrix where I have 1 1 0 1 1 0 etc as the
off-diagonal entries
So I want something like
i= 1 2 4 5 7 8 ...etc
j= 0 1 3 4 6 7 ....etc
val = 1 1 1 1 1 1
so when I put this in a 9X9 matrix it will go across the diagonal but
will leave a 0 after every two 1 values

Basically, all I need to do for this is create two arrays...one that
skips every multiple of 3n, and one that skips every multiple of
(3n-1). Is there some way to remove all of these 3n, and 3n-1 array
values? I am having a really difficult time finding anything online
that's relatively helpful

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLDOC question
Next Topic: Re: Removing Array Values

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

Current Time: Wed Oct 08 13:40:24 PDT 2025

Total time taken to generate the page: 0.00542 seconds