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

Home » Public Forums » archive » Set Operations on A and B
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: Set Operations on A and B [message #45793 is a reply to message #45700] Mon, 03 October 2005 07:57 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
mxd1007@cs.rit.edu wrote:

> which refers to Colorclass[h]. So I guess since this is only a
> numerical value, I need to somehow convert it to an array.
> ColorClass[h] is the set of vertices with color h, and is constructed
> as follows:
>
> ColorClass[h] = {i is an element of the set of vertices : color[i] = h}
> for 0 <= h <= k-1
>

Hi,

My first guess is that IDL is changing your selection from a subset of
an array to a scalar. This happens when you extract one element from an
array. Use REFORM to force IDL to treat your value as an array of one
element.

IDL> ColorClass = BINDGEN(12)
IDL> i = 7

Now extract the ith element - raw and reformed...

IDL> help, ColorClass[i], REFORM(ColorClass[i],1)
<Expression> BYTE = 7
<Expression> BYTE = Array[1]

Try it with your set operators.

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: PDF manual on 6.1
Next Topic: Stackplot without axis?

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

Current Time: Fri Dec 05 06:06:18 PST 2025

Total time taken to generate the page: 0.01346 seconds