This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Overview
cppduals is a header-only C++17 template library for dual number arithmetic and forward-mode automatic differentiation. Dual numbers have the form `a + b·ε` where `ε² = 0`, enabling exact derivative computation. Supports recursive nesting (`dual<dual<T>>`) for higher-order derivatives and composition with `std::complex`.
-`duals/dual` — Main `duals::dual<T>` class template with all math functions (sin, cos, exp, log, pow, etc.) and operator overloads. This is the primary public API (~1900 lines).
-`duals/dual_eigen` — Eigen matrix library integration: NumTraits, type promotion, and vectorized packet operations for dual types.