16 #ifndef OPENKALMAN_VALUES_CONJ_HPP 17 #define OPENKALMAN_VALUES_CONJ_HPP 26 #include "values/functions/internal/constexpr_callable.hpp" 38 template <
typename Arg, std::enable_if_t<value<Arg>,
int> = 0>
39 constexpr
auto conj(
const Arg& arg)
42 if constexpr (fixed<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);
typename value_type_of< T >::type value_type_of_t
Helper template for value_type_of.
Definition: value_type_of.hpp:52
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
constexpr auto imag(const Arg &arg)
A constexpr function to obtain the imaginary part of a (complex) number.
Definition: imag.hpp:40
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
Definition for value:value_type_of and value:value_type_of_t.
constexpr auto real(const Arg &arg)
A constexpr function to obtain the real part of a (complex) number.
Definition: real.hpp:40
Definition for values::abs.
Definition: fixed-constants.hpp:23
Definition for values::number.
Definition for values::real.
constexpr auto operation(Operation &&op, Args &&...args)
A potentially constant-evaluated operation involving some number of values.
Definition: operation.hpp:98
Definition for values::value.