Course Content
Mathematics for Data Analysis and Modeling
Mathematics for Data Analysis and Modeling
Challenge: Calculate the Matrix Multiplication Result
Swipe to show code editor
Your task is to write code that will multiply two matrices, A
and B
, using the dot product between two vectors.
- Specify the shape of the resulting matrix (number of rows and columns).
- Calculate the resulting matrix using the dot product between the corresponding rows of the first matrix and columns of the second matrix.
Thanks for your feedback!
Challenge: Calculate the Matrix Multiplication Result
Swipe to show code editor
Your task is to write code that will multiply two matrices, A
and B
, using the dot product between two vectors.
- Specify the shape of the resulting matrix (number of rows and columns).
- Calculate the resulting matrix using the dot product between the corresponding rows of the first matrix and columns of the second matrix.
Thanks for your feedback!