Skip to content

NeighborList vs Index + Distance Matrices #25

@JiminyCricket411

Description

@JiminyCricket411

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions