16 #ifndef OPENKALMAN_CONJUGATE_TRANSPOSE_HPP 17 #define OPENKALMAN_CONJUGATE_TRANSPOSE_HPP 19 #include "patterns/patterns.hpp" 29 template<indexible Arg>
32 template<
typename Arg, std::enable_if_t<indexible<Arg>,
int> = 0>
33 constexpr decltype(
auto)
39 if constexpr (hermitian_matrix<Arg> and square)
41 return std::forward<Arg>(arg);
43 else if constexpr ((diagonal_matrix<Arg> or constant_object<Arg>) and square)
51 else if constexpr (interface::conjugate_transpose_defined_for<Arg&&>)
decltype(auto) constexpr conjugate(Arg &&arg)
Take the complex conjugate of an indexible object.
Definition: conjugate.hpp:44
constexpr bool complex
T is a value that reduces to std::complex or a custom complex type.
Definition: complex.hpp:47
constexpr bool indexible
T is a multidimensional array type.
Definition: indexible.hpp:32
decltype(auto) constexpr get_pattern_collection(T &&t)
Get the patterns::pattern_collection associated with indexible object T.
Definition: get_pattern_collection.hpp:36
decltype(auto) constexpr conjugate_transpose(Arg &&arg)
Take the conjugate-transpose of an indexible_object.
Definition: conjugate_transpose.hpp:35
constexpr bool not_complex
T is a value in which either its type is not complex or its imaginary component is 0...
Definition: not_complex.hpp:48
typename pattern_collection_element< i, T >::type pattern_collection_element_t
Helper template for collection_element.
Definition: pattern_collection_element.hpp:58
The root namespace for OpenKalman.
Definition: basics.hpp:34
An interface to various routines from the linear algebra library associated with indexible object T...
Definition: library_interface.hpp:42
decltype(auto) constexpr transpose(Arg &&arg)
Swap any two indices of an indexible_object.
Definition: transpose.hpp:49
Definition of transpose function.
The static constant value of an indexible object, if it exists.
Definition: constant_value_of.hpp:31
Definition of conjugate function.
typename element_type_of< T >::type element_type_of_t
helper template for element_type_of.
Definition: element_type_of.hpp:54