ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
periodic_fold.hpp File Reference
#include <cmath>
#include <concepts>
#include <limits>
#include <type_traits>
#include <utility>
+ Include dependency graph for periodic_fold.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Algorithm
 

Concepts

concept  IntegralOrRef
 
concept  FloatingPointOrRef
 

Functions

template<FloatingPointOrRef T, IntegralOrRef I>
std::pair< T, I > Algorithm::periodic_fold (T x, I i, T const l)
 Fold value into primary interval.
 
template<FloatingPointOrRef T>
Algorithm::periodic_fold (T x, T const l)
 Fold value into primary interval.