1. 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.
      52a406b8
  2. 24 Jul, 2021 3 commits
  3. 23 Jul, 2021 1 commit
  4. 21 Jul, 2021 1 commit
  5. 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
      allowed.
      56296a9e
  6. 06 Jul, 2021 1 commit
  7. 05 Jul, 2021 1 commit
  8. 02 Jul, 2021 1 commit
  9. 29 Jun, 2021 3 commits
  10. 28 Jun, 2021 14 commits
  11. 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
      time.
      
      An example is the python script introduced in !182, all useful
      information regarding conversion and solvers is shadowed by the Timing
      information.
      81883132
  12. 25 Jun, 2021 2 commits
  13. 24 Jun, 2021 2 commits
  14. 22 Jun, 2021 1 commit
  15. 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
      12d3340f
    • David Frank's avatar
      1b72fed5
    • 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.
      97a10375
    • 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
      BadCastError.
      80ac3574
  16. 19 Jun, 2021 3 commits