%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/vendor/markbaker/matrix/classes/src/Decomposition/
Upload File :
Create Path :
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/vendor/markbaker/matrix/classes/src/Decomposition/Decomposition.php

<?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');
        }
    }
}

Zerion Mini Shell 1.0