# elementary matrices for elementary row operations

Hello,

I'm using Sage to get random_matrix for Students.

```
random_matrix(QQ,4,4, algorithm="echelonizable", rank=4, upper_bound=15)
```

Is there an option to get all elementary matrices for all elementary matrix-operations by using for example matrix.inverse()?

Thanks for the help!

I don't understand the question. But this might be related:

http://wiki.sagemath.org/interact/linear_algebra#The_Gauss-Jordan_method_for_inverting_a_matrix