nest-simulator
nest-simulator copied to clipboard
Refactor ModelRangeManager::get_contiguous_node_id_range()
ModelRangeManager::get_contiguous_node_id_range() uses linear search to find the model range to which a given node ID belongs. ModelRangeManager::get_node_id() does essentially the same thing but uses binary search and returns the model ID instead of a modelrange object.
Questions:
- Can not one method be based on the other?
- Should we use binary search for both?
- Does the C++ standard library provide a binary search implementation we could use?
Issue automatically marked stale!