public function PHPExcel_Shared_JAMA_Matrix::solve in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/Matrix.php \PHPExcel_Shared_JAMA_Matrix::solve()
* Solve A*X = B. * *
Parameters
Matrix $B Right hand side: * @return Matrix ... Solution if A is square, least squares solution otherwise
1 call to PHPExcel_Shared_JAMA_Matrix::solve()
- PHPExcel_Shared_JAMA_Matrix::inverse in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php - * Matrix inverse or pseudoinverse. * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ Matrix.php, line 1026
Class
Code
public function solve($B) {
if ($this->m == $this->n) {
$LU = new PHPExcel_Shared_JAMA_LUDecomposition($this);
return $LU
->solve($B);
}
else {
$QR = new PHPExcel_Shared_JAMA_QRDecomposition($this);
return $QR
->solve($B);
}
}