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

Home » Public Forums » archive » Re: array operators - vector processing relevant
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
Re: array operators - vector processing relevant [message #41278] Sun, 03 October 2004 12:53
Craig Markwardt is currently offline  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
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: array operators - vector processing relevant
Next Topic: Re: Composition structure

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

Current Time: Sun Oct 12 14:44:28 PDT 2025

Total time taken to generate the page: 0.56031 seconds