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 #30181] Thu, 11 April 2002 07:21 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
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: Wed Oct 08 19:21:01 PDT 2025

Total time taken to generate the page: 0.00475 seconds