![]() |
OGS
|
|
Definition at line 121 of file MatrixElementCache.h.
#include <MatrixElementCache.h>
Public Member Functions | |
| MatrixElementCache (GlobalMatView &mat_or_vec, Stats &stats) | |
| void | add (std::vector< double > const &local_data, std::vector< GlobalIndexType > const &indices) |
| ~MatrixElementCache () | |
Private Types | |
| using | GlobalMatView = ConcurrentMatrixView<Dim> |
Private Member Functions | |
| void | addToCache (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices) |
| void | addToCacheImpl (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices, std::integral_constant< std::size_t, 1 >) |
| void | addToCacheImpl (std::vector< double > const &values, std::vector< GlobalIndexType > const &indices, std::integral_constant< std::size_t, 2 >) |
| void | ensureEnoughSpace (std::size_t const space_needed) |
| void | addToGlobal () |
Private Attributes | |
| std::vector< MatrixElementCacheEntry< Dim > > | cache_ |
| GlobalMatView & | mat_or_vec_ |
| Stats & | stats_ |
Static Private Attributes | |
| static constexpr std::size_t | cache_capacity = 1'000'000 |
|
private |
Definition at line 124 of file MatrixElementCache.h.
|
inline |
Definition at line 129 of file MatrixElementCache.h.
References cache_, cache_capacity, mat_or_vec_, and stats_.
|
inline |
Definition at line 141 of file MatrixElementCache.h.
References addToGlobal().
|
inline |
Definition at line 135 of file MatrixElementCache.h.
References addToCache().
|
inlineprivate |
Definition at line 144 of file MatrixElementCache.h.
References addToCacheImpl(), and ensureEnoughSpace().
Referenced by add().
|
inlineprivate |
Definition at line 159 of file MatrixElementCache.h.
References cache_, and stats_.
Referenced by addToCache().
|
inlineprivate |
Definition at line 185 of file MatrixElementCache.h.
References cache_, stats_, and MathLib::toMatrix().
|
inlineprivate |
Definition at line 243 of file MatrixElementCache.h.
References cache_, mat_or_vec_, and stats_.
Referenced by ~MatrixElementCache(), and ensureEnoughSpace().
|
inlineprivate |
Definition at line 220 of file MatrixElementCache.h.
References addToGlobal(), and cache_.
Referenced by addToCache().
|
private |
Definition at line 250 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), addToCacheImpl(), addToCacheImpl(), addToGlobal(), and ensureEnoughSpace().
|
staticconstexprprivate |
Definition at line 126 of file MatrixElementCache.h.
Referenced by MatrixElementCache().
|
private |
Definition at line 251 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), and addToGlobal().
|
private |
Definition at line 252 of file MatrixElementCache.h.
Referenced by MatrixElementCache(), addToCacheImpl(), addToCacheImpl(), and addToGlobal().