Re: array operators - vector processing relevant [message #41278] |
Sun, 03 October 2004 12:53 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
nasalmon@onetel.net.uk (Neil) writes:
> Does anyone know if there is an array operator that can be used to
> multiply to 1D vectors together that results in a final 1D vector that
> holds all multiplicative combinations of the individual vector
> components?
>
> For example, array A of length m, and array B of length n would result
> in a vector C of length m x N. Of course i can use array operators #
> or ## to create a 2D array from the individual 1D arrays and then
> unfold it back into a 1 D array. However, it would be convenient to
> have a straight routine for this.
Hmm, but since you can do
C = REFORM(A # B, M*N)
that doesn't seem like too much of a burden. I never know which
operator, # or ##, is going to work though.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|