jacopy.packages.metric_affine.InverseMetricComponent¶
- class jacopy.packages.metric_affine.InverseMetricComponent(metric_name, first, second, *, bundle=None)¶
Bases:
Atomg^{ab}— a component of the inverse metric on a frame; a scalar function. Symmetric: the factoryinverse_metric_component()canonicalizes the index order. Its DEFINING property is the contractionΣ_s g^{as}·g(e_s, e_c) = δ^a_c(MetricInverseContractionDefinition), well-posed by the metric’s definitional non-degeneracy.- __init__(metric_name, first, second, *, bundle=None)¶
Methods
__init__(metric_name, first, second, *[, bundle])clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.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.
degreeindex_namesis_atommetric_nameupper- substitute_atom(dummy, target)¶
Return
selfwith every occurrence ofdummyreplaced bytarget.dummymust be anAtom. The default implementation does the obvious top-level match, then recurses throughchildren(). Atoms that hide a sub-atom inside a private slot (e.g. a frame vector field carrying aFrameIndex) override this method to expose that hidden state for substitution. Binders that introduce their own dummy (notablyIndexedSum) override to respect shadowing.