struct rgpot::nlist::ViewΒΆ

Non-owning view of a structure-of-arrays neighbour table. shift is empty or 3 entries per pair, vector is empty or 3, mask is one byte per pair (0xff for a pair list; bits 0..3 for a cluster of four). The spans are invalidated by the next rebuild of the table that owns them.

#include <NeighbourList.hpp>
 
struct View {
    // fields
 
    std::span<const std::int32_t> first;
    std::span<const std::int32_t> second;
    std::span<const std::int32_t> shift;
    std::span<const double> vector;
    std::span<const double> distance;
    std::span<const std::uint8_t> mask;
};