Module ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad FunctionDef arguments args defaults body Assert CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assert CompareEq AttributeLoad BinOpMult NameLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq AttributeLoad BinOpMult NameLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad BinOpMult NameLoad NameLoad attr NameLoad Assert CompareEq BinOpSub BinOpSub BinOpMult Num NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad BinOpMult NameLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assert CompareEq AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr TupleLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad BinOpMult NameLoad NameLoad attr NameLoad NameLoad BinOpMult NameLoad NameLoad Assert AttributeLoad Call AttributeLoad BinOpMult NameLoad NameLoad attr NameLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq BinOpAdd NameLoad NameLoad NameLoad Assert CompareEq BinOpMult NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assert CompareEq BinOpMult NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assert CompareEq BinOpSub NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Assert UnaryOpNot NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Assert CompareEq BinOpPow Call NameLoad NameLoad NameLoad Num Call NameLoad NameLoad With Call NameLoad NameLoad body Expr BinOpPow NameLoad Num With Call NameLoad NameLoad body Expr BinOpPow NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpMult Num NameLoad NameLoad Assert Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assert CompareEq BinOpMult NameLoad NameLoad NameLoad Assert CompareEq BinOpMult NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call NameLoad BinOpMult Num NameLoad Assert Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assert Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assert CompareEq AttributeLoad BinOpAdd NameLoad NameLoad attr AttributeLoad NameLoad attr Assert Call NameLoad BinOpAdd BinOpSub NameLoad NameLoad BinOpMult Num NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpAdd NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpAdd NameLoad Num Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpAdd Num NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpSub Num NameLoad Assert CompareEq BinOpSub BinOpAdd NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr BinOpAdd Call NameLoad NameLoad NameLoad Call NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assert CompareEq AttributeLoad BinOpMult BinOpMult Num NameLoad NameLoad attr TupleLoad NameLoad NameLoad Assert CompareEq BinOpMult BinOpMult NameLoad Num NameLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpMult NameLoad NameLoad Assert CompareEq AttributeLoad BinOpMult Num NameLoad attr AttributeLoad NameLoad attr Assert CompareEq BinOpMult BinOpMult NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Assert CompareEq BinOpMult BinOpMult NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assert CompareEq BinOpDiv NameLoad Num BinOpMult AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpDiv Num NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assert CompareEq BinOpMult Call NameLoad NameLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Num Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad BinOpPow NameLoad NameLoad attr NameLoad Assert CompareEq BinOpPow NameLoad Num Call NameLoad NameLoad Assert CompareEq BinOpPow NameLoad Num NameLoad Assert CompareEq BinOpPow NameLoad Num NameLoad Assert CompareEq BinOpPow NameLoad Num Call NameLoad NameLoad Assert CompareEq BinOpPow NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpPow Call NameLoad Str Num Num Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Assign NameStore Call NameLoad Str NameLoad NameLoad Assert CompareEq AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults Call Call NameLoad Str NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assert CompareEq Call NameLoad NameLoad Call NameLoad Num Num Lambda arguments args NameParam NameParam defaults SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad Num Num Lambda arguments args NameParam NameParam defaults SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assert CompareEq AttributeLoad BinOpMult NameLoad NameLoad attr Call NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assert Call NameLoad BinOpMult AttributeLoad NameLoad attr Call NameLoad Str Num Num NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Call NameLoad ListLoad ListLoad BinOpAdd BinOpPow Call NameLoad NameLoad Num BinOpPow Call NameLoad NameLoad Num Call NameLoad NameLoad Call NameLoad ListLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assert CompareEq Call NameLoad Call NameLoad NameLoad Call NameLoad ListLoad ListLoad BinOpAdd BinOpPow Call NameLoad NameLoad Num BinOpPow Call NameLoad NameLoad Num Call NameLoad NameLoad Call NameLoad ListLoad ListLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Num Call NameLoad NameLoad Num Call NameLoad NameLoad Num For NameStore NameLoad body Assert CompareEq NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str NameLoad NameLoad Expr SubscriptLoad NameLoad Index TupleLoad Num Num Expr SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Expr SubscriptLoad NameLoad Index TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assert CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index TupleLoad Num Num Assert CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index TupleLoad Num Num Assert CompareEq Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Num Slice Num ListLoad SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Expr Call NameLoad NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args defaults body Assert CompareEq Call AttributeLoad BinOpMult SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num attr SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assign NameStore Call NameLoad ListLoad Num Num Assert CompareEq Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad Num Num attr NameLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Assert CompareEq BinOpPow NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Assert CompareEq BinOpPow NameLoad Num NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Assign NameStore Call NameLoad Num Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assert CompareEq BinOpPow NameLoad Num NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpPow NameLoad Num Assert CompareEq BinOpPow NameLoad Num Call NameLoad NameLoad Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad Call NameLoad NameLoad Num attr Assign NameStore Call NameLoad Num Num Assert CompareEq Call AttributeLoad Call NameLoad NameLoad Num attr BinOpPow NameLoad Num Expr Call NameLoad NameLoad Lambda arguments args defaults BinOpPow NameLoad Num Assert CompareEq BinOpPow NameLoad Num Call AttributeLoad Call NameLoad NameLoad Num attr Assert CompareEq BinOpPow NameLoad Num Call NameLoad Num Expr Call NameLoad NameLoad Lambda arguments args defaults Call AttributeLoad Call NameLoad NameLoad Num attr decorator_list
N/A sympy.core S symbols Add Mul sympy.functions transpose sin cos sqrt sympy.simplify simplify sympy.matrices Identity ImmutableMatrix Inverse MatAdd MatMul MatPow Matrix MatrixExpr MatrixSymbol ShapeError ZeroMatrix Transpose Adjoint sympy.utilities.pytest raises N/A N/A n m l k p N/A symbols n m l k p integer True N/A x N/A symbols x N/A A N/A MatrixSymbol A n m N/A B N/A MatrixSymbol B m l N/A C N/A MatrixSymbol C n n N/A D N/A MatrixSymbol D n n N/A E N/A MatrixSymbol E m n test_shape N/A N/A N/A N/A N/A N/A N/A A shape N/A n m N/A N/A N/A N/A A B shape N/A n l N/A N/A raises ShapeError N/A N/A N/A N/A N/A B A N/A test_matexpr N/A N/A N/A N/A N/A N/A N/A N/A x A shape N/A A shape N/A N/A N/A N/A x A __class__ MatMul N/A N/A N/A N/A N/A 2 A A A N/A ZeroMatrix N/A A shape N/A N/A N/A N/A A B shape N/A n l N/A test_subs N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A B N/A MatrixSymbol B m l N/A C N/A MatrixSymbol C m l N/A N/A N/A N/A N/A A subs n m shape N/A m m N/A N/A N/A N/A N/A A B subs B C N/A A C N/A N/A N/A N/A N/A A B subs l n is_square N/A test_ZeroMatrix N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A Z N/A ZeroMatrix n m N/A N/A N/A A Z A N/A N/A N/A A N/A Z T N/A ZeroMatrix n n N/A N/A N/A Z N/A A T N/A ZeroMatrix n n N/A N/A N/A A A N/A ZeroMatrix N/A A shape N/A N/A Z N/A N/A N/A transpose Z N/A ZeroMatrix m n N/A N/A N/A N/A Z conjugate Z N/A N/A N/A N/A ZeroMatrix n n 0 N/A Identity n N/A N/A raises ShapeError N/A N/A N/A Z 0 N/A N/A raises ShapeError N/A N/A N/A Z 2 N/A test_ZeroMatrix_doit N/A N/A N/A N/A N/A Znn N/A ZeroMatrix N/A Add n n evaluate False n N/A N/A isinstance N/A Znn rows Add N/A N/A N/A N/A Znn doit N/A ZeroMatrix N/A 2 n n N/A N/A isinstance N/A N/A N/A Znn doit rows Mul N/A test_Identity N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A In N/A Identity n N/A Im N/A Identity m N/A N/A N/A A Im A N/A N/A N/A In A A N/A N/A N/A transpose In In N/A N/A N/A N/A In inverse In N/A N/A N/A N/A In conjugate In N/A test_Identity_doit N/A N/A N/A N/A N/A Inn N/A Identity N/A Add n n evaluate False N/A N/A isinstance N/A Inn rows Add N/A N/A N/A N/A Inn doit N/A Identity N/A 2 n N/A N/A isinstance N/A N/A N/A Inn doit rows Mul N/A test_addition N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A B N/A MatrixSymbol B n m N/A N/A isinstance N/A A B MatAdd N/A N/A N/A N/A A B shape N/A A shape N/A N/A isinstance N/A N/A A A N/A 2 B MatMul N/A N/A raises ShapeError N/A N/A N/A N/A N/A A N/A B T N/A N/A raises TypeError N/A N/A N/A N/A N/A A 1 N/A N/A raises TypeError N/A N/A N/A N/A N/A 5 A N/A N/A raises TypeError N/A N/A N/A N/A N/A 5 A N/A N/A N/A N/A A N/A ZeroMatrix n m A N/A ZeroMatrix n m N/A N/A raises TypeError N/A N/A N/A N/A ZeroMatrix n m N/A S 0 N/A test_multiplication N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A B N/A MatrixSymbol B m l N/A C N/A MatrixSymbol C n n N/A N/A N/A N/A N/A 2 A B shape N/A n l N/A N/A N/A N/A A 0 B N/A ZeroMatrix n l N/A N/A raises ShapeError N/A N/A N/A N/A N/A B A N/A N/A N/A N/A 2 A shape N/A A shape N/A N/A N/A N/A A N/A ZeroMatrix m m B N/A ZeroMatrix n l N/A N/A N/A N/A C N/A Identity n N/A C I N/A Identity n N/A N/A N/A B 2 N/A N/A S Half B N/A N/A raises NotImplementedError N/A N/A N/A N/A N/A 2 B N/A A N/A MatrixSymbol A n n N/A B N/A MatrixSymbol B n n N/A N/A N/A N/A Identity n N/A A B N/A A B N/A test_MatPow N/A N/A N/A N/A N/A A N/A MatrixSymbol A n n N/A AA N/A MatPow A 2 N/A N/A N/A AA exp 2 N/A N/A N/A AA base A N/A N/A N/A N/A A n exp n N/A N/A N/A A 0 N/A Identity n N/A N/A N/A A 1 A N/A N/A N/A A 2 AA N/A N/A N/A A -1 N/A Inverse A N/A N/A N/A A N/A S Half N/A sqrt A N/A N/A raises ShapeError N/A N/A N/A N/A N/A N/A MatrixSymbol B 3 2 2 N/A test_MatrixSymbol N/A N/A N/A N/A N/A N/A n m t N/A symbols n,m,t N/A X N/A MatrixSymbol X n m N/A N/A N/A X shape N/A n m N/A N/A raises TypeError N/A N/A N/A N/A N/A N/A MatrixSymbol X n m t N/A N/A N/A N/A X doit X N/A test_dense_conversion N/A N/A N/A N/A N/A X N/A MatrixSymbol X 2 2 N/A N/A N/A ImmutableMatrix X N/A ImmutableMatrix 2 2 N/A N/A N/A i j N/A N/A X N/A N/A i j N/A N/A N/A Matrix X N/A Matrix 2 2 N/A N/A N/A i j N/A N/A X N/A N/A i j N/A test_free_symbols N/A N/A N/A N/A N/A N/A N/A N/A C D free_symbols N/A set N/A C D N/A test_zero_matmul N/A N/A N/A N/A N/A N/A isinstance N/A N/A S Zero N/A MatrixSymbol X 2 2 MatrixExpr N/A test_matadd_simplify N/A N/A N/A N/A N/A A N/A MatrixSymbol A 1 1 N/A N/A N/A simplify N/A MatAdd A N/A ImmutableMatrix N/A N/A N/A N/A N/A sin x 2 N/A N/A cos x 2 N/A MatAdd A N/A ImmutableMatrix N/A N/A 1 N/A test_matmul_simplify N/A N/A N/A N/A N/A A N/A MatrixSymbol A 1 1 N/A N/A N/A simplify N/A MatMul A N/A ImmutableMatrix N/A N/A N/A N/A N/A sin x 2 N/A N/A cos x 2 N/A MatMul A N/A ImmutableMatrix N/A N/A 1 N/A test_invariants N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A B N/A MatrixSymbol B m l N/A X N/A MatrixSymbol X n n N/A objs N/A N/A Identity n N/A ZeroMatrix m n A N/A MatMul A B N/A MatAdd A A N/A Transpose A N/A Adjoint A N/A Inverse X N/A MatPow X 2 N/A MatPow X -1 N/A MatPow X 0 N/A obj objs N/A N/A N/A obj N/A N/A obj __class__ N/A obj args N/A test_indexing N/A N/A N/A N/A N/A A N/A MatrixSymbol A n m N/A N/A A N/A N/A 1 2 N/A N/A A N/A N/A l k N/A N/A A N/A N/A N/A l 1 N/A k 1 N/A test_single_indexing N/A N/A N/A N/A N/A A N/A MatrixSymbol A 2 3 N/A N/A N/A A N/A 1 N/A A N/A N/A 0 1 N/A N/A N/A A N/A 3 N/A A N/A N/A 1 0 N/A N/A N/A list N/A A N/A N/A 2 N/A 2 N/A N/A A N/A N/A 0 0 N/A A N/A N/A 0 1 N/A A N/A N/A 1 0 N/A A N/A N/A 1 1 N/A N/A raises IndexError N/A N/A N/A N/A N/A A N/A 6 N/A N/A raises IndexError N/A N/A N/A N/A N/A A N/A n N/A B N/A MatrixSymbol B n m N/A N/A raises IndexError N/A N/A N/A N/A N/A B N/A 1 N/A test_MatrixElement_diff N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A A N/A N/A 3 0 N/A A N/A N/A 0 0 diff N/A A N/A N/A 0 0 N/A A N/A N/A 3 0 N/A test_MatrixElement_doit N/A N/A N/A N/A N/A u N/A MatrixSymbol u 2 1 N/A v N/A ImmutableMatrix N/A 3 5 N/A N/A N/A N/A N/A N/A N/A u N/A N/A 0 0 subs u v doit N/A v N/A N/A 0 0 N/A test_identity_powers N/A N/A N/A N/A N/A M N/A Identity n N/A N/A N/A N/A N/A MatPow M 3 doit N/A M 3 N/A N/A N/A M n M N/A N/A N/A N/A N/A MatPow M 0 doit N/A M 2 N/A N/A N/A M -2 M N/A N/A N/A N/A N/A MatPow M -2 doit N/A M 0 N/A N N/A Identity 3 N/A N/A N/A N/A N/A MatPow N 2 doit N/A N n N/A N/A N/A N/A N/A MatPow N 3 doit N N/A N/A N/A N/A N/A MatPow N -2 doit N/A N 4 N/A N/A N/A N/A N/A MatPow N 2 doit N/A N 0 N/A test_Zero_power N/A N/A N/A N/A N/A z1 N/A ZeroMatrix n n N/A N/A N/A z1 4 z1 N/A N/A raises ValueError N/A N/A N/A N/A N/A z1 -2 N/A N/A N/A z1 0 N/A Identity n N/A N/A N/A N/A N/A MatPow z1 2 doit N/A z1 2 N/A N/A raises ValueError N/A N/A N/A N/A N/A N/A N/A MatPow z1 -2 doit N/A z2 N/A ZeroMatrix 3 3 N/A N/A N/A N/A N/A MatPow z2 4 doit N/A z2 4 N/A N/A raises ValueError N/A N/A N/A N/A N/A z2 -3 N/A N/A N/A z2 3 N/A N/A N/A MatPow z2 3 doit N/A N/A N/A z2 0 N/A Identity 3 N/A N/A raises ValueError N/A N/A N/A N/A N/A N/A N/A MatPow z2 -1 doit N/A