You are here

public function PHPExcel_Shared_JAMA_QRDecomposition::getH in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/QRDecomposition.php \PHPExcel_Shared_JAMA_QRDecomposition::getH()

* Return the Householder vectors * *

Return value

Matrix Lower trapezoidal matrix whose columns define the reflections

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/QRDecomposition.php, line 116

Class

PHPExcel_Shared_JAMA_QRDecomposition
@package JAMA

Code

public function getH() {
  for ($i = 0; $i < $this->m; ++$i) {
    for ($j = 0; $j < $this->n; ++$j) {
      if ($i >= $j) {
        $H[$i][$j] = $this->QR[$i][$j];
      }
      else {
        $H[$i][$j] = 0.0;
      }
    }
  }
  return new PHPExcel_Shared_JAMA_Matrix($H);
}