Esempio n. 1
0
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;
}
Esempio n. 2
0
// 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;
}
Esempio n. 3
0
 PyTensorIndex getLowerBound() const
 {
   PyTensorIndex bounds(rank(), (const nta::UInt32 *) 0);
   getLB(bounds);
   return bounds;
 }