LAPACK(3) 1 LAPACK(3)
The Lapack class
INTRODUCTION
LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of
linear systems of equations, eigenvalue problems, and singular value problems. This extension wraps the LAPACKE C bindings to allow access
to several processes exposed by the library. Most functions work with arrays of arrays, representing rectangular matrices in row major
order - so a two by two matrix [1 2; 3 4] would be array(array(1, 2), array(3, 4)).
All of the functions are called statically, for example $eig = Lapack::eigenvalues($a);
CLASS SYNOPSIS
Lapack
Lapack
Methods
o publicstatic array Lapack::eigenValues (array $a, [array $left], [array $right])
o publicstatic array Lapack::identity (int $n)
o publicstatic array Lapack::leastSquaresByFactorisation (array $a, array $b)
o publicstatic array Lapack::leastSquaresBySVD (array $a, array $b)
o publicstatic array Lapack::pseudoInverse (array $a)
o publicstatic array Lapack::singularValues (array $a)
o publicstatic array Lapack::solveLinearEquation (array $a, array $b)
PHP Documentation Group LAPACK(3)