Python Program For Matrix Multiplication
Вставка
- Опубліковано 4 гру 2019
- In this Python Programming video tutorial you will learn write the program for matrix multiplication in detail.
We can treat nested list as matrix and we can perform multiplication using that.
Matrix Addition and Subtraction:
• Python Program For Mat...
#List #Python #Programming
For more free tutorials on computer programming
/ amulsacademy
/ amulsacademy
i was confused how the results added ..thank you for such clear explanation .you guys are the best ..explanation is so clear and at slow pace that anybody can understand
Glad it was helpful! :)
what's the equivalent code of your matrix1 list comprehension in ordinary loop?
Best tutor who teaches each and every concept clearly.
Thank you :)
gracias! me ayudo mucho para entender la multiplicacion de matrices!
Love you Darling, bcz your way to solving it is the way i was trying to find but everyone solved it in a very same way through constructing a final matrix and appending values in it. But you did it in a very same way i was in search.
Happy to help 😊
Ma'am thanks alot for ur tutorial...
but how to multiply two squared matrics of same order?
Plz tell me
Supereb expalantion ,i watched many videos on matriz multiplication on youtube but didnt understood,but this video was very simple to understand matriz multiplication
Thank you :)
u r explanation is simply superb. And everyone easily understand..
Thank you 😊
Explained very well!
Can u please make a video on python new features in 3.8 version..
Hi,
r = [[0 for i in range(len(B))] for i in range(len(A))]
Can you please explain how to write this in a normal for loop.
Thank you.
Thank you for clearing my concept
Thank you for your explanation. Your voice is soo sweet 🥰
Thank you! 😃
what if we want to take user inout and no of colums in matrix 1 is not equal to number of rows in matrix 2
What an awesome explanation
maam i m unable to open python 3.8 in my windows 10
it displays the message of "Port Binding Error" can you help me how to solve this problem
It's better to install python 3.7 for windows 10
very nice and clear explanation. Thank you
Thank you so much :)
Sis pls make a video for web developing using python pls..
Thank you mam this tutorial helped me a lot.
Glad to hear that 😊
here pasting entire code:
ro_p = int(input('number of rows in A = '))
co_n = int(input('number of columns in A /number of rows in B = '))
colB_q = int(input('number of columns in B = '))
print("enter elements for A: ")
A=[int(input()) for i in range(co_n) for j in range(ro_p)]
print("A")
for i in range(ro_p):
for j in range(co_n):
print(format(A[i][j], "
if matrix is given how to calculate with conditions?
If possible plz make python program for convert matrix into row echelon form.
Thanks that is very useful
When you teach python with django 🤔
thanks a lot...for making it easy to undeestand
Pleasure 😊
Your voice is so sweet. My half focus was on your voice, yet i completely understood it.
Hats off!
Thanks a lot 😊
please make a playlist for *Django*
Thanks a lot sis ❤
muchas gracias
Good explanation
Tried to run your code, at step->print(format(matrix1[i][j], "
give me the full program i will check :)
It's bracket error. Check brackets.
In the list comprehension line there are two square brackets.
Good mam
I subscribe your channel now
Or my question is
Ki phython se website bna skte h kya
Python
Thank you :)
Yes.
Where can i get this COde
1st view n 1st like☺️
Great video
Hey! I m getting
TypeError: 'int' object is not subscriptable.
I m unable to solved this error.even I watched your number pattern program.
May you did something wrong with indexing please check :)
Thank youu mam❤️😇
Mam how to find large number and small number in a row of a matrix?
Thank you 🙂🙏🇮🇳
Pleasure :)
Please show the full program
thank you so much, your voice is so sweet.
Thank you:)
Really great video
Glad you enjoyed it :)
very useful and clear
Thank you 😊
Please upload calculation of inverse of a matrix
I will try :)
Thank you mam.
Most welcome 😊
Madam,Can your please try to reach Datastructures in python
I will try :)
mam pl post cbse text book based programs so that it will be useful for the students
class 11 and 12
if you give questions i can make videos on that :)
If the matrix1 n not equal to matrix 2 n then how to print the output
You mean shape of matrix1 and matrix2?
if all you want to do is to multiply:
result = A.dot(B)
here A and B are matrixes that you want to multiply
mesmerizing voice
Can i got your code?
Thank u sis🙇🙇🙇🙇
Welcome 😊
for the logic direct go to 14:00
Here not able to paste screenshot, pasting part of code below:
ro_p = int(input('number of rows in A = '))
co_n = int(input('number of columns in A /number of rows in B = '))
colB_q = int(input('number of columns in B = '))
print("enter elements for A: ")
A=[int(input()) for i in range(co_n) for j in range(ro_p)]
print("A: ")
for i in range(ro_p):
for j in range(co_n):
print(format(A[i][j], "
Hi,
A should be a nested list.
like this
A=[[int(input()) for i in range(co_n)] for j in range(ro_p)]
You are creating a list not a nested list.
Try this:
ro_p = int(input('number of rows in A = '))
co_n = int(input('number of columns in A /number of rows in B = '))
colB_q = int(input('number of columns in B = '))
print("enter elements for A: ")
A=[[int(input()) for i in range(co_n)] for j in range(ro_p)]
print("A: ")
for i in range(ro_p):
for j in range(co_n):
print(format(A[i][j],"
@@AmulsAcademy In your video, hope you are not taking nested list at time stamp 17:00
nice
Thank you :)
Thanks Bro !!
super sister
Please provide the code .
😊😊😊
😊😊
Please provide the source code
U'r voice is chooooo...... chweeeeetttttttt.....👌
😮😮
Self referential note: 7:40 ru dekhe
nothing but has a separate fanbase
Haha... thank you :)
A=[[1,2,3],[4,5,6],[7,8,9]]
B=[[2,3],[4,6],[8,9]]
C=[[0,0],[0,0],[0,0]]
def matrix_mul(A,B):
# write your code
for i in range(0,len(C)):
for j in range(0,len(C[0])):
for k in range(0,len(B)):
C[i][j] += A[i][k]*B[k][j]
for row in C:
print(row)
matrix_mul(A,B)
How about this code?
Cuteness overloaded 💘
Thank you :)
S2. S1
A. 10. A. 5
B. 20. B. 4
C. 30. C. 6
D. 40. D. 8
*WRITE THE COMMAND TO MULTIPLY THE SERIES OF S1 AND S2* ❤️❤️❤️❤️❤️❤️
Plss tell
Use numpy for gods sake