MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / find

Function find

src/backend/cpu/kernel/regions.hpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<typename T>
48static LabelNode<T>* find(LabelNode<T>* x) {
49 if (x->getParent() != x) x->setParent(find(x->getParent()));
50 return x->getParent();
51}
52
53template<typename T>
54static void setUnion(LabelNode<T>* x, LabelNode<T>* y) {

Callers 5

markDeviceForInteropMethod · 0.85
setUnionFunction · 0.85
regionsFunction · 0.85
copy_children_to_endMethod · 0.85
isEmbeddedFunction · 0.85

Calls 2

getParentMethod · 0.80
setParentMethod · 0.80

Tested by

no test coverage detected