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

1 | initial version |

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

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?

3 | retagged |

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?

4 | retagged |

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?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.