| Re: vector multiplication of a colum-vectors(1col,3row) and a row-vector(3col,1row), but each vector position[col,row] is a 1000x1400 array [message #52783 is a reply to message #52781] |
Wed, 28 February 2007 01:11  |
Paolo Grigis
Messages: 171 Registered: December 2003
|
Senior Member |
|
|
thomas.jagdhuber@dlr.de wrote:
> Hi,
>
> I am a rookie in programming IDL. So I try to compute a vector
> product out of a colum-vectors(1col,3row) and a row-vector(3col,1row),
> with the specialty that each position in the vectors is an 1000x1400
> array.
> vector1=[[[array1]],[[array2]],[[arry3]]]
> vector2=[[[array1]],[[array2]],[[arry3]]]
> matrix2=matrix_multiply(vector1,vector2,/btranspose)
> But this is not generating a 3x3 Matrix!
>
> Does anyone know anything??
Well, most people at least do know something...
but maybe you're taking a Socratic stance here ;-)
I think that before asking us how to do whatever it is you want
done in IDL, you should try to explain better what it is that
you are trying to do in the first place (at the level of algebra,
not programming language). It seems to me that you are confusing
vector (cross) product with scalar product anyway... and why you
want to get 9 numbers out of the 4.2 millions you start with?
Ciao,
Paolo
>
> Thank you very much
>
> Tom
>
|
|
|
|