Flat Compressed-Row-Storage (CRS) neighbor list.
More...
#include <VerletListHelpers.h>
|
| size_t | size () const |
| | Number of particles tracked by this list.
|
| |
| size_t | count (const size_t i) const |
| | Number of neighbors of particle i.
|
| |
| const size_t * | begin (const size_t i) const |
| | Pointer to the first neighbor index of particle i (const).
|
| |
| size_t * | begin (const size_t i) |
| | Pointer to the first neighbor index of particle i (mutable).
|
| |
| std::span< const size_t > | getNeighbors (const size_t i) const |
| | Returns a span of the neighbors of particle i.
|
| |
|
|
std::vector< size_t > | offsets |
| | size N+1
|
| |
|
std::vector< size_t, AlignedAllocator< size_t > > | indices |
| | flat neighbor indices
|
| |
template<class Particle_T>
struct autopas::VerletListHelpers< Particle_T >::NeighborListCRS
Flat Compressed-Row-Storage (CRS) neighbor list.
For particle i:
- neighbor count: offsets[i+1] - offsets[i]
- neighbor slice: indices.data() + offsets[i]
◆ begin() [1/2]
template<class Particle_T >
Pointer to the first neighbor index of particle i (mutable).
- Parameters
-
- Returns
- pointer to the first neighbor index
◆ begin() [2/2]
template<class Particle_T >
Pointer to the first neighbor index of particle i (const).
- Parameters
-
- Returns
- pointer to the first neighbor index
◆ count()
template<class Particle_T >
Number of neighbors of particle i.
- Parameters
-
- Returns
- number of neighbors
◆ getNeighbors()
template<class Particle_T >
Returns a span of the neighbors of particle i.
- Parameters
-
- Returns
- span of neighbor indices
◆ size()
template<class Particle_T >
Number of particles tracked by this list.
- Returns
- number of particles
The documentation for this struct was generated from the following file: