Navigation

Source code for sympy.matrices.common

"""Basic methods common to all matrices to be usedwhen creating more advanced matrices (e.g., matrices over rings,etc.)."""from__future__importprint_function,divisionimportcollectionsfromsympy.core.addimportAddfromsympy.core.basicimportBasic,Atomfromsympy.core.exprimportExprfromsympy.core.symbolimportSymbolfromsympy.core.functionimportcount_opsfromsympy.core.singletonimportSfromsympy.core.sympifyimportsympifyfromsympy.core.compatibilityimportis_sequence,default_sort_key,range, \
NotIterablefromsympy.simplifyimportsimplifyas_simplify,signsimp,nsimplifyfromsympy.utilities.iterablesimportflattenfromsympy.functionsimportAbsfromsympy.core.compatibilityimportreduce,as_int,string_typesfromsympy.assumptions.refineimportrefinefromsympy.core.decoratorsimportcall_highest_priorityfromtypesimportFunctionType