Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the function that takes as parameter 2 matrices and that returns the product of Hadamard. The matrices are represented as tuples in tuples. You
Complete the function that takes as parameter 2 matrices and that returns the product of Hadamard.
The matrices are represented as tuples in tuples. You can assume that both matrices have the same dimension.
An example of the representation of the matrices as well as an example of the product of Hadamard are shown in the photo above.
**Please write the answer in python language! **
Complter la fonction qui prend en paramtre 2 matrices et qui retourne le produit de Hadamard. Les matrices sont reprsentes par des tuples de tuples. Vous pouvez assumer que les 2 matrices ont la mme dimension. [. 1 = ((1,0),(0,1)) Reprsentation des matrices Exemple produit de Hadamard (3 51 b ) = 6:0 5:) = { 18) >>> matrice1 = ((3, 5), (4, 9)) >>> matrice2 = ((1, 6), (0, 2)) >>> produitDeHadamard(matrice1, matrice2) ((3, 30), (0, 18)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started