array operators - vector processing relevant [message #41279] |
Sun, 03 October 2004 12:39 |
nasalmon
Messages: 33 Registered: August 2003
|
Member |
|
|
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.
This would be useful for array address, where you want to replace
nested do loops with vector processing, where you would use such a
routine to calculate the indices to enable fast array addressing.
many thanks,
Neil
|
|
|