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

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

src/s/y/sympy-0.7.5/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
 
    assert adjoint(Trace(A)) == trace(Adjoint(A))
    assert conjugate(Trace(A)) == trace(Adjoint(A))
    assert transpose(Trace(A)) == Trace(A)
 

src/s/y/sympy-HEAD/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
 
    assert adjoint(Trace(A)) == trace(Adjoint(A))
    assert conjugate(Trace(A)) == trace(Adjoint(A))
    assert transpose(Trace(A)) == Trace(A)
 

src/s/y/sympy-0.7.5/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
    assert trace(Matrix(3, 3, [1, 2, 3, 4, 5, 6, 7, 8, 9])) == 15
 
    assert adjoint(Trace(A)) == trace(Adjoint(A))
    assert conjugate(Trace(A)) == trace(Adjoint(A))
    assert transpose(Trace(A)) == Trace(A)

src/s/y/sympy-0.7.5/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
def test_Trace():
    assert isinstance(Trace(A), Trace)
    assert not isinstance(Trace(A), MatrixExpr)
    raises(ShapeError, lambda: Trace(C))
    assert trace(eye(3)) == 3
    assert trace(Matrix(3, 3, [1, 2, 3, 4, 5, 6, 7, 8, 9])) == 15

src/s/y/sympy-HEAD/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
    assert trace(Matrix(3, 3, [1, 2, 3, 4, 5, 6, 7, 8, 9])) == 15
 
    assert adjoint(Trace(A)) == trace(Adjoint(A))
    assert conjugate(Trace(A)) == trace(Adjoint(A))
    assert transpose(Trace(A)) == Trace(A)

src/s/y/sympy-HEAD/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
def test_Trace():
    assert isinstance(Trace(A), Trace)
    assert not isinstance(Trace(A), MatrixExpr)
    raises(ShapeError, lambda: Trace(C))
    assert trace(eye(3)) == 3
    assert trace(Matrix(3, 3, [1, 2, 3, 4, 5, 6, 7, 8, 9])) == 15

src/s/y/sympy-0.7.5/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
 
    # Some easy simplifications
    assert trace(Identity(5)) == 5
    assert trace(ZeroMatrix(5, 5)) == 0
    assert trace(2*A*B) == 2 * trace(A*B)
    assert trace(A.T) == trace(A)

src/s/y/sympy-HEAD/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
 
    # Some easy simplifications
    assert trace(Identity(5)) == 5
    assert trace(ZeroMatrix(5, 5)) == 0
    assert trace(2*A*B) == 2 * trace(A*B)
    assert trace(A.T) == trace(A)

src/s/y/sympy-0.7.5/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
    assert Trace(A).arg is A
 
    assert str(trace(A)) == str(Trace(A).doit(deep=True))
 
@XFAIL

src/s/y/sympy-HEAD/sympy/matrices/expressions/tests/test_trace.py   sympy(Download)
    assert Trace(A).arg is A
 
    assert str(trace(A)) == str(Trace(A).doit(deep=True))
 
@XFAIL

  1 | 2  Next