mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2025-02-03 20:48:29 +00:00
25 lines
423 B
PHP
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');
|
||
|
}
|
||
|
}
|