laplace-edge-cases 423 B

12345678
  1. o Code simplifications and unit tests:
  2. - Handle edge cases in the laplace functions: avoid division by zero,
  3. avoid taking the log of zero, and silence clang type conversion
  4. warnings using round and trunc. Add unit tests for edge cases with
  5. maximal values.
  6. - Consistently check for overflow in round_*_to_next_multiple_of
  7. functions, and add unit tests with additional and maximal values.