We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Physically rotating means you actually swap things around in memory, or create a new matrix with things in the right place. By logical rotation, I mean you never swap things around in memory. For each (i,j) pair, you logic out which value to print from the original matrix and then just print it.
Matrix Layer Rotation
You are viewing a single comment's thread. Return to all comments →
Physically rotating means you actually swap things around in memory, or create a new matrix with things in the right place. By logical rotation, I mean you never swap things around in memory. For each
(i,j)
pair, you logic out which value to print from the original matrix and then just print it.