downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Lapack::identity> <Lapack
[edit] Last updated: Sun, 19 May 2013

view this page in

Lapack::eigenValues

(PECL lapack >= 0.1.0)

Lapack::eigenValuesThis function returns the eigenvalues for a given square matrix

Descrição

public static array Lapack::eigenValues ( array $a [, array $left [, array $right ]] )

Calculate the eigenvalues for a square matrix, and optionally calculate the left and right eigenvectors.

Parâmetros

a

The matrix to calculate the eigenvalues for.

left

Optional parameter - if an array is passed here, it will be filled with the left eigenvectors

right

Optional parameter - if an array is passed here, it will be filled with the right eigenvectors

Valor Retornado

Returns an array of arrays representing the eigenvalues for the array.

Exemplos

Exemplo #1 Using Lapack::eigenValues():

<?php

 $a 
= array(
     array(-
1.01,   0.86,  -4.60,  3.31,  -4.81  ),
     array( 
3.98,   0.53,  -7.04,  5.29,   3.55  ),
     array( 
3.30,   8.26,  -3.89,  8.20,  -1.51  ),
     array( 
4.43,   4.96,  -7.66, -7.33,   6.18  ),
     array( 
7.31,  -6.43,  -6.16,  2.47,   5.58  ),
 );

 
$result Lapack::eigenValues($a);

 
?>



add a note add a note User Contributed Notes Lapack::eigenValues - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites