DDC 0.4.2
Loading...
Searching...
No Matches
ddc::NonUniformPointSampling< CDim > Class Template Reference

NonUniformPointSampling models a non-uniform discretization of the CDim segment \([a, b]\). More...

#include <non_uniform_point_sampling.hpp>

Inheritance diagram for ddc::NonUniformPointSampling< CDim >:
Inheritance graph
Collaboration diagram for ddc::NonUniformPointSampling< CDim >:
Collaboration graph

Classes

class  Impl
 

Public Types

using continuous_dimension_type = CDim
 
using discrete_dimension_type = NonUniformPointSampling
 

Static Public Member Functions

template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim > > init (InputRange const &non_uniform_points)
 Construct an Impl<Kokkos::HostSpace> and associated discrete_domain_type from a range containing the points coordinates along the DDim dimension.
 
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > init_ghosted (InputRange const &domain_r, InputRange const &pre_ghost_r, InputRange const &post_ghost_r)
 Construct 4 non-uniform DiscreteDomain and an Impl<Kokkos::HostSpace> from 3 ranges containing the points coordinates along the DDim dimension.
 

Detailed Description

template<class CDim>
class ddc::NonUniformPointSampling< CDim >

NonUniformPointSampling models a non-uniform discretization of the CDim segment \([a, b]\).

Definition at line 38 of file non_uniform_point_sampling.hpp.

Member Typedef Documentation

◆ continuous_dimension_type

template<class CDim >
using ddc::NonUniformPointSampling< CDim >::continuous_dimension_type = CDim

Definition at line 41 of file non_uniform_point_sampling.hpp.

◆ discrete_dimension_type

template<class CDim >
using ddc::NonUniformPointSampling< CDim >::discrete_dimension_type = NonUniformPointSampling

Definition at line 49 of file non_uniform_point_sampling.hpp.

Member Function Documentation

◆ init()

template<class CDim >
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim > > ddc::NonUniformPointSampling< CDim >::init ( InputRange const non_uniform_points)
inlinestatic

Construct an Impl<Kokkos::HostSpace> and associated discrete_domain_type from a range containing the points coordinates along the DDim dimension.

Parameters
non_uniform_pointsa range (std::vector, std::array, ...) containing the coordinates of the points of the domain.

Definition at line 139 of file non_uniform_point_sampling.hpp.

◆ init_ghosted()

template<class CDim >
template<class DDim , class InputRange >
static std::tuple< typename DDim::template Impl< DDim, Kokkos::HostSpace >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim >, DiscreteDomain< DDim > > ddc::NonUniformPointSampling< CDim >::init_ghosted ( InputRange const domain_r,
InputRange const pre_ghost_r,
InputRange const post_ghost_r 
)
inlinestatic

Construct 4 non-uniform DiscreteDomain and an Impl<Kokkos::HostSpace> from 3 ranges containing the points coordinates along the DDim dimension.

Parameters
domain_ra range containing the coordinates of the points of the main domain along the DDim position
pre_ghost_ra range containing the positions of the ghost points before the main domain the DDim position
post_ghost_ra range containing the positions of the ghost points after the main domain the DDim position

Definition at line 161 of file non_uniform_point_sampling.hpp.


The documentation for this class was generated from the following file: