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

Home » Public Forums » archive » Re: Why Index array containing same index multiple time results only one arithmetic operation
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
Re: Why Index array containing same index multiple time results only one arithmetic operation [message #71297] Wed, 09 June 2010 02:46
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Tue, 8 Jun 2010 21:52:30 -0700 (PDT), AKJ <jha.ashutosh@gmail.com>
wrote:

> It there a way to force the idx to increment
> twice if the pair(idc,idr) occurs more than 1 in each iteration.

Similar to this:

a=lonarr(3)
ind=[2,1,1]
h=histogram(ind,omin=omin,omax=omax)
a[omin+lindgen(omax-omin+1)]+=h
print,a
0 2 1
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Why Index array containing same index multiple time results only one arithmetic operation
Next Topic: contour noise problem

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

Current Time: Fri Oct 10 05:25:07 PDT 2025

Total time taken to generate the page: 0.48264 seconds