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

Home » Public Forums » archive » Re: basic soubt with fltarr
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: basic soubt with fltarr [message #30248 is a reply to message #30181] Fri, 12 April 2002 17:43 Go to previous message
Muks Raju is currently offline  Muks Raju
Messages: 6
Registered: April 2002
Junior Member
Hello
Thanks a lot for your help. My prog was running fine under most
conditions. But then i realised that it was converting the 2D array to a 1 D
array. Again..thanks a lot..

Mux


James Kuyper wrote:

> trouble wrote:
>
>> James,
>>
>> One of us has got columns and rows mixed up... are we victims of the
>> column/row major format ? I think so ;)
>
> Sorry, I do most of my work in C, so I sometimes get the terminology
> reversed. Oddly enough, I almost never get mixed up about the ordering
> in memory, but only about the words used to describe that ordering.
>
> Unfortunately, it's easier to do these tricks along the last dimension
> than along the first; that's intrinsic to the nature of the problem, and
> not a defect of IDL itself. There are ways to do it without creating an
> explicitly named temporary, but they make heavy use of transpose() to
> turn the problem into a problem of concatenating along the last
> dimension. That makes them significantly less efficient than the
> following re-write of my original answer:
>> Muks Raju wrote:
>>
>> Hello all...i have a basic doubt with fltarr. I have this fltarr
>> Actuator = fltarr(100,4)
>>
>> now i need to remove the first 3 columns. How do i do this. Also i may
>
> Actuator(3:*,*)
>
>> need to add 3 columns at the beginning and at the end ...
>
> newAct = fltarr(106, 4);
> newAct(3:102,*) = Actuator
>
>> ...or maybe a column
>> of data in the middle.
>
> newAct = fltarr(101,4)
> newAct(0:49,*) = Actuator(0:49,*)
> newAct(51:*,*) = Actuator(50:*,*)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL5.5 XROI problem...
Next Topic: Re: In Praise of HISTOGRAM

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

Current Time: Fri Oct 10 08:58:09 PDT 2025

Total time taken to generate the page: 3.04086 seconds