//! Local volatility extraction from implied volatility surfaces.
//!
//! Local volatility σ_loc(T, K) is the instantaneous volatility in the
//! Dupire framework. It is derived from the implied volatility surface
//! via the Dupire formula.
//!
//! # Usage
//! Compose [`DupireLocalVol`] around any [`VolSurface`](crate::surface::VolSurface)
//! rather than calling `local_vol()` on the surface directly. This keeps surface
//! types free of Dupire numerics.
//!
//! # References
//! - Dupire, B. "Pricing with a Smile" (1994)
pub use DupireLocalVol;
use crateerror;
use crate;
/// Local volatility surface: σ_loc(T, K).
///
/// Separated from [`VolSurface`](crate::VolSurface) to avoid forcing every
/// surface implementation to embed Dupire finite-difference numerics.
/// Instead, compose [`DupireLocalVol`]
/// around any `Arc<dyn VolSurface>`.