qlinear-0.1.0.0: Typesafe library for linear algebra

Safe HaskellNone
LanguageHaskell2010

QLinear.Constructor.Operator

Synopsis

Documentation

operator :: QuasiQuoter Source #

Macro constructor for operator

>>> [operator| (x, y) => (y, x) |]
[0,1]
[1,0]
>>> [operator| (x, y) => (2 * x, y + x) |] ~*~ [vector| 3 4 |]
[6]
[7]

Do note,constructor doesn't prove linearity. It just builds matrix of given operator.