Dot product of two matrices without using any built-in functions.
Mostrar comentarios más antiguos
How to solve this in MATLAB.
Let P be an m × p array and Q be a p × n array. As you will find later in this book, M = P × Q is defined as M[i, j ] =
P[i, k] · Q[k,j ]. Write a function my_mat_mult(P, Q) that uses for-loops to compute M, the matrix product of P * Q. Hint: You may need up to three nested for-loops. Do not use the function np.dot.
2 comentarios
Respuestas (0)
Categorías
Más información sobre Profile and Improve Performance en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!