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

Home » Public Forums » archive » Re: how can i get an [n,1] array without reform?
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: how can i get an [n,1] array without reform? [message #63826 is a reply to message #63823] Thu, 20 November 2008 15:25 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
James McCreight schrieb:
> I now understand that this is an age-old debate in the IDL community,
> which really stirs emotions!
>
> I'll just accept that IDL truncates trailing dimensions by default and
> make the call to reform to get it back.
>
>

Hi

that can be also solved by

if size(a, /n_dim) eq 1 and size(b, /n_dim) eq 1 then $
c = [[a],[b]] $
else ....

cheers
Reimar


>
>
> On Nov 20, 11:20 am, James McCreight <mccre...@gmail.com> wrote:
>> for clarity, i should have used in the first example:
>>
>> IDL> a=transpose([0,1])
>> IDL> b=transpose([2,3])
>> IDL> c=[a,b]
>> IDL> print,c
>> 0 2
>> 1 3
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Adding sparse matrices
Next Topic: AVIs for the Mac

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

Current Time: Sat Oct 11 12:18:41 PDT 2025

Total time taken to generate the page: 1.04375 seconds