00:01
So for this problem, i'll jump over into a jupyter notebook for showing how we actually write out the corrected code, but i'll start with the concept here.
00:07
We know that we're trying to do matrix multiplication using numpy.
00:37
In that code snippet, they're using the asterisk for multiplication.
00:52
So the problem here is that the type of multiplication that the asterisk in python does is not matrix multiplication.
01:14
Matrix multiplication and multiplication of scalars are fundamentally different operations, so we need to make sure that we're actually using the proper function for our matrix multiplication.
01:29
In fact, i will note that as described in the setup for the problem, it would end up giving us element -wise multiplication.
01:37
Sort of this is one of the aspects in which mathematical procedures differ, or often differ, from the procedures that would be common in computer science or typical programming.
01:51
So, as i said, i'll jump over into my jupyter notebook one moment here.
01:55
So first let's run that...