ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Decomposition.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Matrix\Decomposition
;
4
5
use
Matrix\Exception
;
6
use
Matrix\Matrix
;
7
8
class
Decomposition
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
}
$type
$type
Definition:
proxy_ylocal.php:10
Matrix\Decomposition\Decomposition
Definition:
Decomposition.php:8
Exception
Matrix\Decomposition\Decomposition\LU
const LU
Definition:
Decomposition.php:10
Matrix\Decomposition\QR
Definition:
QR.php:8
Matrix\Decomposition\Decomposition\QR
const QR
Definition:
Decomposition.php:11
Matrix\Decomposition\Decomposition\decomposition
static decomposition($type, Matrix $matrix)
Definition:
Decomposition.php:16
$matrix
$matrix
Definition:
test.php:18
Matrix\Decomposition\LU
Definition:
LU.php:8
Matrix\Decomposition
Definition:
Decomposition.php:3
php
Matrix
Matrix
Class for the creating "special" Matrices.
Definition:
Builder.php:11
Exception
libs
composer
vendor
markbaker
matrix
classes
src
Decomposition
Decomposition.php
Generated on Thu Jan 16 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)