MathPHP\LinearAlgebra\Matrix::minorMatrix PHP Метод

minorMatrix() публичный Метод

Used in computing the minor Mᵢⱼ.
public minorMatrix ( integer $mᵢ, integer $nⱼ ) : SquareMatrix
$mᵢ integer Row to exclude
$nⱼ integer Column to exclude
Результат SquareMatrix with row mᵢ and column nⱼ removed
    public function minorMatrix(int $mᵢ, int $nⱼ) : SquareMatrix
    {
        if (!$this->isSquare()) {
            throw new Exception\MatrixException('Matrix is not square; cannot get minor Matrix of a non-square matrix');
        }
        if ($mᵢ >= $this->m || $mᵢ < 0) {
            throw new Exception\MatrixException('Row to exclude for minor Matrix does not exist');
        }
        if ($nⱼ >= $this->n || $nⱼ < 0) {
            throw new Exception\MatrixException('Column to exclude for minor Matrix does not exist');
        }
        return $this->rowExclude($mᵢ)->columnExclude($nⱼ);
    }