jacopy.Metric¶
- class jacopy.Metric(name='g', *, bundle=None)¶
Bases:
Atomg— a(0, 2)symmetric non-degenerate metric.- Parameters:
Methods
__init__([name, bundle])clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.flat()The musical (lowering) map
g^♭ : TM → T*M.inverse([name])The inverse metric
g⁻¹— a(2, 0)tensor.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
bundlechildrenTuple of immediate children.
is_atomname(0, 2)— two covariant slots.- flat()¶
The musical (lowering) map
g^♭ : TM → T*M.- Return type:
Flat