a typesafe way encode accelerate matrices and vectors
|Latest on Hackage:||0.1.0.0|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This library provides a high level interface to
accelerate for matrix
The simplest way to install this library is using
> cabal install accelerate-typelits
If you want to have the most recent version, the project is on github so you can checkout the project.
> git clone https://github.com/epsilonhalbe/accelerate-typelits.git > cd accelerate-typelits > cabal install
> git clone https://github.com/epsilonhalbe/accelerate-typelits.git > cd accelerate-typelits > cabal sandbox init > cabal install
There is also a
stack.yaml file included, so one can also use stack in
order to compile this library.
> git clone https://github.com/epsilonhalbe/accelerate-typelits.git > cd accelerate-typelits > stack --stack-yaml stack-7.10.yaml build
The operators have been designed to give a visual hint of the respective parameters.
So for example
#*^ represents the multiplication of a matrix with a vector,
^*# works the other way around. Other examples would be
matrix-matrix multiplication and
.*^ scalar multiplication of a vector.
Operator precedence is usually the same as the numeric equivalence.
The matrix-vector and matrix-matrix products have been inspired by Henning
Revision history for accelerate-typelit
2016-04-23 – 0.1.0.0 – initial version
- Defining data types to handle type-safe matrices and vectors
- Providing vector/matrix/scalar functions for addition, multiplication