EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Emrys::TimeStep Concept Reference

A step of time that converts to Scalar: Scalar itself, or any type with a TimeTraits, such as a floating-point number or a std::chrono::duration. More...

#include <EmrysFilter/Core/Time.h>

Concept definition

template<typename Time, typename Scalar>
concept TimeStep = std::same_as<std::remove_cvref_t<Time>, Scalar> || requires(std::remove_cvref_t<Time> const & t) {
{ TimeTraits<std::remove_cvref_t<Time>>::template toScalar<Scalar>(t) } -> std::same_as<Scalar>;
}
A step of time that converts to Scalar: Scalar itself, or any type with a TimeTraits,...
Definition Time.h:128
How a time type converts to a scalar, as a static member template toScalar<Scalar>(t) returning Scala...
Definition Time.h:67

Detailed Description

A step of time that converts to Scalar: Scalar itself, or any type with a TimeTraits, such as a floating-point number or a std::chrono::duration.

Not an integer.