Lines Matching refs:wdist
299 PetscReal *wdist; in PCBDDCGraphComputeConnectedComponents() local
306 PetscCall(PetscMalloc1(maxc * graph->cdim, &wdist)); in PCBDDCGraphComputeConnectedComponents()
321 wdist[k++] = c; in PCBDDCGraphComputeConnectedComponents()
332 anchor = wdist + fst * cdim; in PCBDDCGraphComputeConnectedComponents()
339 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents()
347 anchor = wdist + point1 * cdim; in PCBDDCGraphComputeConnectedComponents()
354 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents()
366 …or (d = 0; d < cdim; d++) a += (wdist[point1 * cdim + d] - wdist[point2 * cdim + d]) * (wdist[poin… in PCBDDCGraphComputeConnectedComponents()
374 …b += (wdist[point1 * cdim + d] - wdist[j * cdim + d]) * (wdist[point1 * cdim + d] - wdist[j * cdim… in PCBDDCGraphComputeConnectedComponents()
375 …c += (wdist[point2 * cdim + d] - wdist[j * cdim + d]) * (wdist[point2 * cdim + d] - wdist[j * cdim… in PCBDDCGraphComputeConnectedComponents()
391 anchor = wdist + point3 * cdim; in PCBDDCGraphComputeConnectedComponents()
398 …for (d = 0; d < cdim; d++) dist += (wdist[j * cdim + d] - anchor[d]) * (wdist[j * cdim + d] - anch… in PCBDDCGraphComputeConnectedComponents()
416 …same[0] = (PetscBool)(same[0] && (PetscAbsReal(wdist[j * cdim + d] - wdist[point1 * cdim + d]) < P… in PCBDDCGraphComputeConnectedComponents()
417 …same[1] = (PetscBool)(same[1] && (PetscAbsReal(wdist[j * cdim + d] - wdist[point2 * cdim + d]) < P… in PCBDDCGraphComputeConnectedComponents()
418 …same[2] = (PetscBool)(same[2] && (PetscAbsReal(wdist[j * cdim + d] - wdist[point3 * cdim + d]) < P… in PCBDDCGraphComputeConnectedComponents()
419 …same[3] = (PetscBool)(same[3] && (PetscAbsReal(wdist[j * cdim + d] - wdist[point4 * cdim + d]) < P… in PCBDDCGraphComputeConnectedComponents()
425 PetscCall(PetscFree(wdist)); in PCBDDCGraphComputeConnectedComponents()