Midwest PHP Call For Papers Open

The Lapack class

(PECL lapack >= 0.1.0)


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 {
/* Methods */
public static eigenValues ( array $a [, array $left [, array $right ]] ) : array
public static identity ( int $n ) : array
public static leastSquaresByFactorisation ( array $a , array $b ) : array
public static leastSquaresBySVD ( array $a , array $b ) : array
public static pseudoInverse ( array $a ) : array
public static singularValues ( array $a ) : array
public static solveLinearEquation ( array $a , array $b ) : array

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top