ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Matrix\Decomposition\Decomposition Class Reference
+ Collaboration diagram for Matrix\Decomposition\Decomposition:

Static Public Member Functions

static decomposition ($type, Matrix $matrix)
 

Data Fields

const LU = 'LU'
 
const QR = 'QR'
 

Detailed Description

Definition at line 8 of file Decomposition.php.

Member Function Documentation

◆ decomposition()

static Matrix\Decomposition\Decomposition::decomposition (   $type,
Matrix  $matrix 
)
static
Exceptions
Exception

Definition at line 16 of file Decomposition.php.

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 }
$matrix
Definition: test.php:18
$type

References $matrix, $type, Matrix\Decomposition\Decomposition\LU, and Matrix\Decomposition\Decomposition\QR.

Field Documentation

◆ LU

const Matrix\Decomposition\Decomposition::LU = 'LU'

Definition at line 10 of file Decomposition.php.

Referenced by Matrix\Decomposition\Decomposition\decomposition().

◆ QR

const Matrix\Decomposition\Decomposition::QR = 'QR'

Definition at line 11 of file Decomposition.php.

Referenced by Matrix\Decomposition\Decomposition\decomposition().


The documentation for this class was generated from the following file: