Dave Higgins writes:
> 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?
"Easier" in what sense? To type? Make it a function. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming:
http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")