Mikolaj / horde-ad

Higher Order Reverse Derivatives Efficiently - Automatic Differentiation library based on the paper "Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation"
BSD 3-Clause "New" or "Revised" License
33 stars 6 forks source link

in case of a failed floating point comparison assertion: print out both data structures in full #70

Closed sfindeisen closed 2 years ago

sfindeisen commented 2 years ago

It would be helpful to have the original vectors (or more complex data structures) printed out in full as part of the error message in a failed floating point comparison assertion (and not just the two failed elements, which doesn't tell much).

Mikolaj commented 2 years ago

Thanks a lot, that makes writing and debugging tests much easier.