PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.10.7
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.10.7
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / markbaker / matrix / classes / src / Decomposition / Decomposition.php

Decomposition.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.10.7, at vendor/markbaker/matrix/classes/src/Decomposition/Decomposition.php

28 lines 530 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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
13 /**
14 * @throws Exception
15 */
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 }
28