Find the index of a node at a given location.
Public Member Functions | |
| template<typename Loc , CONCEPT_REQUIRES_(Location< Loc >{}) > | |
| auto | operator() (Loc &&loc) const noexcept-> num_t |
Normalized length of the node at location loc. More... | |
| template<typename Tree > | |
| auto | operator() (Tree const &t, node_idx n) const noexcept-> num_t |
Normalized length of the node n within the tree t. More... | |
|
noexcept |
Normalized length of the node at location loc.
| loc | [in] Node location |
Time complexity: O(1)
|
noexcept |
Normalized length of the node n within the tree t.
| t | [in] Tree |
| n | [in] Node index |
Time complexity: O(log(N))