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 datetimeimmutable returns new datetimeimmutable object encapsulating the given datetime objectphp domxpath evaluates the given xpath expression and returns a typed result if possiblephp map returns the result of adding all given associationsphp set returns a sub set of a given rangephp vector returns a sub vector of a given rangephp 函数处理 函数 returns the number of arguments passed to the functionphp 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 mailparse 函数 returns a handle on a given section in a mimemessagephp maxdb 函数 returns the error code for the most recent function callphp maxdb 函数 returns the number of warnings from the last query for the given linkphp ncurses 函数 turn on the given attributes for soft function key labelsphp ncurses 函数 set given attributes for soft function key labelsphp com 函数 returns the result of performing the power function with two variantsphp lapack this function returns the eigenvalues for a given square matrixphp lapack calculated the singular values of a matrixphp sdo das xml 函数 returns sdo das xml document object for a given path to xml instance documentphp sdo das xml 函数 returns sdo das xml document for a given xml instance stringphp solrcollapsefunction returns a string representing the constructed collapse functionphp tidy returns the documentation for the given option name
关注编程学问公众号