Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Tutorial example matrix multiplication

Hi, I'm looking at the tutorial linear algebra:

We have sage: A = Matrix([[1,2,3],[3,2,1],[1,1,1]]) sage: w = vector([1,1,-4]) sage: wA (0, 0, 0) sage: Aw (-9, 1, -2)

How does the multiplication work for A*w ?

We have a 3x3 x 1x3 ... and we get a vector 3x 1 ?

But this is not conformable... so what does A*w mean in sage ?

Merci à l'avance

Tutorial example matrix multiplication

Hi, I'm looking at the tutorial linear algebra:

We have

sage: A = Matrix([[1,2,3],[3,2,1],[1,1,1]])
sage: w = vector([1,1,-4])
sage: wA
w*A
(0, 0, 0)
sage: Aw
A*w
(-9, 1, -2)

-2)

How does the multiplication work for A*w ?

We have a 3x3 x 1x3 ... and we get a vector 3x 1 ?

But this is not conformable... so what does A*w mean in sage ?

Merci à l'avance