• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wegamekinglc / Derivatives-Algorithms-Lib / 28282930145

27 Jun 2026 07:45AM UTC coverage: 80.505%. Remained the same
28282930145

Pull #149

github

wegamekinglc
Fix math bugs: dedup AAD NPDF/NCDF, correct two error messages

- De-duplicate the NPDF/NCDF formula that was copy-pasted across the
  Adept, XAD, and CoDiPack branches in expr.hpp. Replace the three
  per-backend copies with one shared definition plus named constants
  (INV_SQRT_2PI, SQRT_2), eliminating the risk of silent cross-backend
  constant drift in a derivatives library.
- Keep the shared overload constrained to const Number_& (matching the
  original Adept signature) rather than a generic template<T_>: a generic
  template hijacks double overload resolution, pulling the backend erfc
  into plain-double BlackOpt call sites and crashing TestBlackScholesAAD
  under Adept.
- Correct the BachelierIV REQUIRE message ('BlackIV' -> 'BachelierIV').
- Correct the BCGSolve THROW message ('CGSolve' -> 'BCGSolve').
Pull Request #149: fix: dedup AAD NPDF/NCDF and correct two error messages

1 of 2 new or added lines in 2 files covered. (50.0%)

6285 of 7807 relevant lines covered (80.5%)

3162620.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.0
/dal-cpp/dal/math/matrix/bcg.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc