matrix

SWI-Prolog pack for matrix operations. Impemented operations:

The library was developed for dealing with multivariate Gaussian distributions, that's the reason for the focus on positive semi-definite matrices

Example of use

$ swipl
?- use_module(library(matrix)).
?- determinant([[2,-1,0],[-1,2,-1],[0,-1,2]],D).
D = 3.999999999999999.

Prolog files

pack.plShow source
prolog/examples/test.plShow source
prolog/matrix.plShow source