16 #ifndef OPENKALMAN_EIGEN_TRAITS_REVERSE_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_REVERSE_HPP 19 #include <type_traits> 24 template<
typename MatrixType,
int Direction>
34 template<
typename Arg,
typename N>
41 template<
typename Arg>
44 return std::forward<Arg>(arg).nestedExpression();
48 template<
typename Arg>
49 static constexpr
auto get_constant(
const Arg& arg)
55 template<
typename Arg>
56 static constexpr
auto get_constant_diagonal(
const Arg& arg)
59 else return std::monostate {};
63 template<Applicability b>
64 static constexpr
bool one_dimensional = OpenKalman::one_dimensional<MatrixType, b>;
67 template<Applicability b>
68 static constexpr
bool is_square = square_shaped<MatrixType, b>;
71 template<TriangleType t>
75 (Direction == Eigen::BothDirections or (Direction == Eigen::Horizontal and vector<MatrixType, 0>) or
76 (Direction == Eigen::Vertical and vector<MatrixType, 1>));
79 static constexpr
bool is_triangular_adapter =
false;
82 static constexpr
bool is_hermitian = hermitian_matrix<MatrixType, Applicability::permitted> and
83 (Direction == Eigen::BothDirections or vector<MatrixType, 0> or vector<MatrixType, 1>);
89 #endif //OPENKALMAN_EIGEN_TRAITS_REVERSE_HPP constexpr bool one_dimensional
Specifies that a type is one-dimensional in every index.
Definition: one_dimensional.hpp:83
Definition: indexible_object_traits.hpp:36
Definition: basics.hpp:41
Trait object providing get and set routines.
Definition: eigen-forward-declarations.hpp:502
Definition: eigen-comma-initializers.hpp:20
An upper-right triangular matrix.
constexpr bool triangular_matrix
Specifies that a type is a triangular matrix (upper, lower, or diagonal).
Definition: triangular_matrix.hpp:37
The constant associated with T, assuming T is a constant_matrix.
Definition: constant_coefficient.hpp:36
The constant associated with T, assuming T is a constant_diagonal_matrix.
Definition: constant_diagonal_coefficient.hpp:32
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:34
A lower-left triangular matrix.
constexpr auto get_vector_space_descriptor(const T &t, const N &n)
Get the coordinates::pattern object for index N of indexible object T.
Definition: get_vector_space_descriptor.hpp:56