cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
greater_equal.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_BASIC_FUNCTIONS_GREATER_EQUAL_H
4#define pRC_CORE_BASIC_FUNCTIONS_GREATER_EQUAL_H
5
8
9namespace pRC
10{
11 template<class X>
12 static inline constexpr auto operator>=(X &&a, Zero<> const)
13 {
14 return forward<X>(a) >= zero<RemoveReference<X>>();
15 }
16
17 template<class X>
18 static inline constexpr auto operator>=(Zero<> const, X &&b)
19 {
20 return zero<RemoveReference<X>>() >= forward<X>(b);
21 }
22
23 static inline constexpr auto operator>=(Zero<> const, Zero<> const)
24 {
25 return true;
26 }
27}
28#endif // pRC_CORE_BASIC_FUNCTIONS_GREATER_EQUAL_H
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto operator>=(X &&a, Zero<> const)
Definition greater_equal.hpp:12
Definition type_traits.hpp:268