qlinear-0.1.0.0: Typesafe library for linear algebra

Safe HaskellNone
LanguageHaskell2010

QLinear.Constructor.Matrix

Synopsis

Documentation

matrix :: QuasiQuoter Source #

Macro constructor for Matrix

>>> [matrix| 1 2; 3 4 |]
[1,2]
[3,4]
>>> :t [matrix| 1 2; 3 4|]
[matrix| 1 2; 3 4|] :: Num a => Matrix 2 2 a

vector :: QuasiQuoter Source #

Macro constructor for Vector.

>>> [vector| 1 2 3 4 |]
[1]
[2]
[3]
[4]
>>> :t [vector| 1 2 3 4 |]
[vector| 1 2 3 4 |] :: Num a => Vector 4 a