MDL-58859 mlbackend_php: Added to core

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 07:51:54 +02:00
parent 229ae617c5
commit 9e84757bf0
129 changed files with 11485 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Phpml\Exception;
class MatrixException extends \Exception
{
/**
* @return MatrixException
*/
public static function notSquareMatrix()
{
return new self('Matrix is not square matrix');
}
/**
* @return MatrixException
*/
public static function columnOutOfRange()
{
return new self('Column out of range');
}
/**
* @return MatrixException
*/
public static function singularMatrix()
{
return new self('Matrix is singular');
}
}