cMHN 1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
abs.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-2-Clause
2
3#ifndef pRC_CORE_TENSOR_FUNCTIONS_ABS_H
4#define pRC_CORE_TENSOR_FUNCTIONS_ABS_H
5
9
10namespace pRC
11{
12 template<class X, If<IsTensorish<RemoveReference<X>>> = 0,
13 If<IsInvocable<Loop<Abs>, X>> = 0>
14 static inline constexpr auto abs(X &&a)
15 {
16 return loop<Abs>(forward<X>(a));
17 }
18}
19#endif // pRC_CORE_TENSOR_FUNCTIONS_ABS_H
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto abs(Complex< T > const &a)
Definition abs.hpp:12