16 #ifndef OPENKALMAN_EIGEN_TRAITS_VECTORWISEOP_HPP 17 #define OPENKALMAN_EIGEN_TRAITS_VECTORWISEOP_HPP 19 #include <type_traits> 24 template<
typename ExpressionType,
int Direction>
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>
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>;
61 #endif //OPENKALMAN_EIGEN_TRAITS_VECTORWISEOP_HPP constexpr auto count_indices(const T &t)
Get the number of indices available to address the components of an indexible object.
Definition: count_indices.hpp:33
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
typename scalar_type_of< T >::type scalar_type_of_t
helper template for scalar_type_of.
Definition: scalar_type_of.hpp:54
Definition: eigen-comma-initializers.hpp:20
The constant associated with T, assuming T is a constant_matrix.
Definition: constant_coefficient.hpp:36
decltype(auto) constexpr nested_object(Arg &&arg)
Retrieve a nested object of Arg, if it exists.
Definition: nested_object.hpp:34
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