Lapack::pseudoInverse

(PECL lapack >= 0.1.0)
Calculate the inverse of a matrix
public static array Lapack::pseudoInverse ( array $a )

Find the pseudoinverse of a matrix A.

Parameters:
a

Matrix to invert

Returns:

Inverted matrix (array of arrays).

Examples:
Using Lapack::pseudoInverse() :
<?php

   $a = array(
       array( 8, 1, 6 ),
       array( 3, 5, 7 ),
       array( 4, 9, 2 ),
   );

   $result = Lapack::pseudoInverse($a);

   ?>

doc_php
2016-02-24 16:02:24
Comments
Leave a Comment

Please login to continue.