A matrix library suited for graph algorithms.
The simplest way is using Cabal which is part of the Haskell Platform.
If you are using git, then simply clone the project into a folder of your choice. Otherwise download the zipped version and unpack it into a folder of your choice.
Assuming, all project files are located in ~/vmm
you can proceed as follows.
bash> cd ~/vmm
bash> cabal update
bash> cabal install
The project is now installed and can be either used directly, e.g.:
bash> ghci
ghci> :m VMM
VMM>
or imported into an own Haskell module via import VMM
.
You can browse the documentation online:
- VMM is the main file. It contains the algorithms and examples.
- RandomMatrix is an auxiliary file that takes care of the creation of random matrices.
- Semiring is another auxiliary file that contains the semiring type class and some common instances.
- VMM (*.lhs version) is the main file. It contains the algorithms and examples.
- RandomMatrix is an auxiliary file that takes care of the creation of random matrices.
- Semiring is another auxiliary file that contains the semiring type class and some common instances.
Alternatively, you can view these files locally as .lhs
files directly.
All files are located in the /src
folder.