Exact automatic differentiation for Rust — forward-mode, reverse-mode, first- and second-order, with named variable support for ergonomic gradient readback
//! Type traits and marker types for the AD system.
usenum_traits::{Float, FromPrimitive, NumAssign};usestd::fmt::{Debug, Display};/// Trait bound for scalar types usable in the AD system.
pubtraitScalar:
Float + NumAssign + FromPrimitive + Debug + Display + Default + Send + Sync + 'static
{}implScalar forf32{}implScalar forf64{}