Module ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num kwarg body ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad Assign NameStore BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot Call NameLoad NameLoad NameLoad Assign NameStore BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot Call NameLoad NameLoad NameLoad If NameLoad body If UnaryOpNot NameLoad body Raise Call NameLoad Str orelse If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str NameLoad Str NameLoad Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias If Call NameLoad NameLoad NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore ListLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad orelse Assign NameStore ListLoad Assign NameStore Dict NameLoad TupleLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad UnaryOpNot CompareEq ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Index NameLoad ListComp ListLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad Str orelse If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body ImportFrom alias If UnaryOpNot NameLoad body Return ListLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body AugAssignAdd SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad orelse If BoolOpAnd SubscriptLoad AttributeLoad NameLoad attr Index Str BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Str Raise Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse For TupleStore NameStore NameStore NameLoad body If Call NameLoad AttributeLoad NameLoad attr body Break If CompareIsNot NameLoad NameLoad body Return BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str orelse If BoolOpAnd Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Return BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad Num body Assign NameStore Call NameLoad UnaryOpUSub NameLoad NameLoad Assign NameStore Str orelse Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad If CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr UnaryOpUSub AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr NameLoad ListLoad AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Return BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad orelse If CompareEq Call NameLoad NameLoad Num body Return BinOpAdd BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad Str SubscriptLoad NameLoad Index Num orelse Return BinOpAdd BinOpAdd NameLoad Call AttributeLoad Str attr NameLoad BinOpMod Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list
N/A __future__ print_function division sympy.core Add Mul Pow S sympy.core.basic Basic sympy.core.compatibility default_sort_key string_types sympy.core.function Lambda sympy.core.mul _keep_coeff sympy.core.relational Relational sympy.core.symbol Symbol sympy.printing.str StrPrinter sympy.printing.precedence precedence sympy.core.sympify _sympify sympify AssignmentError N/A Exception N/A N/A 
    Raised if an assignment variable for a loop is missing.
     N/A N/A Assignment N/A Relational N/A N/A 
    Represents variable assignment for code generation.

    Parameters
    ----------
    lhs : Expr
        Sympy object representing the lhs of the expression. These should be
        singular objects, such as one would use in writing code. Notable types
        include Symbol, MatrixSymbol, MatrixElement, and Indexed. Types that
        subclass these types are also supported.

    rhs : Expr
        Sympy object representing the rhs of the expression. This can be any
        type, provided its shape corresponds to that of the lhs. For example,
        a Matrix type can be assigned to MatrixSymbol, but not to Symbol, as
        the dimensions will not align.

    Examples
    ========

    >>> from sympy import symbols, MatrixSymbol, Matrix
    >>> from sympy.printing.codeprinter import Assignment
    >>> x, y, z = symbols('x, y, z')
    >>> Assignment(x, y)
    Assignment(x, y)
    >>> Assignment(x, 0)
    Assignment(x, 0)
    >>> A = MatrixSymbol('A', 1, 3)
    >>> mat = Matrix([x, y, z]).T
    >>> Assignment(A, mat)
    Assignment(A, Matrix([[x, y, z]]))
    >>> Assignment(A[0, 1], x)
    Assignment(A[0, 1], x)
     N/A rel_op := N/A __slots__ N/A __new__ N/A N/A cls lhs rhs N/A 0 assumptions N/A sympy.matrices.expressions.matexpr MatrixElement MatrixSymbol sympy.tensor.indexed Indexed N/A lhs N/A _sympify lhs N/A rhs N/A _sympify rhs N/A assignable N/A Symbol MatrixSymbol MatrixElement Indexed N/A N/A N/A isinstance lhs assignable N/A N/A N/A TypeError N/A Cannot assign to lhs of type %s. N/A type lhs N/A lhs_is_mat N/A N/A hasattr lhs shape N/A N/A isinstance lhs Indexed N/A rhs_is_mat N/A N/A hasattr rhs shape N/A N/A isinstance rhs Indexed N/A lhs_is_mat N/A N/A N/A rhs_is_mat N/A N/A N/A ValueError Cannot assign a scalar to a matrix. N/A N/A N/A N/A lhs shape N/A rhs shape N/A N/A N/A ValueError Dimensions of lhs and rhs don't align. N/A N/A N/A rhs_is_mat N/A lhs_is_mat N/A N/A N/A ValueError Cannot assign a matrix to a scalar. N/A N/A N/A Relational __new__ cls lhs rhs assumptions N/A N/A N/A N/A N/A Relational ValidRelationOperator N/A := Assignment CodePrinter N/A StrPrinter N/A N/A 
    The base class for code-printing subclasses.
     N/A _operators N/A and or not && || ! N/A _default_settings N/A order full_prec error_on_reserved reserved_word_suffix None auto False _ __init__ N/A N/A self settings N/A None N/A N/A N/A N/A N/A super CodePrinter self __init__ settings settings N/A N/A self reserved_words N/A set N/A doprint N/A N/A self expr assign_to N/A None N/A N/A 
        Print the expression as code.

        Parameters
        ----------
        expr : Expression
            The expression to be printed.

        assign_to : Symbol, MatrixSymbol, or string (optional)
            If provided, the printed code will set the expression to a
            variable with name ``assign_to``.
         sympy.matrices.expressions.matexpr MatrixSymbol N/A N/A isinstance assign_to string_types N/A N/A N/A expr is_Matrix N/A N/A assign_to N/A MatrixSymbol assign_to N/A expr shape N/A N/A assign_to N/A Symbol assign_to N/A N/A N/A N/A isinstance assign_to N/A Basic N/A type None N/A N/A N/A TypeError N/A N/A {0} cannot assign to object of type {1} format N/A N/A type self __name__ N/A type assign_to N/A assign_to N/A N/A expr N/A Assignment assign_to expr N/A N/A expr N/A sympify expr N/A N/A self _not_supported N/A set N/A N/A self _number_symbols N/A set N/A lines N/A N/A N/A N/A self _print expr splitlines N/A N/A N/A self _settings N/A human N/A N/A frontlines N/A N/A N/A N/A len N/A self _not_supported 0 N/A N/A N/A N/A frontlines append N/A N/A self _get_comment N/A N/A Not supported in {0}: format N/A self language N/A expr N/A sorted N/A self _not_supported key str N/A N/A N/A N/A frontlines append N/A N/A self _get_comment N/A N/A type expr __name__ N/A N/A name value N/A sorted N/A self _number_symbols key str N/A N/A N/A N/A frontlines append N/A N/A self _declare_number_const name value N/A lines N/A frontlines lines N/A lines N/A N/A self _format_code lines N/A result N/A N/A join lines N/A N/A lines N/A N/A self _format_code lines N/A result N/A N/A self _number_symbols N/A self _not_supported N/A N/A join lines N/A N/A self _not_supported N/A N/A self _number_symbols N/A result N/A _doprint_loops N/A N/A self expr assign_to N/A None N/A N/A N/A N/A N/A self _settings get contract True N/A sympy.tensor get_contraction_structure N/A indices N/A N/A self _get_expression_indices expr assign_to N/A dummies N/A get_contraction_structure expr N/A N/A indices N/A N/A dummies N/A None N/A expr N/A N/A openloop closeloop N/A N/A self _get_loop_opening_ending indices N/A N/A None dummies N/A N/A text N/A N/A StrPrinter doprint self N/A Add N/A dummies N/A None N/A N/A text N/A N/A StrPrinter doprint self 0 N/A lhs_printed N/A N/A self _print assign_to N/A lines N/A N/A N/A text lhs_printed N/A N/A N/A N/A lines extend openloop N/A N/A assign_to None N/A N/A text N/A N/A self _get_statement N/A %s = %s N/A lhs_printed text N/A N/A N/A lines append text N/A N/A N/A lines extend closeloop N/A d dummies N/A N/A N/A isinstance d tuple N/A N/A indices N/A N/A self _sort_optimized d expr N/A N/A openloop_d closeloop_d N/A N/A self _get_loop_opening_ending indices N/A term N/A dummies N/A d N/A N/A N/A N/A term dummies N/A N/A N/A N/A list N/A N/A f keys N/A f N/A dummies N/A term N/A N/A None N/A f N/A dummies N/A term N/A N/A N/A NotImplementedError FIXME: no support for contractions in factor yet N/A N/A N/A assign_to None N/A N/A N/A AssignmentError need assignment variable for loops N/A N/A N/A term has assign_to N/A N/A N/A ValueError FIXME: lhs present in rhs,                                this is undefined in CodePrinter N/A N/A N/A lines extend openloop N/A N/A N/A lines extend openloop_d N/A text N/A %s = %s N/A lhs_printed N/A N/A StrPrinter doprint self N/A assign_to term N/A N/A N/A lines append N/A N/A self _get_statement text N/A N/A N/A lines extend closeloop_d N/A N/A N/A lines extend closeloop N/A N/A N/A join lines N/A _get_expression_indices N/A N/A self expr assign_to N/A N/A sympy.tensor get_indices N/A N/A rinds junk N/A get_indices expr N/A N/A linds junk N/A get_indices assign_to N/A N/A linds N/A rinds N/A N/A rinds linds N/A N/A rinds linds N/A N/A N/A ValueError N/A lhs indices must match non-dummy rhs indices in %s expr N/A N/A N/A self _sort_optimized rinds assign_to N/A _sort_optimized N/A N/A self indices expr N/A N/A sympy.tensor.indexed Indexed N/A N/A indices N/A N/A N/A N/A score_table N/A N/A i indices N/A N/A N/A score_table N/A i 0 N/A arrays N/A N/A expr atoms Indexed N/A arr arrays N/A N/A N/A p ind N/A enumerate N/A arr indices N/A N/A N/A N/A N/A score_table N/A ind N/A N/A self _rate_index_position p N/A N/A N/A KeyError N/A N/A N/A N/A sorted indices key N/A N/A N/A x N/A N/A score_table N/A x N/A _rate_index_position N/A N/A self p N/A N/A N/A function to calculate score based on position among indices

        This method is used to sort loops in an optimized order, see
        CodePrinter._sort_optimized()
         N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _get_statement N/A N/A self codestring N/A N/A N/A Formats a codestring with the proper line ending. N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _get_comment N/A N/A self text N/A N/A N/A Formats a text string as a comment. N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _declare_number_const N/A N/A self name value N/A N/A N/A Declare a numeric constant at the top of a function N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _format_code N/A N/A self lines N/A N/A N/A Take in a list of lines of code, and format them accordingly.

        This may include indenting, wrapping long lines, etc... N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _get_loop_opening_ending N/A N/A self indices N/A N/A N/A Returns a tuple (open_lines, close_lines) containing lists
        of codelines N/A N/A NotImplementedError This function must be implemented by subclass of CodePrinter. N/A _print_Assignment N/A N/A self expr N/A N/A sympy.functions.elementary.piecewise Piecewise sympy.matrices.expressions.matexpr MatrixSymbol sympy.tensor.indexed IndexedBase N/A lhs N/A expr lhs N/A rhs N/A expr rhs N/A N/A isinstance N/A expr rhs Piecewise N/A N/A expressions N/A N/A conditions N/A N/A N/A e c N/A rhs args N/A N/A N/A N/A expressions append N/A Assignment lhs e N/A N/A N/A conditions append c N/A temp N/A Piecewise N/A zip expressions conditions N/A N/A N/A self _print temp N/A N/A N/A isinstance lhs MatrixSymbol N/A N/A lines N/A N/A N/A i j N/A N/A self _traverse_matrix_indices lhs N/A N/A temp N/A Assignment N/A lhs N/A N/A i j N/A rhs N/A N/A i j N/A code0 N/A N/A self _print temp N/A N/A N/A lines append code0 N/A N/A N/A join lines N/A N/A N/A N/A N/A self _settings N/A contract N/A N/A N/A lhs has IndexedBase N/A N/A rhs has IndexedBase N/A N/A N/A N/A self _doprint_loops rhs lhs N/A N/A lhs_code N/A N/A self _print lhs N/A rhs_code N/A N/A self _print rhs N/A N/A N/A self _get_statement N/A %s = %s N/A lhs_code rhs_code N/A _print_Symbol N/A N/A self expr N/A N/A N/A name N/A N/A N/A super CodePrinter self _print_Symbol expr N/A N/A name N/A self reserved_words N/A N/A N/A N/A self _settings N/A error_on_reserved N/A N/A msg This expression includes the symbol "{}" which is a reserved keyword in this language. N/A N/A ValueError N/A N/A msg format name N/A N/A name N/A N/A self _settings N/A reserved_word_suffix N/A N/A name N/A _print_Function N/A N/A self expr N/A N/A N/A N/A N/A N/A expr func __name__ N/A self known_functions N/A N/A cond_func N/A N/A self known_functions N/A N/A N/A expr func __name__ N/A func None N/A N/A isinstance cond_func str N/A N/A func cond_func N/A N/A N/A cond func cond_func N/A N/A N/A cond N/A expr args N/A N/A N/A N/A func None N/A N/A N/A %s(%s) N/A func N/A N/A self stringify N/A expr args ,  N/A N/A N/A N/A hasattr expr _imp_ N/A isinstance N/A expr _imp_ Lambda N/A N/A N/A N/A self _print N/A N/A expr _imp_ N/A expr args N/A N/A N/A N/A self _print_not_supported expr N/A _print_NumberSymbol N/A N/A self expr N/A N/A N/A N/A N/A N/A self _number_symbols add N/A expr N/A N/A self _print N/A N/A expr evalf N/A N/A self _settings N/A precision N/A N/A str expr N/A _print_Dummy N/A N/A self expr N/A N/A N/A N/A %s_%i N/A N/A expr name N/A expr dummy_index N/A _print_Catalan N/A N/A self expr N/A N/A N/A N/A N/A self _print_NumberSymbol expr N/A _print_EulerGamma N/A N/A self expr N/A N/A N/A N/A N/A self _print_NumberSymbol expr N/A _print_GoldenRatio N/A N/A self expr N/A N/A N/A N/A N/A self _print_NumberSymbol expr N/A _print_Exp1 N/A N/A self expr N/A N/A N/A N/A N/A self _print_NumberSymbol expr N/A _print_Pi N/A N/A self expr N/A N/A N/A N/A N/A self _print_NumberSymbol expr N/A _print_And N/A N/A self expr N/A N/A N/A PREC N/A precedence expr N/A N/A N/A N/A  %s  N/A N/A self _operators N/A and join N/A N/A N/A self parenthesize a PREC N/A a N/A sorted N/A expr args key default_sort_key N/A _print_Or N/A N/A self expr N/A N/A N/A PREC N/A precedence expr N/A N/A N/A N/A  %s  N/A N/A self _operators N/A or join N/A N/A N/A self parenthesize a PREC N/A a N/A sorted N/A expr args key default_sort_key N/A _print_Xor N/A N/A self expr N/A N/A N/A N/A N/A N/A N/A self _operators get xor None N/A N/A N/A N/A self _print_not_supported expr N/A PREC N/A precedence expr N/A N/A N/A N/A  %s  N/A N/A self _operators N/A xor join N/A N/A N/A self parenthesize a PREC N/A a N/A expr args N/A _print_Equivalent N/A N/A self expr N/A N/A N/A N/A N/A N/A N/A self _operators get equivalent None N/A N/A N/A N/A self _print_not_supported expr N/A PREC N/A precedence expr N/A N/A N/A N/A  %s  N/A N/A self _operators N/A equivalent join N/A N/A N/A self parenthesize a PREC N/A a N/A expr args N/A _print_Not N/A N/A self expr N/A N/A N/A PREC N/A precedence expr N/A N/A N/A N/A self _operators N/A not N/A N/A self parenthesize N/A N/A expr args N/A 0 PREC N/A _print_Mul N/A N/A self expr N/A N/A N/A prec N/A precedence expr N/A N/A c e N/A N/A expr as_coeff_Mul N/A N/A c 0 N/A N/A expr N/A _keep_coeff N/A c e N/A sign - N/A N/A sign N/A a N/A N/A b N/A N/A N/A N/A self order N/A old none N/A N/A args N/A N/A expr as_ordered_factors N/A N/A args N/A N/A Mul make_args expr N/A item args N/A N/A N/A N/A item is_commutative N/A item is_Pow N/A N/A item exp is_Rational N/A N/A item exp is_negative N/A N/A N/A N/A item exp -1 N/A N/A N/A N/A b append N/A Pow N/A item base N/A N/A item exp evaluate False N/A N/A N/A N/A b append N/A Pow N/A item base N/A N/A item exp N/A N/A N/A N/A a append item N/A a N/A a N/A N/A S One N/A a_str N/A N/A N/A self parenthesize x prec N/A x a N/A b_str N/A N/A N/A self parenthesize x prec N/A x b N/A N/A N/A len b 0 N/A N/A N/A sign N/A N/A * join a_str N/A N/A N/A N/A len b 1 N/A N/A N/A N/A N/A sign N/A N/A * join a_str / N/A b_str N/A 0 N/A N/A N/A N/A sign N/A N/A * join a_str N/A /(%s) N/A N/A * join b_str N/A _print_not_supported N/A N/A self expr N/A N/A N/A N/A N/A N/A self _not_supported add expr N/A N/A N/A self emptyPrinter expr N/A N/A _print_Basic _print_not_supported N/A _print_ComplexInfinity _print_not_supported N/A _print_Derivative _print_not_supported N/A _print_dict _print_not_supported N/A _print_ExprCondPair _print_not_supported N/A _print_GeometryEntity _print_not_supported N/A _print_Infinity _print_not_supported N/A _print_Integral _print_not_supported N/A _print_Interval _print_not_supported N/A _print_AccumulationBounds _print_not_supported N/A _print_Limit _print_not_supported N/A _print_list _print_not_supported N/A _print_Matrix _print_not_supported N/A _print_ImmutableMatrix _print_not_supported N/A _print_MutableDenseMatrix _print_not_supported N/A _print_MatrixBase _print_not_supported N/A _print_DeferredVector _print_not_supported N/A _print_NaN _print_not_supported N/A _print_NegativeInfinity _print_not_supported N/A _print_Normal _print_not_supported N/A _print_Order _print_not_supported N/A _print_PDF _print_not_supported N/A _print_RootOf _print_not_supported N/A _print_RootsOf _print_not_supported N/A _print_RootSum _print_not_supported N/A _print_Sample _print_not_supported N/A _print_SparseMatrix _print_not_supported N/A _print_tuple _print_not_supported N/A _print_Uniform _print_not_supported N/A _print_Unit _print_not_supported N/A _print_Wild _print_not_supported N/A _print_WildFunction _print_not_supported N/A