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_COMPLEX_FUNCTIONS_ABS_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_ABS_H
5
8
9namespace pRC
10{
11 template<class T, If<IsInvocable<Norm<>, Complex<T>>> = 0>
12 static inline constexpr auto abs(Complex<T> const &a)
13 {
14 return norm(a);
15 }
16}
17#endif // pRC_CORE_COMPLEX_FUNCTIONS_ABS_H
Definition complex.hpp:26
Definition cholesky.hpp:18
static constexpr auto abs(Complex< T > const &a)
Definition abs.hpp:12
static constexpr auto norm(Complex< T > const &a)
Definition norm.hpp:11