Did I find the right examples for you? yes no

sympy.matrices.MutableMatrix

All Samples(12)  |  Call(0)  |  Derive(0)  |  Import(12)

```    def jordan_cell(self, eigenval, n):
n = int(n)
from sympy.matrices import MutableMatrix
out = MutableMatrix.zeros(n)
for i in range(n-1):
```
```                # although multiplicity=4 and geometrical=2 are the same for this matrix.

from sympy.matrices import MutableMatrix
I = MutableMatrix.eye(self.rows)
l = eigenval
```
```        Pcols_new = []
jordan_block_structures = self._jordan_block_structure()
from sympy.matrices import MutableMatrix

# Order according to default_sort_key, this makes sure the order is the same as in .diagonalize():
```
```                "`self` and `rhs` must have the same number of rows.")

from sympy.matrices import MutableMatrix
newmat = MutableMatrix.zeros(self.rows, self.cols + rhs.cols)
newmat[:, :self.cols] = self
```
```                "`self` and `bott` must have the same number of columns.")

from sympy.matrices import MutableMatrix
newmat = MutableMatrix.zeros(self.rows + bott.rows, self.cols)
newmat[:self.rows, :] = self
```

```    def jordan_cell(self, eigenval, n):
n = int(n)
from sympy.matrices import MutableMatrix
out = MutableMatrix.zeros(n)
for i in range(n-1):
```
```                # although multiplicity=4 and geometrical=2 are the same for this matrix.

from sympy.matrices import MutableMatrix
I = MutableMatrix.eye(self.rows)
l = eigenval
```
```        Pcols_new = []
jordan_block_structures = self._jordan_block_structure()
from sympy.matrices import MutableMatrix

# Order according to default_sort_key, this makes sure the order is the same as in .diagonalize():
```
```                "`self` and `rhs` must have the same number of rows.")

from sympy.matrices import MutableMatrix
newmat = MutableMatrix.zeros(self.rows, self.cols + rhs.cols)
newmat[:, :self.cols] = self
```
```                "`self` and `bott` must have the same number of columns.")

from sympy.matrices import MutableMatrix
newmat = MutableMatrix.zeros(self.rows + bott.rows, self.cols)
newmat[:self.rows, :] = self
```