1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! **I do not recommend using this directly, please sea [rust-ad](https://crates.io/crates/rust-ad).**
//!
//! Internal constants.
//!
//! Lowest level of dependency.
use const_format::concatcp;
/// Prefix for external forward auto-diff functions.
pub const FORWARD_PREFIX: &'static str = "__f_";
/// Prefix for external reverse auto-diff functions.
pub const REVERSE_PREFIX: &'static str = "__r_";
/// Suffix for internal functions.
const INTERNAL_SUFFIX: &'static str = "internal_";
/// Prefix for internal forward auto-diff functions (e.g. `__f_a_users_function` vs `__f_internal_powi_f32`).
pub const INTERNAL_FORWARD_PREFIX: &'static str = concatcp!(FORWARD_PREFIX, INTERNAL_SUFFIX);
/// Prefix for internal reverse auto-diff functions (e.g. `__r_a_users_function` vs `__r_internal_powi_f32`).
pub const INTERNAL_REVERSE_PREFIX: &'static str = concatcp!(REVERSE_PREFIX, INTERNAL_SUFFIX);
