Template Function exafmm_t::sort_bodies(Node<T> *const, Body<T> *const, int, int, std::vector<int>&, std::vector<int>&)

Function Documentation

template<typename T>
void exafmm_t::sort_bodies(Node<T> *const node, Body<T> *const bodies, int begin, int end, std::vector<int> &size, std::vector<int> &offsets)

Sort a chunk of bodies in a node according to their octants.

Template Parameters

T – Target’s value type (real or complex)

Parameters
  • node – The node that bodies are in

  • bodies – The bodies to be sorted

  • buffer – The sorted bodies

  • begin – Begin index of the chunk

  • end – End index of the chunk

  • size – Vector of the counts of bodies in each octant after

  • offsets – Vector of the offsets of sorted bodies in each octant