3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_NORM_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_NORM_H
10 template<Index P = 2, Index Q = P,
class T>
13 if constexpr(
P == 1 &&
Q == 1)
17 else if constexpr(
P == 2 &&
Q == 1)
21 else if constexpr(
P == 2 &&
Q == 2)
25 else if constexpr(
P !=
Q &&
Q == 0)
31 static_assert(
P !=
P,
"Unsupported p-norm.");
Definition complex.hpp:26
constexpr decltype(auto) real() &&
Definition complex.hpp:125
constexpr decltype(auto) imag() &&
Definition complex.hpp:145
Definition cholesky.hpp:18
static constexpr auto makeConstantSequence()
Definition sequence.hpp:402
static constexpr auto abs(Complex< T > const &a)
Definition abs.hpp:12
static constexpr auto sqrt(Complex< T > const &a)
Definition sqrt.hpp:12
static constexpr auto norm(Complex< T > const &a)
Definition norm.hpp:11