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

Home » Public Forums » archive » Re: Meaning of outer product
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Meaning of outer product [message #31536 is a reply to message #31426] Thu, 18 July 2002 18:29 Go to previous message
Paul Sorenson is currently offline  Paul Sorenson
Messages: 48
Registered: May 2002
Member
Thanks, James and M. Katz. Your responses really helped clear up this issue
for me. To summarize: the IDL documentation is correct in referring to C_ij
= A_iB_j as the outer product. Other resources that refer to the cross
product as the "outer product" are using the term more loosely.

James...

> OP = [[a.x*b*x, a.x*b.y, a.x*b.x],
> [a.y*b*x, a.y*b.y, a.y*b.x],
> [a.z*b*x, a.z*b.y, a.z*b.x]]

... I think you meant

OP = [[a.x*b.x, a.x*b.y, a.x*b.z],
[a.y*b.x, a.y*b.y, a.y*b.z],
[a.z*b.x, a.z*b.y, a.z*b.z]]


-Paul Sorenson

"M. Katz" <MKatz843@onebox.com> wrote in message
news:4a097d6a.0207131330.1a6c1835@posting.google.com...
>> IDL documentation says: "Note - If A and B arguments are vectors, then C
=
>> MATRIX_MULTIPLY(A, B) is a matrix with C_ij = A_iB_j. Mathematically,
this
>> is equivalent to the outer product. . . ." But I'm having difficulty
>> reconciling this with my understanding of outer product. . .
>>
>> c.x = a.y*b.z - a.z*b.y
>> c.y = a.z*b.x - a.x*b.z
>> c.z = a.x*b.y - a.y*b.x
>>
>
> That's the "cross-product" c = a x b you've written (above).
> As you know, the "inner product" of two 3-element vectors is a scalar,
> also known as the "dot-product"
>
> c = a . b = a.x*b.x + a.y*b.y + a.z+b.z
> The inner product is written as a row vector times a column vector.
>
> The "outer product" of two three-element vectors is a 3x3 matrix
> C =
> (a.x*b.x a.x*b.y a.x*b.z)
> (a.y*b.x a.y*b.y a.y*b.z)
> (a.z*b.x a.z*b.y a.z*b.z) (I hope this isn't the transpose!)
>
> it's usually written as a column vector times a row vector.
>
> Remember that vector and matrix multiplications aren't necessarily
> commutitive: a times b != b times a, necessarily.
>
> M. Katz




-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Redhat 7.2/IDL 5.5a oddity (long)
Next Topic: CALL_EXTERNAL

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

Current Time: Fri Oct 10 17:17:15 PDT 2025

Total time taken to generate the page: 0.22585 seconds