Skip to main content

tpt_math_autodiff/
lib.rs

1//! Umbrella crate re-exporting the autodiff family behind Cargo features.
2//!
3//! # Feature matrix
4//!
5//! | Feature                   | Re-exported as | Source crate              |
6//! |---------------------------|---------------|--------------------------|
7//! | `tpt-math-autodiff-fwd`   | `fwd`         | `tpt-math-autodiff-fwd`   |
8//! | `tpt-math-autodiff-rev`   | `rev`         | `tpt-math-autodiff-rev`   |
9//!
10//! Both features are enabled by default.
11
12#[cfg(feature = "tpt-math-autodiff-fwd")]
13pub use tpt_math_autodiff_fwd as fwd;
14
15#[cfg(feature = "tpt-math-autodiff-rev")]
16pub use tpt_math_autodiff_rev as rev;
17
18#[cfg(feature = "tpt-math-autodiff-rev")]
19pub mod derivatives;