bartz.grove.node_to_leaf_index¶
- bartz.grove.node_to_leaf_index(node)[source]¶
Return the index in
TreeHeaps.leaf_treeof the value of a node.- Parameters:
node (
Integer[Array, '*shape']) – The index of the node in the heap, not 0.- Returns:
Integer[Array, '*shape']– The index, which isnodeshifted right until its lowest set bit is dropped.