You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/numba.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,15 +367,15 @@ print("Results match!")
367
367
### Example - ARG descendant and ancestral edges calculation
368
368
369
369
As we have `child_index` and `parent_index`, we can efficiently find both descendant and ancestral sub-ARGs
370
-
for a given node. This first example shows how to find all edges in the ARG that are descendants of a given node. It returns a boolean mask indicating which edges are part of the sub-ARG rooted at the specified node:
370
+
for a given node. This first example shows how to find all edges in the ARG that are descendants of a given node. It returns a boolean array indicating which edges are part of the sub-ARG rooted at the specified node:
371
371
372
372
```{code-cell} python
373
373
@numba.njit
374
374
def descendant_edges(numba_ts, u):
375
375
"""
376
-
Returns a boolean mask for edges that are descendants of node u.
376
+
Returns a boolean array which is only True for edges that are descendants of node u.
0 commit comments