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

КОМЕНТАРІ • 105

  • @gawthami5956
    @gawthami5956 4 роки тому +12

    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

  • @hjgalang4684
    @hjgalang4684 3 роки тому +1

    what's the equivalent code of your matrix1 list comprehension in ordinary loop?

  • @OLIARULA
    @OLIARULA 4 роки тому +3

    Best tutor who teaches each and every concept clearly.

  • @Lu34870
    @Lu34870 3 роки тому +1

    gracias! me ayudo mucho para entender la multiplicacion de matrices!

  • @minatokamikaze7386
    @minatokamikaze7386 3 роки тому +7

    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.

  • @gorvekumar1718
    @gorvekumar1718 3 роки тому +1

    Ma'am thanks alot for ur tutorial...
    but how to multiply two squared matrics of same order?
    Plz tell me

  • @Anonymous_TheHacker
    @Anonymous_TheHacker 3 роки тому +1

    Supereb expalantion ,i watched many videos on matriz multiplication on youtube but didnt understood,but this video was very simple to understand matriz multiplication

  • @dharmatejajaddu2076
    @dharmatejajaddu2076 3 роки тому +1

    u r explanation is simply superb. And everyone easily understand..

  • @jyothisaprabhakar7392
    @jyothisaprabhakar7392 Рік тому

    Explained very well!

  • @kareemsaheb5438
    @kareemsaheb5438 4 роки тому

    Can u please make a video on python new features in 3.8 version..

  • @Vishnu_Datta_1698
    @Vishnu_Datta_1698 2 роки тому +1

    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.

  • @chandrimashreetama961
    @chandrimashreetama961 9 місяців тому

    Thank you for clearing my concept

  • @ganisettibhanu5979
    @ganisettibhanu5979 3 роки тому +6

    Thank you for your explanation. Your voice is soo sweet 🥰

  • @prakharavee6934
    @prakharavee6934 2 роки тому

    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

  • @afzalkhanpathan105
    @afzalkhanpathan105 6 місяців тому

    What an awesome explanation

  • @aviralg
    @aviralg 4 роки тому +2

    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

  • @pinkyg7078
    @pinkyg7078 3 роки тому +1

    very nice and clear explanation. Thank you

  • @qulture2619
    @qulture2619 4 роки тому +1

    Sis pls make a video for web developing using python pls..

  • @RohanOxob
    @RohanOxob 3 роки тому +1

    Thank you mam this tutorial helped me a lot.

  • @suhasinil3291
    @suhasinil3291 4 роки тому +2

    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], "

  • @sachingk8
    @sachingk8 3 роки тому

    if matrix is given how to calculate with conditions?

  • @shiprarawat6007
    @shiprarawat6007 4 роки тому

    If possible plz make python program for convert matrix into row echelon form.

  • @daradashs9307
    @daradashs9307 Рік тому

    Thanks that is very useful

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 роки тому +6

    When you teach python with django 🤔

  • @mayurjaiswal8412
    @mayurjaiswal8412 3 роки тому +1

    thanks a lot...for making it easy to undeestand

  • @aarishmahmood8865
    @aarishmahmood8865 3 роки тому +2

    Your voice is so sweet. My half focus was on your voice, yet i completely understood it.
    Hats off!

  • @imsubashmj
    @imsubashmj 4 роки тому

    please make a playlist for *Django*

  • @therealthinker9085
    @therealthinker9085 5 місяців тому

    Thanks a lot sis ❤

  • @olgermercado1294
    @olgermercado1294 4 роки тому

    muchas gracias

  • @rajeshnatarajan469
    @rajeshnatarajan469 2 роки тому

    Good explanation

  • @suhasinil3291
    @suhasinil3291 4 роки тому +1

    Tried to run your code, at step->print(format(matrix1[i][j], "

  • @mahiramjani4646
    @mahiramjani4646 4 роки тому +1

    Good mam
    I subscribe your channel now
    Or my question is
    Ki phython se website bna skte h kya
    Python

  • @sanketkumbhar8887
    @sanketkumbhar8887 2 роки тому

    Where can i get this COde

  • @kiranrockzz5267
    @kiranrockzz5267 4 роки тому +7

    1st view n 1st like☺️

  • @lukadzipkovic8158
    @lukadzipkovic8158 2 роки тому

    Great video

  • @SumitSinghzz
    @SumitSinghzz 3 роки тому +1

    Hey! I m getting
    TypeError: 'int' object is not subscriptable.
    I m unable to solved this error.even I watched your number pattern program.

    • @AmulsAcademy
      @AmulsAcademy  3 роки тому +1

      May you did something wrong with indexing please check :)

  • @gourim1372
    @gourim1372 Рік тому

    Thank youu mam❤️😇

  • @editee8063
    @editee8063 Рік тому

    Mam how to find large number and small number in a row of a matrix?

  • @robishankardenre3269
    @robishankardenre3269 4 роки тому +2

    Thank you 🙂🙏🇮🇳

  • @SViji-nz9gl
    @SViji-nz9gl 4 роки тому

    Please show the full program

  • @raghavendramanibommuluri1230
    @raghavendramanibommuluri1230 3 роки тому +3

    thank you so much, your voice is so sweet.

  • @bhavani9873
    @bhavani9873 3 роки тому +1

    Really great video

  • @radhikasony4262
    @radhikasony4262 3 роки тому +1

    very useful and clear

  • @saitejakuchipudi1761
    @saitejakuchipudi1761 3 роки тому +1

    Please upload calculation of inverse of a matrix

  • @jiya9643
    @jiya9643 4 роки тому +1

    Thank you mam.

  • @kireetikesani9422
    @kireetikesani9422 4 роки тому +1

    Madam,Can your please try to reach Datastructures in python

  • @swaroopasivakumar6600
    @swaroopasivakumar6600 3 роки тому +1

    mam pl post cbse text book based programs so that it will be useful for the students
    class 11 and 12

    • @AmulsAcademy
      @AmulsAcademy  3 роки тому

      if you give questions i can make videos on that :)

  • @nagamohan1412
    @nagamohan1412 3 роки тому +1

    If the matrix1 n not equal to matrix 2 n then how to print the output

    • @AmulsAcademy
      @AmulsAcademy  3 роки тому

      You mean shape of matrix1 and matrix2?

  • @Evoleth
    @Evoleth 2 роки тому

    if all you want to do is to multiply:
    result = A.dot(B)
    here A and B are matrixes that you want to multiply

  • @aero-036srivatsanp9
    @aero-036srivatsanp9 2 роки тому

    mesmerizing voice

  • @bimabudi8599
    @bimabudi8599 3 роки тому

    Can i got your code?

  • @Pooja-jb3nj
    @Pooja-jb3nj 3 роки тому +1

    Thank u sis🙇🙇🙇🙇

  • @ashutoshmishra8812
    @ashutoshmishra8812 3 роки тому +1

    for the logic direct go to 14:00

  • @suhasinil3291
    @suhasinil3291 4 роки тому +1

    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], "

    • @AmulsAcademy
      @AmulsAcademy  4 роки тому

      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],"

    • @suhasinil3291
      @suhasinil3291 4 роки тому

      @@AmulsAcademy In your video, hope you are not taking nested list at time stamp 17:00

  • @selvanm2872
    @selvanm2872 4 роки тому +3

    nice

  • @arindamdas1877
    @arindamdas1877 4 роки тому

    Thanks Bro !!

  • @saikoushik7626
    @saikoushik7626 2 роки тому

    super sister

  • @Sanidkumar
    @Sanidkumar 3 роки тому

    Please provide the code .

  • @chayanroy3723
    @chayanroy3723 3 роки тому +1

    😊😊😊

  • @malikmubashar
    @malikmubashar 2 роки тому

    Please provide the source code

  • @jaychandra7254
    @jaychandra7254 4 роки тому

    U'r voice is chooooo...... chweeeeetttttttt.....👌

  • @pradeepneet7057
    @pradeepneet7057 Рік тому

    😮😮

  • @sahilprasantachoudhury911
    @sahilprasantachoudhury911 3 роки тому +1

    Self referential note: 7:40 ru dekhe

  • @biswanathchowdhury7322
    @biswanathchowdhury7322 3 роки тому +1

    nothing but has a separate fanbase

  • @sudeep2580
    @sudeep2580 2 роки тому

    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?

  • @nagendravarma8495
    @nagendravarma8495 4 роки тому +4

    Cuteness overloaded 💘

  • @Shorts-he8pk
    @Shorts-he8pk 3 роки тому

    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* ❤️❤️❤️❤️❤️❤️

  • @Macatho
    @Macatho Рік тому

    Use numpy for gods sake