in case of high dimensions shift vector converter More...
in case of high dimensions shift vector converter
In case of high-dimensions the number of shift vectors explode, this class handle such case
Definition at line 20 of file shift_vect_converter.hpp.
#include <shift_vect_converter.hpp>
Public Member Functions | |
| void | generateShiftVectors (const Box< dim, T > &domain, size_t(&bc)[dim], openfpm::vector< Point< dim, T >, Memory, layout_base > &shifts) |
| Here we generare the shift vectors for the low dimension case. | |
| void | Initialize (size_t(&bc)[dim]) |
| Initialize. | |
| size_t | linId_hd (const comb< dim > &cmb) |
| linearize the combination in case of high dimension | |
| size_t | linId_ld (const comb< dim > &cmb) |
| linearize the combination in case of low dimensions | |
| size_t | linId (const comb< dim > &cmb) |
| linearize the combination in case of high dimensions | |
Private Member Functions | |
| void | generateShiftVectors_ld (const Box< dim, T > &domain, size_t(&bc)[dim], openfpm::vector< Point< dim, T >, Memory, layout_base > &shifts) |
| Here we generare the shift vectors for the low dimension case. | |
| void | generateShiftVectors_hd (const Box< dim, T > &domain, size_t(&bc)[dim], openfpm::vector< Point< dim, T >, Memory, layout_base > &shifts) |
| Here we generare the shift vectors for the high dimension case. | |
Private Attributes | |
| size_t | red_shift_v [dim] |
| Indicate which indexes are non_periodic. | |
| size_t | tmp [dim] |
| int | dim_r = 0 |
|
inline |
Here we generare the shift vectors for the low dimension case.
| domain | box that describe the domain |
Definition at line 128 of file shift_vect_converter.hpp.
|
inlineprivate |
Here we generare the shift vectors for the high dimension case.
| domain | box that describe the domain |
Definition at line 73 of file shift_vect_converter.hpp.
|
inlineprivate |
Here we generare the shift vectors for the low dimension case.
| domain | box that describe the domain |
Definition at line 36 of file shift_vect_converter.hpp.
|
inline |
Initialize.
| bc | boundary conditions |
Definition at line 142 of file shift_vect_converter.hpp.
|
inline |
linearize the combination in case of high dimensions
| cmb | combination |
Definition at line 188 of file shift_vect_converter.hpp.
|
inline |
linearize the combination in case of high dimension
| cmb | combination |
Definition at line 160 of file shift_vect_converter.hpp.
|
inline |
linearize the combination in case of low dimensions
| cmb | combination |
Definition at line 178 of file shift_vect_converter.hpp.
|
private |
Definition at line 29 of file shift_vect_converter.hpp.
|
private |
Indicate which indexes are non_periodic.
Definition at line 23 of file shift_vect_converter.hpp.
|
private |
Definition at line 26 of file shift_vect_converter.hpp.