public function multiplyAllow($matrix)
    {
        if (is_numeric($matrix)) {
            return true;
        }

        if ($matrix instanceof Complex) {
            return true;
        }

        if ($matrix instanceof Matrix) {
            return $this->size->cols == $matrix->rows;
        }

        return false;
    }