ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::Concepts::Interpolatable Concept Reference

check types for requirements needed by interpolation More...

#include <Acts/Utilities/Interpolation.hpp>

Concept definition

template<typename T, std::size_t N, typename P1, typename P2, typename P3>
concept Acts::Concepts::Interpolatable = requires {
std::has_single_bit(N);
{
std::declval<double>() * std::declval<T>() +
std::declval<double>() * std::declval<T>()
} -> std::convertible_to<T>;
{ std::declval<P1>()[0] } -> std::convertible_to<double>;
{ std::declval<P2>()[0] } -> std::convertible_to<double>;
{ std::declval<P3>()[0] } -> std::convertible_to<double>;
}
check types for requirements needed by interpolation
Definition Interpolation.hpp:30

Detailed Description

check types for requirements needed by interpolation

This helper struct provides compile-time information whether the provided Point and Value types can be used in the Acts::interpolate function.

Template Parameters
Ttype of values to be interpolated
Nnumber of hyper box corners
P1type for specifying the input point
P2type for specifying the lower corner of the hyper box
P3type for specifying the upper corner of the hyper box