Safe Haskell | None |
---|---|
Language | Haskell2010 |
Plain interpolation functions.
Documentation
cubicAlt :: (C a v, C a) => v -> v -> v -> v -> a -> v Source #
The interpolators for module operations do not simply compute a straight linear combination of some vectors. Instead they add then scale, then add again, and so on. This is efficient whenever scaling and addition is cheap. In this case they might save multiplications. I can't say much about numeric cancellations, however.