Calculate the inverse of a matrix using Numpy

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 22

  • @sk45293
    @sk45293 3 роки тому +15

    This type of short video about 1-2 topics is really helpful. Easy to find the info needed. Thanks!

  • @cernejr
    @cernejr 3 роки тому +5

    Next time please also discuss numerical stability of the algorithm and rounding-error-creep. Those are important considerations when doing numerical computations using floating point numbers.

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

      Totally agree, especially in what I do in trading.

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

    Clear and straight to the point. Thank you!

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

    But note that in practice you almost never want to compute the inverse of a matrix explicitly. This is one of the important lessons of numerical linear algebra. For example, when solving Ax = b, you'd typically compute the LU factorization of A (or perhaps the QR factorization of A) rather than explicitly computing the inverse of A. When changing basis from the standard basis to the basis consisting of the columns of a matrix Q, we are given a vector x and we need to compute y = Q^{-1} x. But the best way to do that is to solve the system Qy = x. To solve that system, you would not compute the inverse of Q explicitly.

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

    Very usefull beacuse im taking linera algebra in university and im looking for tools to help me out in everytnhing im learning

  • @retinapeg1846
    @retinapeg1846 3 роки тому +5

    Why are the off diagonals non-zero of np.matmul(M,Minv)? Is this due to the underlying precision of the C code running under the hood of numpy?

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

      I don't think it's C related. It is the fact the MCU will be operating with 32-bit or 64-bit resolution.

  • @tomoki-v6o
    @tomoki-v6o 3 роки тому

    The matrix you used is the stiffness matrix of 4 springs connected in serries with stiffness of one

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

    I believe M @ Minv and M.dot(Minv) would also do the same matrix multiplication operation with 2D numpy arrays.

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

    I was there when it was written

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

    is there a way to vectorize the inverse operation if we have two or more square matrices?

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

    Please share the vendor name for the desk

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

    is there a way to represent that matrix in 2-decimal format?

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

    Wanted to ask how was your journey with Open University. I'm planning to do a bsc mathematics and statistics honours :) for data science. Would love your opinion if it's a good choice :)

  • @8koi139
    @8koi139 3 роки тому

    I choked on my breakfast in the intro lol

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

    what about coding it from scratch?

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

    A multiplicação da matriz inversa pela matriz não deveria de resultar na matriz identidade? E não numa triangular superior...

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

    Wait, 0 views 35 likes

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

    pog

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

    Also 45 likes 😂😂

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

    Lol 1view and 5comments