16 #ifndef OPENKALMAN_ZERO_HPP 17 #define OPENKALMAN_ZERO_HPP 25 #ifndef __cpp_concepts 28 template<
typename T,
unsigned int epsilon_factor,
typename =
void>
31 template<
typename T,
unsigned int epsilon_factor>
33 values::fixed_value_compares_with<decltype(interface::object_traits<stdex::remove_cvref_t<T>>::
34 get_constant(std::declval<T>())), 0, &stdex::is_eq, epsilon_factor>>>
38 template<
typename T,
unsigned int epsilon_factor,
typename =
void>
41 template<
typename T,
unsigned int epsilon_factor>
43 values::fixed_value_compares_with<typename element_type_of<T>::type, 0, &stdex::is_eq, epsilon_factor>>>
55 template<
typename T,
unsigned int epsilon_factor = 0>
60 get_constant(std::declval<T>())), 0, &std::is_eq, epsilon_factor> or
Header file for code relating to values (e.g., scalars and indices)
Definition for element_type_of.
The root namespace for OpenKalman.
Definition: basics.hpp:34
Forward declaration of object_traits, which must be defined for all objects used in OpenKalman...
Definition: object_traits.hpp:38
constexpr bool zero
Specifies that a type is known at compile time to be a constant matrix of value zero.
Definition: zero.hpp:63
constexpr bool fixed_value_compares_with
T has a fixed value that compares with N in a particular way based on parameter comp.
Definition: fixed_value_compares_with.hpp:74
typename element_type_of< T >::type element_type_of_t
helper template for element_type_of.
Definition: element_type_of.hpp:54