16 #ifndef OPENKALMAN_EIGEN_TRAITS_VECTORWISEOP_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_VECTORWISEOP_HPP 19 #include <type_traits> 24 template<
typename ExpressionType,
int Direction>
27 using scalar_type = scalar_type_of_t<ExpressionType>;
29 template<
typename Arg>
30 static constexpr
auto count_indices(
const Arg& arg) {
return std::integral_constant<std::size_t, 2>{}; }
32 template<
typename Arg,
typename N>
38 template<
typename Arg>
39 static decltype(
auto) nested_object(Arg&& arg)
41 return std::forward<Arg>(arg)._expression();
44 template<
typename Arg>
45 static constexpr
auto get_constant(
const Arg& arg)
50 template<applicability b>
51 static constexpr
bool one_dimensional = OpenKalman::one_dimensional<ExpressionType, b>;
53 template<applicability b>
54 static constexpr
bool is_square = square_shaped<ExpressionType, b>;
Definition: basics.hpp:41
constexpr auto count_indices(const T &)
Get the number of indices necessary to address all the components of an indexible object...
Definition: count_indices.hpp:51
Definition: eigen-comma-initializers.hpp:20
decltype(auto) constexpr get_pattern_collection(T &&t)
Get the patterns::pattern_collection associated with indexible object T.
Definition: get_pattern_collection.hpp:36
Definition: object_traits.hpp:38
constexpr auto constant_value(T &&t)
The constant value associated with a constant_object or constant_diagonal_object. ...
Definition: constant_value.hpp:37
constexpr bool one_dimensional
Specifies that a type is one-dimensional in each of the first N indices.
Definition: one_dimensional.hpp:82