xad-rs 0.8.0

Exact automatic differentiation for Rust — forward-mode, reverse-mode, first- and second-order, with named variable support and a unified `Real` trait for mode-agnostic numerical code
Documentation
//! Convenience re-exports — `use xad_rs::prelude::*;` brings the
//! mode-agnostic trait [`Real`], the passive bound [`Passive`], and the
//! most-used concrete types into scope.
//!
//! Deliberately small. Excludes `Jet1Vec`, `Jet2Vec`, the `Named*`
//! family, and free functions in `math::*` / `ops::*` — reach for those
//! via their full paths.
//!
//! ```
//! use xad_rs::prelude::*;
//! fn poly<R: Real>(x: &R) -> R { x.clone() * x.clone() }
//! assert_eq!(poly(&3.0_f64), 9.0);
//! ```

pub use crate::forward::{Jet1, Jet2};
pub use crate::passive::Passive;
pub use crate::real::Real;
pub use crate::real_stats::RealStats;
pub use crate::reverse::AReal;
pub use crate::tape::{Tape, TapeStorage};