Refactor `algorithms.hpp` (#1354)
* Refactor the functions from `algorithms.hpp`: - `mean`: moved to `profile/meter_manager.cpp` - `make_index`: moved to `util/index.hpp` - `is_strictly_monotonic_increasing`: moved to `/backends/gpu/forest.hpp` - `has_contiguous_compartments`: moved to `/backends/gpu/forest.hpp`. - `branches`: moved to `/backends/gpu/forest.hpp`. - `expand_branches`: moved to `/backends/gpu/forest.hpp`. - `tree_reduce`: moved to `/backends/gpu/forest.hpp`. - `is_minimal_degree`: moved to `tree.hpp`. - `child_count`: moved to `tree.hpp`. - `in_interval`: not used, deleted. - `is_strictly_monotonic_decreasing`: not used, deleted. - `all_positive`: not used, deleted. - `all_negative`: not used, deleted. - `find_branch`: not used, deleted. - `is_unique`: not used, deleted. - `binary_find`: not used, deleted. * Remove `make_parent_index` from `tree.hpp`: not used. * Replace `make_index` usages with `make_partition`. * Add unit tests to `test_forest.cpp`, `test_tree.cpp` and `test_index.cpp`.
Showing
- arbor/algorithms.hpp 0 additions, 341 deletionsarbor/algorithms.hpp
- arbor/backends/gpu/forest.cpp 2 additions, 3 deletionsarbor/backends/gpu/forest.cpp
- arbor/backends/gpu/forest.hpp 147 additions, 0 deletionsarbor/backends/gpu/forest.hpp
- arbor/backends/gpu/matrix_state_fine.hpp 0 additions, 1 deletionarbor/backends/gpu/matrix_state_fine.hpp
- arbor/backends/multicore/multi_event_stream.hpp 0 additions, 1 deletionarbor/backends/multicore/multi_event_stream.hpp
- arbor/communication/communicator.cpp 1 addition, 2 deletionsarbor/communication/communicator.cpp
- arbor/communication/mpi.hpp 10 additions, 8 deletionsarbor/communication/mpi.hpp
- arbor/profile/meter_manager.cpp 8 additions, 5 deletionsarbor/profile/meter_manager.cpp
- arbor/tree.cpp 5 additions, 5 deletionsarbor/tree.cpp
- arbor/tree.hpp 46 additions, 40 deletionsarbor/tree.hpp
- arbor/util/maputil.hpp 0 additions, 1 deletionarbor/util/maputil.hpp
- test/unit/CMakeLists.txt 2 additions, 1 deletiontest/unit/CMakeLists.txt
- test/unit/test_algorithms.cpp 0 additions, 771 deletionstest/unit/test_algorithms.cpp
- test/unit/test_forest.cpp 242 additions, 0 deletionstest/unit/test_forest.cpp
- test/unit/test_fvm_lowered.cpp 0 additions, 1 deletiontest/unit/test_fvm_lowered.cpp
- test/unit/test_index.cpp 131 additions, 0 deletionstest/unit/test_index.cpp
- test/unit/test_matrix_cpuvsgpu.cpp 0 additions, 1 deletiontest/unit/test_matrix_cpuvsgpu.cpp
- test/unit/test_matrix_gpu.cpp 0 additions, 1 deletiontest/unit/test_matrix_gpu.cpp
- test/unit/test_tree.cpp 66 additions, 4 deletionstest/unit/test_tree.cpp
Please register or sign in to comment