jacopy.Product¶
- class jacopy.Product(*children)¶
Bases:
Exprn-ary product. Non-commutative by default.
Commutativity, anti-commutativity and graded (Koszul) signs live in
jacopy.algorithms.sort_product; this class only stores the ordered tuple of factors.- Parameters:
children (Expr)
Methods
__init__(*children)clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.make(*args)Smart constructor.
replace_at(path, new)Return a new tree with
newspliced atpath.substitute_atom(dummy, target)Return
selfwith every occurrence ofdummyreplaced bytarget.walk()Pre-order traversal yielding
selffollowed by descendants throughchildrenonly.Attributes
Tuple of immediate children.
is_atom