cMHN
1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
value
functions
minus.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_VALUE_FUNCTIONS_MINUS_H
4
#define pRC_CORE_VALUE_FUNCTIONS_MINUS_H
5
6
#include <
prc/core/value/float.hpp
>
7
#include <
prc/core/value/integer.hpp
>
8
#include <
prc/core/value/type_traits.hpp
>
9
10
namespace
pRC
11
{
12
template
<
class
T, If<IsValue<T>> = 0>
13
static
inline
constexpr
auto
operator-
(
T
const
&a)
14
{
15
return
T
(-a());
16
}
17
}
18
#endif
// pRC_CORE_VALUE_FUNCTIONS_MINUS_H
pRC::Float<>
type_traits.hpp
T
pRC::Float<> T
Definition
externs_nonTT.hpp:1
float.hpp
integer.hpp
pRC
Definition
cholesky.hpp:18
pRC::operator-
static constexpr auto operator-(Sequence< T, As... > const, Sequence< T, Bs... > const)
Definition
sequence.hpp:132
Generated by
1.10.0