Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "ffimatrix"

Title:Operations with matrices using Prolog and C
Rating:Not rated. Create the first rating!
Latest version:0.1.0
SHA1 sum:f766f068919bdaa45624eaefbfb7620c039fde52
Author:Fabrizio Riguzzi <fabrizio.riguzzi@unife.it>
Marco Alberti <marco.alberti@unife.it>
Mattia Tempestini <mattia.tempestini@student.unife.it>
Requires:ffi
lambda

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1.0426a4c64b8fc992349de7330c48310c6e77973bc2https://github.com/malbertife/ffimatrix.git
4dbf065c029080c1cf54a659907f1dc497708b291https://github.com/malbertife/ffimatrix.git
82a79aa8d07eb822a7da67474f04c3ae2ca8dc853https://github.com/malbertife/ffimatrix.git
962695bcd9ce129b324238157337b68292f66b741https://github.com/malbertife/ffimatrix.git
99c86072717c628d77e6f383eb718162bfb61c8d4https://github.com/malbertife/ffimatrix.git
a4a6de5e5a9cdf4d781ce812c3b3c2809b54aa621https://github.com/malbertife/ffimatrix.git
b01312e9b22ab8ef5a7e043e191bab64858634d32https://github.com/malbertife/ffimatrix.git
b667d82d3acf0932daf4fda82a7319daf49822c57https://github.com/malbertife/ffimatrix.git
be71c22bd273910803bc1fd4a521abd73572cc483https://github.com/malbertife/ffimatrix.git
dd0b8dc36a8cd60fb66dd906baa895cbdbef54fe60https://github.com/malbertife/ffimatrix.git
f766f068919bdaa45624eaefbfb7620c039fde521https://github.com/malbertife/ffimatrix.git

ffimatrix

SWI-Prolog pack f or matrix operations. Now being rewritten to use the new FFI library for SWI-Prolog. Work in progress, do not use for now.

Installation on Ubuntu

Install the packages libffi-dev and libatlas-base-dev

sudo apt-get install libffi-dev libatlas-base-dev

Copy prolog/ffimatrix.ubuntu.pl to prolog/ffimatrix.pl and compile

cp Makefile.macAcc Makefile
cp prolog/ffimatrix.mac.pl prolog/ffimatrix.pl
source buildenv.sh
make

Installation on Mac

Using the framework Accelerate

Apple macOS 10.3+ SDK includes BLAS in framework Accelerate.

Copy Makefile.macAcc to Makefile and prolog/ffimatrix.mac.pl to prolog/ffimatrix.pl and compile

cp Makefile.macAcc Makefile
cp prolog/ffimatrix.mac.pl prolog/ffimatrix.pl
source buildenv.sh
make

Using OpenBlas

Install the openblas Homebrew formula:

brew install openblas
````

Copy `Makefile.macOB` to `Makefile` and `prolog/ffimatrix.mac.pl` to `prolog/ffimatrix.pl`
and compile

cp Makefile.mac Makefile cp prolog/ffimatrix.mac.pl prolog/ffimatrix.pl source buildenv.sh make `

Contents of pack "ffimatrix"

Pack contains 19 files holding a total of 164K bytes.