1. 29 Jun, 2021 3 commits
  2. 28 Jun, 2021 14 commits
  3. 26 Jun, 2021 1 commit
    • David Frank's avatar
      Remove noise from Timer in logging output · 81883132
      David Frank authored
      The Timer class now prints timing information only if the Logger is set
      to debug level, instead of info level. This reduces noise in the output.
      The Timing of execution is not necessarily an useful information all the
      An example is the python script introduced in !182, all useful
      information regarding conversion and solvers is shadowed by the Timing
  4. 25 Jun, 2021 2 commits
  5. 24 Jun, 2021 2 commits
  6. 22 Jun, 2021 1 commit
  7. 21 Jun, 2021 4 commits
    • David Frank's avatar
      #129 Reduce runtime of certain tests dramatically · 12d3340f
      David Frank authored
      Some tests have extraemly long runtime especially in debug builds. This
      commit reduces the runtime ~3x on my personal machine, hopefully the
      effect is even more pronounced on the CI.
      Closes #129
    • David Frank's avatar
    • David Frank's avatar
      Remove unnecessray heap allocation in ml · 97a10375
      David Frank authored
      At a couple of places a new unique_ptr was created, then directly
      dereferenced and a copy of the underlying VolumeDescriptor returned.
      This creates an unnecessray heap allocation. This commits directly casts
      the reference of the smart pointer to a VolumeDescriptor and from there
      the copy is created.
      Remove dynamic_unique_ptr_cast and static_unique_ptr_cast as both is
      covered by the downcast functions in TypeCasts.hpp.
    • David Frank's avatar
      Fix couple of bugs in downcast, add BadCastError · 80ac3574
      David Frank authored
      This fixes a couple of bugs in the downcast implementation:
      * In some cases the const was not correctly copied
      * unique_ptr overload ignores deleter now, as it can give errors for the
        default deleter (which we use), if needed we can provide an overload
        in the future.
      The reference overload is now similar to the pointer one from an
      implementation perspective, but instead of returning nullptr it throws a
  8. 19 Jun, 2021 3 commits
  9. 18 Jun, 2021 6 commits
  10. 17 Jun, 2021 2 commits
    • David Frank's avatar
    • David Frank's avatar
      Move asIndex to core renamed to asUnsigned, add asSigned · 3558eb04
      David Frank authored
      Some more functionality was added with the TypeCasts.hpp file:
      * is(...): check if a pointer/reference/unique_ptr can be dynamically
        casted to the derived type
      * downcast(...): downcast a pointer/reference/unique_ptr statically to
        the derived type, assumes caller knows that the type is correct.
      * downcast_safe(...): downcast a pointer/reference/unique_ptr to the
        derived type, but only if it's possible. If not a nullptr is returned
        for the pointer cases and std::bad_cast is thrown for the reference
  11. 16 Jun, 2021 1 commit
  12. 12 Jun, 2021 1 commit