pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
mod.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_MOD_H
4#define pRC_CORE_VALUE_FUNCTIONS_MOD_H
5
8
9namespace pRC
10{
22 template<class TA, class TB, If<IsInteger<TA>> = 0, If<IsInteger<TB>> = 0>
23 static inline constexpr auto operator%(TA const &a, TB const &b)
24 {
25 return Integer(a() % b());
26 }
27}
28#endif // pRC_CORE_VALUE_FUNCTIONS_MOD_H
Top-level class storing a floating point number.
Definition integer.hpp:47
Definition cholesky.hpp:18
static constexpr auto operator%(Sequence< T, As... > const, Sequence< T, Bs... > const)
Definition sequence.hpp:184
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13