ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Decomposition.php
Go to the documentation of this file.
1<?php
2
4
7
9{
10 const LU = 'LU';
11 const QR = 'QR';
12
16 public static function decomposition($type, Matrix $matrix)
17 {
18 switch (strtoupper($type)) {
19 case self::LU:
20 return new LU($matrix);
21 case self::QR:
22 return new QR($matrix);
23 default:
24 throw new Exception('Invalid Decomposition');
25 }
26 }
27}
An exception for terminatinating execution or to throw for unit testing.
static decomposition($type, Matrix $matrix)
$matrix
Definition: test.php:18
Class for the creating "special" Matrices.
Definition: Builder.php:11
$type