Is this just a matrix multiplication, isn't?