| ▲ | SideQuark a day ago |
| Embed them in square matrices with zeroes, then subdivide. So yes. |
|
| ▲ | im3w1l a day ago | parent | next [-] |
| Obviously you can do that, but given how wasteful it is when the dimensions are very different, it seems like it should be possible to do better. |
| |
| ▲ | hexomancer 20 hours ago | parent | next [-] | | It is not wasteful with regards to the theta factor, it might be wasteful from a practical standpoint, but the algorithm is not practical anyway, even for square matrices. | |
| ▲ | SideQuark 5 hours ago | parent | prev | next [-] | | You can subdivide any shape into square shapes, and you get the same bound. You only thinking of rectangles, but that rectangle is a square and some leftover, then recurse on the leftover. Matrix multiplications are recursive on shapes. Play with it by hand a while. It's how AI accelerators can process tensors with a fixed size matmul silicon block. | |
| ▲ | 20 hours ago | parent | prev [-] | | [deleted] |
|
|
| ▲ | vlovich123 a day ago | parent | prev | next [-] |
| It’s not immediately obvious to me that argument is sound since we’re talking about the exact bound. I believe the lower bound for certain rectangular sizes is less than 2.25 while 2.25 remains an upper bound for rectangular matrices. |
| |
| ▲ | pastel8739 a day ago | parent [-] | | I think it’s actually obvious that this argument isn’t sound, think about multiplying a 1x5 matrix by a 5x1 matrix—this can clearly be done in linear time. | | |
| ▲ | fn-mote a day ago | parent [-] | | Pedantry: In order for O(n) or Theta(n) to be relevant, your problem statement needs to have an “n” in it. So: Multiplying a (1,n) matrix by an (n,1) matrix is linear in n. |
|
|
|
| ▲ | hinkley a day ago | parent | prev | next [-] |
| And what's the complexity of the computation in n if you're multiplying two matrices that are m x m? |
|
| ▲ | scythe a day ago | parent | prev [-] |
| This is not always optimal if m is o(n) |