it might be ansewred before but I couldn't find the answer. lets say I have two matices:
A = [[1,2,3],
[4,5,6]]
B = [[1,2,3]
[4,5,6]]
and I want to multiply them element by element, for example element of index [0,0] form A with [0,0] from B, [0,1] A with [0,1] B,... etc. and at the end i would get a matrix like the below:
C = [[1,4,9]
[16,25,36]]
i know I can do it using for loop, but is there a function that could this for me, I need it to be faster than the loop. Thanks