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

Home » Public Forums » archive » array subscripting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
array subscripting [message #69159] Fri, 11 December 2009 04:40
David Higgins is currently offline  David Higgins
Messages: 13
Registered: August 2009
Junior Member
I'd like to multiply the 1st dimension of a multi-dimensional array by
a 1d vector (using * not #). I've been trying to avoid nested FOR
loops. So far, I've come up with

phi = rebin(phi, dim1,dim2,dim3,dim4,dim5)
multi_dim_arr = multi_dim_arr * phi

As you can see I'm creating a huge array from a simple "row" of data,
so that phi and multi_dim_arr match in size. I feel like I'm missing
something - is there an easier way to get this done?
Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: journal call broken with 7.x
Next Topic: fixing DICOM read issues

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

Current Time: Wed Oct 08 19:05:18 PDT 2025

Total time taken to generate the page: 0.00566 seconds