Question: def multiply ( m 1 , m 2 ) : #first matrix is nxk in size #second matrix is dxm in size n = len
def multiplymm:
#first matrix is nxk in size
#second matrix is dxm in size
n lenm
k lenm
d lenm
m lenm
#check to make sure sizes match
if k d:
printERROR inner dimensions not equal"
else:
return result
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
