bool contRangeProcSet::cgDisconnect(ConstrGraph* tgtCG) const { bool modified=false; if(emptySet() || !validSet()) return modified; if(tgtCG!=NULL) { // Disconnect this process set's bounds from its constraint craph modified = tgtCG->removeVar(getLB()) || modified; modified = tgtCG->removeVar(getUB()) || modified; } return modified; }
// Removes the upper and lower bounds of this set from its associated constraint graph // or the provided constraint graph (if it is not ==NULL) and sets cg to NULL if tgtCG==NULL. // Returns true if this causes the constraint graph to change, false otherwise. bool contRangeProcSet::cgDisconnect() { bool modified=false; if(emptySet() || !validSet()) return modified; if(cg!=NULL) { // Disconnect this process set's bounds from its constraint craph modified = cg->removeVar(getLB()) || modified; modified = cg->removeVar(getUB()) || modified; cg = NULL; } return modified; }
PyTensorIndex getLowerBound() const { PyTensorIndex bounds(rank(), (const nta::UInt32 *) 0); getLB(bounds); return bounds; }