src/Malenki/Math/Matrix.php
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;
    }
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;
    }
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 ; }
Tests whether the current matrix can be multiply with the given one.

@param  mixed   $matrix Scalar, complex or matrix
@access public
@return boolean
Tests whether the current matrix can be multiply with the given one .