cmuparlay / ParlayANN

A library of algorithms for approximate nearest neighbor search in high dimensions, along with a set of useful tools for designing such algorithms.
MIT License
88 stars 21 forks source link

Manual Constructor of PointRange #14

Open yushangdi opened 6 months ago

yushangdi commented 6 months ago

It would be helpful if PointRange has a manual constructor, e.g. something like:

  PointRange(const size_t num_points, const unsigned int dims,
             const unsigned int aligned_dims, T* values)
      : n(num_points), dims(dims), aligned_dims(aligned_dims), values(values) {}
yushangdi commented 6 months ago

Also it would be helpful if size(), dimension() and ()[] are marked with const.