Skip to content
Snippets Groups Projects
  1. Apr 11, 2023
    • Carsten Gräser's avatar
    • Carsten Gräser's avatar
      Switch to std::uint_least32_t for stored indices in MatrixIndexSet · 4886d18b
      Carsten Gräser authored
      Using `std::uint_least32_t` instead of `std::size_t` halves the required memory
      and thus also improves performance.
      Notice that `std::uint32_t` is optional and `std::uint_fast32_t` is intended to be
      fast in terms of computations and may have 64 bits. Here we're interested in reducing
      memory and thus bandwith. Hence `std::uint_least32_t`, which is the smallest sufficient
      type is most appropriate.
      4886d18b
    • Carsten Gräser's avatar
      Switch internal data structure in MatrixIndexSet · c8272a07
      Carsten Gräser authored
      This replaces the `std::set` used to store the column indices for each
      rows by a `std::vector` based implementation. The `std::vector` is
      kept sorted when inserting such that we can avoid duplicates. This
      can improve assembly time of matrices significantly (if `MatrixIndexSet` is used).
      
      In the worst case (insertion in reverse) this may lead to O(n^2) complexity
      when inserting n entries in a row compared to O(n log(n)) for `std::set`.
      However, the sorted `std::vector` implementation still wins for relatively
      large n. To avoid the worst case complexity when using very dense rows,
      the implementation is switched to `std::set` if the size exceeds the threshold
      value `maxVectorSize`. The default `maxVectorSize=2048` was selected based
      on benchmark results.
      c8272a07
  2. Sep 30, 2022
  3. Apr 13, 2015
  4. Apr 19, 2012
  5. Apr 15, 2012
  6. Nov 03, 2009
  7. Oct 13, 2009
  8. May 08, 2007
  9. Nov 10, 2006
  10. Nov 08, 2006
  11. Sep 18, 2006
  12. Feb 28, 2006
  13. Sep 07, 2005
  14. May 17, 2005
  15. Feb 03, 2005
  16. Jan 28, 2005
  17. Jan 06, 2005
    • Oliver Sander's avatar
      This is a helper class which stores a set of matrix entries, i.e. · dad0a5c0
      Oliver Sander authored
      a set of (i,j) integer pairs.  Pairs can be added to the matrix
      in any order.  A MatrixIndexSet can be used to initialize a
      BCRSMatrix via the exportIdx method.
      
      MatrixIndexSets are meant to help with the sometimes unwieldy
      BCRSMatrix class.  If that class' handling gets easier, (or
      if somebody explain to me how BCRSMatrix are really supposed
      to be used), MatrixIndexSets may very well disappear again.
      
      [[Imported from SVN: r134]]
      dad0a5c0
Loading