30. Python Program to Multiply Two Matrices
ฝัง
- เผยแพร่เมื่อ 2 พ.ย. 2021
- Join this channel to get access to perks:
/ @itskillswithsurajdatir
Link of python Tutorial- • Python Tutorial Series
Hello friends,
Wath tutorial for multiplication of two matrix.
Learn technical and programming tutorial form IT SKILLS WITH SURAJ DATIR.
Thanks for watching
IT SKILLS WITH SURAJ DATIR
#ITSKILLSWITHSURAJDATIR #PROGRAMMING #ANDRIOD
Can you do an example where you're example to explain this in detail?
x = [[1,2], [4,5], [3,6]]
y = [[1,2,3,4], [5,6,7,8]]
for i in range(len(xx)):
#iterating by column by y
for j in range(len(yy[0])):
#iterating by rows of Y
for k in range(len(yy)):
result[i][j] += xx[i][k] * yy[k][j]