Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Brillo.Data.Point.Arithmetic
Description
Point and vector arithmetic
Vectors aren't numbers according to Haskell, because they don't support all numeric operations sensibly. We define component-wise addition, subtraction, and negation along with scalar multiplication in this module, which is intended to be imported qualified.