php-ml/src/Phpml/Exception/MatrixException.php
Arkadiusz Kondas 633974fea0 php-cs-fxier
2016-04-30 00:59:10 +02:00

25 lines
423 B
PHP

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