Question: def multiply ( m 1 , m 2 ) : #first matrix is nxk in size #second matrix is dxm in size n = len

def multiply(m1,m2):
#first matrix is nxk in size
#second matrix is dxm in size
n = len(m1)
k = len(m1[0])
d = len(m2)
m = len(m2[0])
#check to make sure sizes match
if k != d:
print("ERROR - 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!