Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago