# How to rearrange matrix entries from another matrix entries [closed]

Suppose i have $m\times m$ matrix $D$ which is known, i have to re arrange entries of $D$ to a new $m\times m$ matrix $M$ such that $M_{i,j}=D_{j-i%m, -i%m}$. How to do it in SageMath?

### Closed for the following reason
**the question is answered, right answer was accepted** by
*Akhilesh *

close date 2023-12-14 06:23:18.215781

add a comment