I am in the middle of interpolation API desgin. It...
# mathematics
a
I am in the middle of interpolation API desgin. It seems that there are two paths I can take. One is to pass
Algebra
instance to interpolator, meaning that the interpolator will work only for specific element and algebra type, but resulting functions will be regular
(T)->R
functions. Another possibllity is to go completely functional and provide
Algebra
in the call site and make interpolation lazy, meaning that interpolator will be an
object
and resulting function will have
A.(T)->R
signature (where
A
is the algebra defined on
T
elements) and actual interpolation will be done on call site. I really need some input here since the similar decisions will be required for other things as well. @breandan? @elizarov?