1. 04 Aug, 2021 1 commit
  2. 29 Jul, 2021 2 commits
    • David Frank's avatar
      Refactor and adapt output format of Timer · 7b977fbd
      David Frank authored and Tobias Lasser's avatar Tobias Lasser committed
      This patch adds 3 changes:
      - Rely on spdlog::stopwatch instead of the 'raw' standard library clock
      - Change the output format a touch to improve readability
      - Rename of variables to express intent better
      As of version 1.8.0 of spdlog a stopwatch is provided. I thought it
      would be nice to justs rely on that one instead of rolling our own (even
      if it's not that hard).
      The other change is the output format. Instead of printing in the format
      '[Timing] [debug] Execution of <caller>: <fn> took <time>ms', I changed
      it to '[<caller>] [debug] <fn> took <time>s'. So instead of having a
      separate Timing logger, the logger for the class is used. IMO, this
      cleans up the log a touch, as my eyes don't have to search in different
      columns, but it's minor. Also I use the default output format of the
      spdlog::stopwatch, which is in decimal and seconds.
      Also I used the change to rename the variables, as it was just a little
    • Andi Braimllari's avatar
      add max operation to DataContainer · 921ede92
      Andi Braimllari authored and Tobias Lasser's avatar Tobias Lasser committed
  3. 28 Jul, 2021 1 commit
    • David Frank's avatar
      #105 Add slicing capabilities to DataContainer · 52a406b8
      David Frank authored
      Access to a portion of the DataContainer in the form of slices.
      Currently, only slicing in the direction of the last dimension are
      possible, but this should still be useful for many cases.
      The one suprising thing in this implementation, is that the returned
      DataContainer, has a descriptor which is of the same dimension as the
      original DataContainer but with a "thickness" of 1 in the last
      dimension, instead of actually being lower dimensional.
  4. 24 Jul, 2021 3 commits
  5. 23 Jul, 2021 1 commit
  6. 21 Jul, 2021 1 commit
  7. 16 Jul, 2021 1 commit
    • David Frank's avatar
      Add support to concatenate two DataContainers · 56296a9e
      David Frank authored
      When two DataContainers are concatenated, a new one with a
      RandomBlocksDescriptor is created, with the two original descriptors
      as blocks.
      Currently, only concatenation of containers of equal dimension is
  8. 06 Jul, 2021 1 commit
  9. 05 Jul, 2021 1 commit
  10. 02 Jul, 2021 1 commit
  11. 29 Jun, 2021 3 commits
  12. 28 Jun, 2021 14 commits
  13. 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
  14. 25 Jun, 2021 2 commits
  15. 24 Jun, 2021 2 commits
  16. 22 Jun, 2021 1 commit
  17. 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