UniformPointSampling models a uniform discretization of the provided continuous dimension. More...
#include <uniform_point_sampling.hpp>
Classes | |
class | Impl |
Public Types | |
using | continuous_dimension_type = CDim |
using | continuous_element_type = Coordinate< CDim > |
using | discrete_dimension_type = UniformPointSampling |
Static Public Member Functions | |
template<class DDim > | |
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim > > | init (Coordinate< CDim > a, Coordinate< CDim > b, DiscreteVector< DDim > n) |
Construct a Impl<Kokkos::HostSpace> and associated discrete_domain_type from a segment \([a, b] \subset [a, +\infty[\) and a number of points n . | |
template<class DDim > | |
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > | init_ghosted (Coordinate< CDim > a, Coordinate< CDim > b, DiscreteVector< DDim > n, DiscreteVector< DDim > n_ghosts_before, DiscreteVector< DDim > n_ghosts_after) |
Construct a uniform DiscreteDomain from a segment \([a, b] \subset [a, +\infty[\) and a number of points n . | |
template<class DDim > | |
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > | init_ghosted (Coordinate< CDim > a, Coordinate< CDim > b, DiscreteVector< DDim > n, DiscreteVector< DDim > n_ghosts) |
Construct a uniform DiscreteDomain from a segment \([a, b] \subset [a, +\infty[\) and a number of points n . | |
UniformPointSampling models a uniform discretization of the provided continuous dimension.
Definition at line 35 of file uniform_point_sampling.hpp.
Definition at line 38 of file uniform_point_sampling.hpp.
using ddc::UniformPointSampling< CDim >::continuous_element_type = Coordinate<CDim> |
Definition at line 40 of file uniform_point_sampling.hpp.
using ddc::UniformPointSampling< CDim >::discrete_dimension_type = UniformPointSampling |
Definition at line 43 of file uniform_point_sampling.hpp.
|
inlinestatic |
Construct a Impl<Kokkos::HostSpace> and associated discrete_domain_type from a segment \([a, b] \subset [a, +\infty[\) and a number of points n
.
Note that there is no guarantee that either the boundaries a or b will be exactly represented in the sampling. One should expect usual floating point rounding errors.
a | coordinate of the first point of the domain |
b | coordinate of the last point of the domain |
n | number of points to map on the segment \([a, b]\) including a & b |
Definition at line 132 of file uniform_point_sampling.hpp.
|
inlinestatic |
Construct a uniform DiscreteDomain
from a segment \([a, b] \subset [a, +\infty[\) and a number of points n
.
Note that there is no guarantee that either the boundaries a or b will be exactly represented in the sampling. One should expect usual floating point rounding errors.
a | coordinate of the first point of the domain |
b | coordinate of the last point of the domain |
n | the number of points to map the segment \([a, b]\) including a & b |
n_ghosts_before | number of additional "ghost" points before the segment |
n_ghosts_after | number of additional "ghost" points after the segment |
Definition at line 160 of file uniform_point_sampling.hpp.
|
inlinestatic |
Construct a uniform DiscreteDomain
from a segment \([a, b] \subset [a, +\infty[\) and a number of points n
.
Note that there is no guarantee that either the boundaries a or b will be exactly represented in the sampling. One should expect usual floating point rounding errors.
a | coordinate of the first point of the domain |
b | coordinate of the last point of the domain |
n | the number of points to map the segment \([a, b]\) including a & b |
n_ghosts | number of additional "ghost" points before and after the segment |
Definition at line 206 of file uniform_point_sampling.hpp.