16 #ifndef OPENKALMAN_EIGEN_TRAITS_NESTBYVALUE_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_NESTBYVALUE_HPP 19 #include <type_traits> 24 template<
typename ExpressionType>
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)
58 return constant_diagonal_value {arg.nestedExpression()};
62 template<applicability b>
63 static constexpr
bool one_dimensional = OpenKalman::one_dimensional<ExpressionType, b>;
66 template<applicability b>
67 static constexpr
bool is_square = square_shaped<ExpressionType, b>;
70 template<triangle_type t>
71 static constexpr
bool triangle_type_value = triangular_matrix<ExpressionType, t>;
74 static constexpr
bool is_triangular_adapter =
false;
77 static constexpr
bool is_hermitian = hermitian_matrix<ExpressionType, applicability::permitted>;
80 static constexpr data_layout layout = layout_of_v<ExpressionType>;
constexpr bool one_dimensional
Specifies that a type is one-dimensional in every index.
Definition: one_dimensional.hpp:56
Definition: basics.hpp:41
Definition: eigen-comma-initializers.hpp:20
decltype(auto) constexpr get_pattern_collection(T &&t)
Get the coordinates::pattern_collection associated with indexible object T.
Definition: get_pattern_collection.hpp:59
Definition: object_traits.hpp:38
Trait object providing get and set routines.
Definition: eigen-forward-declarations.hpp:502
constexpr auto constant_value(T &&t)
The constant value associated with a constant_object or constant_diagonal_object. ...
Definition: constant_value.hpp:37
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:35