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

Home » Public Forums » archive » Re: Array slices
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: Array slices [message #47340 is a reply to message #47248] Thu, 02 February 2006 09:52 Go to previous message
Richard Edgar is currently offline  Richard Edgar
Messages: 8
Registered: February 2006
Junior Member
Anne wrote:
> To convert everything to a [3,3] array just use the REFORM function, ie
> arr=reform(arr). This will get rid of and redundent dimensions.
> Actually I find it more annoying when the [3,3,1] array gets converted
> to a [3,3] array since that is usually harder to deal with!

Thanks :-)

For me, the most annoying thing is the inconsistency. If all gave a
{3,3,1} array (permute as necessary), then there'd be less of a problem.
However to my mind, it would still be better to return [3,3] every time,
as happens in Fortran. For example, what if the next time I had a
[3,3,3,3] array, and wanted to hand off the 2D slice [1,*,2,*] for analysis?

Richard
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: display line numbers in idlde?
Next Topic: Re: Speeding up multiple file reading

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

Current Time: Sat Oct 11 13:19:44 PDT 2025

Total time taken to generate the page: 0.55944 seconds