• fallingcats
    link
    fedilink
    English
    arrow-up
    4
    ·
    9 个月前

    Wouldn’t you need to put anyMatrix first, since matrix multiplication isn’t commutative?

      • fallingcats
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        9 个月前

        No I just tried it and I was wrong, it seems like it doesn’t matter for the ID matrix specifically

        • pseudo@jlai.lu
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 个月前

          I need to freshen up on my linear algebra. I don’t remember on which sense it goes but I think if you swap the factors, you’ll have to you transpose the matrix x to keep the same result.

    • MBM@lemmings.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 个月前

      Huh? Identity times anyMatrix is also anyMatrix. The matrix just has to have the right dimensions