pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
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
9
10namespace pRC
11{
19 template<class T, If<IsValue<T>> = 0>
20 static inline constexpr auto operator-(T const &a)
21 {
22 return T(-a());
23 }
24}
25#endif // pRC_CORE_VALUE_FUNCTIONS_MINUS_H
Definition cholesky.hpp:18
static constexpr auto operator-(Sequence< T, As... > const, Sequence< T, Bs... > const)
Definition sequence.hpp:132
static constexpr Conditional< IsSatisfied< C >, RemoveConstReference< X >, X > copy(X &&a)
Definition copy.hpp:13