Clarify/rewrite pw_elements zip. (#1515)
* Use a struct with meaningful field names instead of a `std::pair` to represent elements in `pw_elements`. * Describe explicitly the semantics of the zip operation. * Update implementation and add unit tests to suit. * Add comment explaining `pw_elements::equal_range`. * Remove parameter names from unused parameters in `impl::piecewise_pairify`.
Showing
- arbor/fvm_layout.cpp 1 addition, 1 deletionarbor/fvm_layout.cpp
- arbor/fvm_layout.hpp 1 addition, 1 deletionarbor/fvm_layout.hpp
- arbor/morph/embed_pwlin.cpp 6 additions, 6 deletionsarbor/morph/embed_pwlin.cpp
- arbor/util/piecewise.hpp 110 additions, 86 deletionsarbor/util/piecewise.hpp
- test/unit/test_piecewise.cpp 110 additions, 35 deletionstest/unit/test_piecewise.cpp
Please register or sign in to comment