ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
Cache for interpolation weights. More...
#include <interpolation.hpp>
Public Member Functions | |
auto | size () const |
Number of points in the cache. | |
auto | cao () const |
Charge assignment order the weights are for. | |
template<int cao> | |
void | store (const InterpolationWeights< cao > &w) |
Push back weights for one point. | |
template<int cao> | |
InterpolationWeights< cao > | load (std::size_t i) const |
Load entry from the cache. | |
void | reset (int cao) |
Reset the cache. | |
Cache for interpolation weights.
This is a storage container for interpolation weights of type InterpolationWeights.
Definition at line 55 of file interpolation.hpp.
|
inline |
Charge assignment order the weights are for.
Definition at line 73 of file interpolation.hpp.
|
inline |
Load entry from the cache.
This loads an entry at an index from the cache, the entries are indexed by the order they were stored.
cao | Interpolation order has to match the order set at last call to p3m_interpolation_cache::reset. |
i | Index of the entry to load. |
Definition at line 103 of file interpolation.hpp.
References Utils::Array< T, N >::begin(), cao(), InterpolationWeights< cao >::ind, size(), InterpolationWeights< cao >::w_x, InterpolationWeights< cao >::w_y, and InterpolationWeights< cao >::w_z.
|
inline |
Reset the cache.
cao | Interpolation order. |
Definition at line 125 of file interpolation.hpp.
References cao().
|
inline |
Number of points in the cache.
Definition at line 67 of file interpolation.hpp.
Referenced by load().
|
inline |
Push back weights for one point.
cao | Interpolation order has to match the order set at last call to p3m_interpolation_cache::reset. |
w | Interpolation weights to store. |
Definition at line 82 of file interpolation.hpp.
References cao(), InterpolationWeights< cao >::ind, InterpolationWeights< cao >::w_x, InterpolationWeights< cao >::w_y, and InterpolationWeights< cao >::w_z.
Referenced by anonymous_namespace{p3m.cpp}::AssignCharge< cao >::operator()().