[−][src]Module descent::expr::dynam
Dynamically constructed expressions.
These expressions offer the greatest flexibility in how they can be constructed at runtime. Forward and reverse automatic differentiation techniques have been implemented for calculating expression first and second derivatives. They are however much slower than the more direct fixed expression types (in fixed module) which allow for greater compiler optimisation of the derivative calculations.
Examples
See Expr for more details.
use descent::expr::{Var, Par}; use descent::expr::dynam::NumOps; // required to bring in powi usage let x = Var(0); let y = Var(1); let p = Par(0); let e = p * x - (5.0 * y.powi(2) + 4.0);
Structs
Expr | An expression that can be dynamically constructed. |
ExprDyn | Snapshot of a dynamically constructed expression |
ExprInfo | Sparsity and other information about an |
WorkSpace | Workspace used for performing expression AD. |
Traits
NumOps | Trait for using numeric operators such as |
Type Definitions
ExprDynSum | Represents the sum of multiple dynamic expressions. |