3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_ADD_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_ADD_H
10 template<IsComplex TA, IsComplex TB>
11 static inline constexpr auto operator+(TA
const &a, TB
const &b)
13 auto const real = a.real() + b.real();
14 auto const imag = a.imag() + b.imag();
19 template<IsComplex TA, IsValue TB>
20 static inline constexpr auto operator+(TA
const &a, TB
const &b)
22 auto const real = a.real() + b;
23 auto const imag = a.imag();
28 template<IsValue TA, IsComplex TB>
29 static inline constexpr auto operator+(TA
const &a, TB
const &b)
31 auto const real = a + b.real();
32 auto const imag = b.imag();
Definition cholesky.hpp:10
Complex(T const &) -> Complex< T >
static constexpr decltype(auto) real(X &&a)
Definition real.hpp:12
static constexpr decltype(auto) imag(X &&a)
Definition imag.hpp:12
static constexpr auto operator+(Sequence< T, As... > const, Sequence< T, Bs... > const)
Definition sequence.hpp:107