pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
less_equal.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_VALUE_FUNCTIONS_LESS_EQUAL_H
4#define pRC_CORE_VALUE_FUNCTIONS_LESS_EQUAL_H
5
7
8namespace pRC
9{
20 template<class TA, class TB, If<IsValue<TA>> = 0, If<IsValue<TB>> = 0>
21 static inline constexpr auto operator<=(TA const &a, TB const &b)
22 {
23 return !(a > b);
24 }
25}
26#endif // pRC_CORE_VALUE_FUNCTIONS_LESS_EQUAL_H
Definition cholesky.hpp:18
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13
static constexpr auto operator<=(X &&a, Zero<> const)
Definition less_equal.hpp:12