casadi/casadi_windows/include/casadi/core/binary_mx.hpp
bool is_equal(const MXNode* node, casadi_int depth) const override {
      if (op_==node->op()) {
        if (MX::is_equal(dep(0), node->dep(0), depth-1)
            && MX::is_equal(dep(1), node->dep(1), depth-1)) {
          // If arguments are equal
          return true;
        } else {
          // If arguments are flipped
          return operation_checker<CommChecker>(op_)
            && MX::is_equal(dep(1), node->dep(0), depth-1)
            && MX::is_equal(dep(0), node->dep(1), depth-1);
        }
      } else {
        return false;
      }
    }
/** \brief Check if two nodes are equivalent up to a given depth */
\brief Check if two nodes are equivalent up to a given depth
\ brief Check if two nodes are equivalent up to a given depth
bool is_equal(const MXNode* node, casadi_int depth) const override {
      if (op_==node->op()) {
        if (MX::is_equal(dep(0), node->dep(0), depth-1)
            && MX::is_equal(dep(1), node->dep(1), depth-1)) {
          return true;
        } else {
          return operation_checker<CommChecker>(op_)
            && MX::is_equal(dep(1), node->dep(0), depth-1)
            && MX::is_equal(dep(0), node->dep(1), depth-1);
        }
      } else {
        return false;
      }
    }
bool is_equal ( const MXNode * node , casadi_int depth ) const override { if ( op_ == node -> op ( ) ) { if ( MX :: is_equal ( dep ( 0 ) , node -> dep ( 0 ) , depth - 1 ) && MX :: is_equal ( dep ( 1 ) , node -> dep ( 1 ) , depth - 1 ) ) { return true ; } else { return operation_checker < CommChecker > ( op_ ) && MX :: is_equal ( dep ( 1 ) , node -> dep ( 0 ) , depth - 1 ) && MX :: is_equal ( dep ( 0 ) , node -> dep ( 1 ) , depth - 1 ) ; } } else { return false ; } }
\brief Check if two nodes are equivalent up to a given depth
\ brief Check if two nodes are equivalent up to a given depth
// If arguments are equal // If arguments are flipped