Lapack::eigenValues

(PECL lapack >= 0.1.0)

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

说明

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

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

参数

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

返回值

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

范例

Example #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);

 
?>

相关文章
php domxpath evaluates the given xpath expression and returns a typed result if possiblephp vector returns the value at a given indexphp vector returns a sub vector of a given rangephp imap 函数 returns a properly formatted email address given the mailbox host and personal infophp imap 函数 this function returns an array of messages matching the given search criteriaphp imap 函数 this function returns the uid for the given message sequence numberphp maxdb 函数 returns the error code for the most recent function callphp maxdb 函数 returns whether thread safety is given or notphp maxdb 函数 returns the number of warnings from the last query for the given linkphp ncurses 函数 turn off the given attributes for soft function key labelsphp ncurses 函数 turn on the given attributes for soft function key labelsphp ncurses 函数 set given attributes for soft function key labelsphp newt 函数 this function returns a grid containing the buttons createdphp sqlite 函数 execute a query against a given database and returns an arrayphp sqlite 函数 executes a query against a given database and returns a result handlephp statistic 函数 calculates any one parameter of the non central chi square distribution given values for the othersphp com 函数 returns the result of performing the power function with two variantsphp lapack this function returns the eigenvalues for a given square matrixphp lapack calculate the inverse of a matrixphp sdo das relational 函数 executes a given sql query against a relational database and returns the results as a normalised data graph
关注编程学问公众号