Open jabrap1 opened 1 week ago
I agree with the templating but only for double / float. It doesn't make much sense to have an interpolating table when you're restricted to a discrete set.
This is a textbook use for concepts & requires
, see std::floating_point
Template
LookupTable
Class and others in the mappers folder if they are not up to dateDescription: The
LookupTable
class is currently designed to work only withfloat
types. To increase its flexibility, we could template the class to support different numeric types (e.g.,double
,int
).Proposal: Add a template parameter
typename T
toLookupTable
.