I like the idea, but my brain is wired differently. Usually, when I do matrix multiplications, the rows on the left side transition to the columns on the right side. In the example, the 1 goes to 2, 2 to 6, 1 to 1. The animation completely confused me, because it looks like being reversed, but the result is the same. Maybe, make this a visualization option?
Matrix Multiplication
31–40 of 135 posts
Re: Matrix Multiplication
#32I feel like I understand Matrices _less_ now than when I started reading around here.
Re: Matrix Multiplication
#33I like the idea, but my brain is wired differently. Usually, when I do matrix multiplications, the rows on the left side transition to the columns on the right side. In the example, the 1 goes to 2, 2 to 6, 1 to 1. The animation completely confused me, because it looks like being reversed, but the result is the same. Maybe, make this a visualization option?
Not wrong, but discordant with my expectations.
Re: Matrix Multiplication
#34There's two ways of seeing matrix multiplication (from a matrix POV, rather than as linear transformations).
Re: Matrix Multiplication
#35This is a cool example of what Bret Victor calls an "Explorable Explanation" [0]. That said, I feel that it's more important to understand how and why matrix multiplication corresponds to a composition of linear transformations than learning the actual mechanics of doing the computation. You can get good at matrix multiplication without knowing what is going on. I view that as a less valuable activity than learning a…
The point then is that the taps (again, representing the matrix values) determine how much of each item in the input vector, that should be mixed into each item in the output vector.
This analogy has the limitation that the taps are allowed to enhance the flow, not just limit it, like physical taps would. That is, outputting more than 100% of the input :P Also, while this way of illustrating it may make some sense for matrix * vector multiplication, matrix * matrix would probably become a prohibitively cluttered image.
Re: Matrix Multiplication
#36This is a cool example of what Bret Victor calls an "Explorable Explanation" [0]. That said, I feel that it's more important to understand how and why matrix multiplication corresponds to a composition of linear transformations than learning the actual mechanics of doing the computation. You can get good at matrix multiplication without knowing what is going on. I view that as a less valuable activity than learning a…
In particular understanding that conjugation by another matrix is just a coordinate/frame transformation is crucial. Relying to much on explicit coordinates many times obfuscates what's going on.
Re: Matrix Multiplication
#37Earlier quoted context omitted.
Bingo. We did matrices in high school and even through a first linear algebra course in undergrad I got more or less competent at the mechanics of matrix multiplication without ever having any sense of why anyone would want to do this or why these rules, as opposed to some other set of rules that were equally formally valid, were of any interest. I could even tell you what the eigenvectors of a matrix were but had no…
I feel very similar. Do you have any recommendations for resources to learn about why matrix multiplication is defined that way?
Once I had finished that, Cullen's "Matrices and linear transformations"[2] was really helpful too. But I wouldn't do Cullen if you're still, as I was, floundering with the concepts of why you're doing this in the first place. It's great once you have those concepts down.
[1]: https://www.amazon.com/All-Mathematics-You-Missed-Graduate/d...
Re: Matrix Multiplication
#38Earlier quoted context omitted.
Bingo. We did matrices in high school and even through a first linear algebra course in undergrad I got more or less competent at the mechanics of matrix multiplication without ever having any sense of why anyone would want to do this or why these rules, as opposed to some other set of rules that were equally formally valid, were of any interest. I could even tell you what the eigenvectors of a matrix were but had no…
I feel very similar. Do you have any recommendations for resources to learn about why matrix multiplication is defined that way?
Now let's see what happens after two steps. If the system started out in state i, what's the probability that after two steps it will end up in state k? Well, it's the sum over all possible paths. In other words, the sum of probabilities of i->j->k for all possible j. In other words, the sum of p_{ij} times p_{jk} for j from 1 to N. But that's exactly the definition of multiplying a matrix by itself.
Now it should be easy to understand that whenever you have matrices that represent transformations of some object, composing transformations will correspond to multiplying matrices.
Re: Matrix Multiplication
#39Re: Matrix Multiplication
#40As a gamedev who uses matrices all the time, I don't find this animation useful at all for practical work. Instead I think of matrix multiplication as creating a list of ordered operations (scale x translate x rotate etc) which is just encoded efficiently in a table, to then be sent to other parts of the program for use. You can even remove items from the list by multiplying by their inverse.
1. Scale in X and Y of -1
2. Z rotation of 180