dscalar
Stable function · Differentiate a model
Tier: stable · Kind: function · Topic: Differentiate a model
| Julia | Python | Rust |
|---|---|---|
dscalar | dscalar | dscalar |
Julia
dscalar(e::EarthSciAST.ASTExpr, s::Site)
dscalar(e::EarthSciAST.ASTExpr, s::Site, occ::IdDict{EarthSciAST.OpExpr, Bool})
dscalar(e::ASTExpr, s::Site) -> ASTExpr
Derivative of the scalar expression e with respect to site s, as a new
ESM expression. Structural rules only; a subtree in which s does not occur
differentiates to a literal zero without descent. Throws
DerivativeRuleError
on an op with no rule (rewrite targets,
filtered or semiring faq nodes in scalar position, unknown closed
functions).