Module Expr Str ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Call NameLoad Num Assign NameStore Call NameLoad Num Assign TupleStore NameStore NameStore NameStore Call NameLoad Str FunctionDef arguments args defaults body Assert Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assert Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assert Call NameLoad BinOpAdd BinOpMult Num NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assert Call NameLoad BinOpAdd Call NameLoad Num NameLoad NameLoad Assert Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assert Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Assert CompareEq SubscriptLoad BinOpAdd Call NameLoad Num NameLoad Index TupleLoad Num Num Num decorator_list FunctionDef arguments args defaults body Assign TupleStore NameStore NameStore NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Call NameLoad Num For NameStore ListLoad NameLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad NameLoad body Assert Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Str Num Num Assign NameStore BinOpAdd Call NameLoad Num NameLoad Assert CompareEq SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd Num SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assert CompareEq SubscriptLoad BinOpMult NameLoad NameLoad Index TupleLoad Num Num BinOpMult Num NameLoad Assert CompareEq SubscriptLoad BinOpAdd NameLoad NameLoad Index TupleLoad Num Num BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Assert CompareEq SubscriptLoad BinOpMult NameLoad NameLoad Index TupleLoad Num Num BinOpAdd BinOpAdd BinOpMult SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpMult SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpMult SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Call NameLoad Num Assign NameStore Call NameLoad Num Num Call NameLoad Num Assign NameStore Call NameLoad Str Num Num Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Assert CompareEq Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults Call NameLoad NameLoad NameLoad decorator_list
N/A N/A 
We have a few different kind of Matrices
Matrix, ImmutableMatrix, MatrixExpr

Here we test the extent to which they cooperate
 sympy symbols sympy.matrices Matrix MatrixSymbol eye Identity ImmutableMatrix sympy.core.compatibility range sympy.matrices.expressions MatrixExpr MatAdd sympy.matrices.matrices classof sympy.utilities.pytest raises N/A SM N/A MatrixSymbol X 3 3 N/A MM N/A Matrix N/A N/A 1 2 3 N/A 4 5 6 N/A 7 8 9 N/A IM N/A ImmutableMatrix N/A N/A 1 2 3 N/A 4 5 6 N/A 7 8 9 N/A meye N/A eye 3 N/A imeye N/A ImmutableMatrix N/A eye 3 N/A ideye N/A Identity 3 N/A N/A a b c N/A symbols a,b,c test_IM_MM N/A N/A N/A N/A N/A N/A isinstance N/A MM IM ImmutableMatrix N/A N/A isinstance N/A IM MM ImmutableMatrix N/A N/A isinstance N/A N/A 2 IM MM ImmutableMatrix N/A N/A N/A MM equals IM N/A test_ME_MM N/A N/A N/A N/A N/A N/A isinstance N/A N/A Identity 3 MM MatrixExpr N/A N/A isinstance N/A SM MM MatAdd N/A N/A isinstance N/A MM SM MatAdd N/A N/A N/A N/A N/A Identity 3 MM N/A N/A 1 1 6 N/A test_equality N/A N/A N/A N/A N/A N/A a b c N/A N/A Identity 3 N/A eye 3 N/A ImmutableMatrix N/A eye 3 N/A x N/A a b c N/A N/A y N/A a b c N/A N/A N/A N/A x equals y N/A test_matrix_symbol_MM N/A N/A N/A N/A N/A X N/A MatrixSymbol X 3 3 N/A Y N/A N/A eye 3 X N/A N/A N/A Y N/A N/A 1 1 N/A 1 N/A X N/A N/A 1 1 N/A test_indexing_interactions N/A N/A N/A N/A N/A N/A N/A N/A a IM N/A N/A 1 1 N/A 5 a N/A N/A N/A N/A SM IM N/A N/A 1 1 N/A N/A SM N/A N/A 1 1 N/A IM N/A N/A 1 1 N/A N/A N/A N/A SM IM N/A N/A 1 1 N/A N/A N/A N/A SM N/A N/A 1 0 N/A IM N/A N/A 0 1 N/A N/A SM N/A N/A 1 1 N/A IM N/A N/A 1 1 N/A N/A SM N/A N/A 1 2 N/A IM N/A N/A 2 1 N/A test_classof N/A N/A N/A N/A N/A A N/A Matrix 3 3 N/A range 9 N/A B N/A ImmutableMatrix 3 3 N/A range 9 N/A C N/A MatrixSymbol C 3 3 N/A N/A N/A classof A A Matrix N/A N/A N/A classof B B ImmutableMatrix N/A N/A N/A classof A B ImmutableMatrix N/A N/A N/A classof B A ImmutableMatrix N/A N/A raises TypeError N/A N/A N/A N/A N/A classof A C N/A