mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-09-30 15:59:06 +00:00
25 lines
420 B
PHP
25 lines
420 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');
|
|
}
|
|
}
|