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

Home » Public Forums » archive » vector C++ version of IDL where statement?
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
vector C++ version of IDL where statement? [message #30732] Wed, 15 May 2002 14:59
Sean Dettrick is currently offline  Sean Dettrick
Messages: 12
Registered: April 2002
Junior Member
Hi,
this is a hybrid C++/IDL newsgroup question, but I shall risk your
wrath:

Does anybody know how to do an IDL WHERE statement in C++ ??

e.g.
IDL> x=findgen(100)
IDL> w=where(x gt 50)
IDL> x(w)=50

how do you convert to C++?

#include<vector>
main(){
vector<double> x(50);
for (int i=0; i<50; i++) x[i]=i;

??????? <- what to put here?

Muchos gracias,

Sean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: gamma random numbers ?
Next Topic: Re: vector C++ version of IDL where statement?

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

Current Time: Wed Oct 08 19:15:31 PDT 2025

Total time taken to generate the page: 0.00674 seconds