[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a=a(*,*,[4,1,2,3,0]) efficiency



I am wondering about the efficiency of the following

; read data from file into a which is an integer array 128x128x5
; open, ..., read a, ... close,...

; reorder data
a=a(*,*,[4,1,2,3,0])

Does IDL make a temporary copy of a when size of the left
hand side (a) is the same as the right hand side a(*,*,[4,1,2,3,0]) ?
If so, is there a better way to reorder my data?  In my application
the last dimension of a is typically much greater than 5 (e.g. 300).

Ray Muzic
rfm2@po.cwru.edu