Skip to contents

add_gdcprule(f, manifold, sign, curvature, monotonicity) registers the geodesic curvature of an atom for analyze() on a manifold, as SymbolicAnalysis.jl. The atom is a function node named f (build it with Function(f)). As upstream the table is keyed by the atom alone: the manifold is recorded but not consulted, so a rule applies on either supported manifold, and a later registration replaces an earlier one.

Usage

add_gdcprule(f, manifold, sign, curvature, monotonicity)

Arguments

f

The atom name.

manifold

The manifold constructor or name the rule is stated for, such as "Lorentz".

sign

"Positive", "Negative" or "AnySign".

curvature

"GConvex", "GConcave", "GLinear" or "GUnknownCurvature".

monotonicity

"GIncreasing", "GDecreasing" or "GAnyMono", one per argument or one for all.

Value

The rule, invisibly.

Examples

add_gdcprule("first_coordinate", "Lorentz", "Positive", "GConvex", "GIncreasing")
p <- MatrixSymbol("p", 3, 1)
analyze(Function("first_coordinate")(p), Lorentz(3))$gcurvature
#> [1] "GConvex"