pRC
multi-purpose Tensor Train library for C++
Loading...
Searching...
No Matches
prc
core
complex
functions
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
6
#include <
prc/core/complex/type_traits.hpp
>
7
#include <
prc/core/functors/norm.hpp
>
8
9
namespace
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
pRC::Complex
Definition
complex.hpp:26
type_traits.hpp
norm.hpp
pRC
Definition
cholesky.hpp:18
pRC::abs
static constexpr auto abs(Complex< T > const &a)
Definition
abs.hpp:12
pRC::norm
static constexpr auto norm(Complex< T > const &a)
Definition
norm.hpp:11
Generated by
1.9.8