public function SingularValueDecomposition::getS in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/JAMA/SingularValueDecomposition.php \SingularValueDecomposition::getS()
* Return the diagonal matrix of singular values * * @access public *
Return value
S
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Shared/ JAMA/ SingularValueDecomposition.php, line 475
Class
- SingularValueDecomposition
- @package JAMA
Code
public function getS() {
for ($i = 0; $i < $this->n; ++$i) {
for ($j = 0; $j < $this->n; ++$j) {
$S[$i][$j] = 0.0;
}
$S[$i][$i] = $this->s[$i];
}
return new Matrix($S);
}