php-ml/src/Phpml/Exception/MatrixException.php

25 lines
423 B
PHP
Raw Normal View History

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