Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# sympy.matrices.expressions.MatrixSymbol.T

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

```    assert trace(ZeroMatrix(5, 5)) == 0
assert trace(2*A*B) == 2 * trace(A*B)
assert trace(A.T) == trace(A)

i, j = symbols('i j')
```

```def test_bc_transpose():
assert bc_transpose(Transpose(BlockMatrix([[A, B], [C, D]]))) == \
BlockMatrix([[A.T, C.T], [B.T, D.T]])

def test_bc_dist_diag():
```
```    assert block_collapse(A + 2*E) == A + 2*E
F = MatrixSymbol('F', m, m)
assert block_collapse(E.T*A*F) == E.T*A*F

assert X.shape == (l + n, k + m)
```

```def test_square():

```
```    assert ask(Q.invertible(X*Z), Q.invertible(X)) is None
assert ask(Q.invertible(X*Z), Q.invertible(X) & Q.invertible(Z)) is True
```
```    assert ask(Q.symmetric(X + Z), Q.symmetric(X) & Q.symmetric(Z)) is True
```

```    assert trace(ZeroMatrix(5, 5)) == 0
assert trace(2*A*B) == 2 * trace(A*B)
assert trace(A.T) == trace(A)

i, j = symbols('i j')
```

```def test_bc_transpose():
assert bc_transpose(Transpose(BlockMatrix([[A, B], [C, D]]))) == \
BlockMatrix([[A.T, C.T], [B.T, D.T]])

def test_bc_dist_diag():
```
```    assert block_collapse(A + 2*E) == A + 2*E
F = MatrixSymbol('F', m, m)
assert block_collapse(E.T*A*F) == E.T*A*F

assert X.shape == (l + n, k + m)
```

```def test_square():

```
```    assert ask(Q.invertible(X*Z), Q.invertible(X)) is None
assert ask(Q.invertible(X*Z), Q.invertible(X) & Q.invertible(Z)) is True
```    assert ask(Q.symmetric(X + Z), Q.symmetric(X) & Q.symmetric(Z)) is True