Last Updated 10/21/2022

Sage Essentials
Section 7: Matrix Manipulations

Matrix Multiplications

The “*” operator is also used for Matrix-Matrix Multiplications and Matrix-Vector Multiplications.

Example 2

Compute the product of the two matrices A=[ 1 0 1 1 ]  and B=[ 0 1 1 1 ] .

Compute the product CD of the two matrices C=[ 1 0 1 0 1 1 ]  and D=[ 0 1 1 1 2 7 ] .

Try this!

What happens if we try to compute DC for the matrices C and D as defined above?


← Previous Example Next Example →