16 #ifndef OPENKALMAN_VALUE_CONJ_HPP 17 #define OPENKALMAN_VALUE_CONJ_HPP 26 #include "values/functions/internal/constexpr_callable.hpp" 35 template<values::value Arg>
38 template <
typename Arg, std::enable_if_t<values::value<Arg>,
int> = 0>
39 constexpr
auto conj(
const Arg& arg)
42 if constexpr (not values::number<Arg>)
50 using Return = std::decay_t<decltype(conj(arg))>;
51 struct Op {
auto operator()(
const Arg& arg) {
return conj(arg); } };
52 if (internal::constexpr_callable<Op>(arg))
return conj(arg);
61 #endif //OPENKALMAN_VALUE_CONJ_HPP
An operation involving some number of values.
Definition: operation.hpp:69
constexpr auto imag(Arg arg)
A constexpr function to obtain the imaginary part of a (complex) number.
Definition: imag.hpp:40
constexpr bool value
T is numerical value or is reducible to a numerical value.
Definition: value.hpp:31
Definition for value:number_type_of_t.
Definition for values::imag.
constexpr auto conj(const Arg &arg)
A constexpr function for the complex conjugate of a (complex) number.
Definition: conj.hpp:39
constexpr auto real(Arg arg)
A constexpr function to obtain the real part of a (complex) number.
Definition: real.hpp:40
Definition for values::abs.
Definition: constant_coefficient.hpp:25
std::decay_t< decltype(values::to_number(std::declval< T >()))> number_type_of_t
Obtain the values::number type associated with avalues::value.
Definition: number_type_of_t.hpp:34
Definition for values::number.
Definition for values::real.