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

Home » Public Forums » archive » behavior of 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
behavior of arrays [message #15435] Wed, 19 May 1999 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
I have some problems to understand the logic which may be behind the
handling of an array
like defined.

Why is the result help, b.d only [10] and not [10,1] ?

This means I will lose the information that's it is / was a 2-dim
dataset.

R.Bauer



d=reform(findgen(10),10,1)
help,d
;D FLOAT = Array[10, 1]

b=create_struct('d',d)
help,b,/str

;** Structure <1348428>, 1 tags, length=40, refs=1:
; D FLOAT Array[10, 1]


help,b.d
; <Expression> FLOAT = Array[10]


c=b.d
help,c
; C FLOAT = Array[10]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image thresholding
Next Topic: Re: 3D Puzzle

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

Current Time: Fri Oct 10 03:53:23 PDT 2025

Total time taken to generate the page: 0.55998 seconds