Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
markbaker
/
matrix
/
classes
/
src
/
Decomposition
:
Decomposition-20250418144400.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Matrix\Decomposition; use Matrix\Exception; use Matrix\Matrix; class Decomposition { const LU = 'LU'; const QR = 'QR'; /** * @throws Exception */ public static function decomposition($type, Matrix $matrix) { switch (strtoupper($type)) { case self::LU: return new LU($matrix); case self::QR: return new QR($matrix); default: throw new Exception('Invalid Decomposition'); } } }