Hi Aaron,
I was curious regarding the choice of the struct
using NeighborList = knncolle::NeighborList<Index_, Float_>;
Which is a std::vector<std::vector<std::pair<Index_, Float_>>>
Over a simple std::pair<Matrix<Index_>, Matrix<Float_>> of appropriate dimensions.
Maybe it was as result of porting the code, but I would expect the latter option to have better cache locality and maybe even slightly better memory usage.
Hi Aaron,
I was curious regarding the choice of the struct
Which is a
std::vector<std::vector<std::pair<Index_, Float_>>>Over a simple
std::pair<Matrix<Index_>, Matrix<Float_>>of appropriate dimensions.Maybe it was as result of porting the code, but I would expect the latter option to have better cache locality and maybe even slightly better memory usage.