SimiLie
Loading...
Searching...
No Matches
sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed > Struct Template Reference

Lazy tensor sampling on its stored domain and its extrapolated exterior. More...

#include <tensor_with_extrapolation_rules.hpp>

Collaboration diagram for sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >:
Collaboration graph

Public Types

using discrete_domain_type
 
using discrete_element_type = typename discrete_domain_type::discrete_element_type
 
using accessor_t = tensor_accessor_for_domain_t<discrete_domain_type>
 
using indices_domain_t = typename accessor_t::discrete_domain_type
 
using non_indices_domain_t
 
using natural_domain_t = misc::cartesian_prod_t<non_indices_domain_t, typename accessor_t::natural_domain_t>
 
using memory_space = typename Field::memory_space
 
using element_type = typename Field::element_type
 

Public Member Functions

KOKKOS_FUNCTION discrete_domain_type domain () const
 
KOKKOS_FUNCTION non_indices_domain_t non_indices_domain () const
 
KOKKOS_FUNCTION indices_domain_t indices_domain () const
 
KOKKOS_FUNCTION discrete_domain_type access_domain () const
 
KOKKOS_FUNCTION natural_domain_t natural_domain () const
 
template<class... Dimensions>
KOKKOS_FUNCTION discrete_element_type access_element () const
 
template<class... Elements>
KOKKOS_FUNCTION discrete_element_type access_element (Elements... elements) const
 
template<class... Elements>
KOKKOS_FUNCTION natural_domain_t::discrete_element_type canonical_natural_element (Elements... elements) const
 
template<class Element >
KOKKOS_FUNCTION auto operator[] (Element elem) const
 
template<class... Elements>
KOKKOS_FUNCTION double mem (Elements const &... elements) const
 
template<class... Elements>
KOKKOS_FUNCTION double operator() (Elements const &... elements) const
 
template<class... Elements>
KOKKOS_FUNCTION double get (Elements const &... elements) const
 
template<class Element >
KOKKOS_FUNCTION auto value (typename Field::non_indices_domain_t domain, Element elem) const
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr accessor_t accessor ()
 

Public Attributes

Field field
 
Rules rules
 
Fixed fixed = {}
 

Friends

template<class F , class R , class S >
struct TensorWithExtrapolationRules
 

Detailed Description

template<class Field, class Rules, class Fixed = misc::SignedDiscreteElement<>>
struct sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >

Lazy tensor sampling on its stored domain and its extrapolated exterior.

Important
This operator and documentation is fully AI-generated. Coordinates remain signed until the face rules resolve them to a stored sample. value(domain, element) returns spatial basis weights without reading field values. This view performs no differentiation. Slices retain fixed coordinates and the original policies, so donor mappings and corner weights remain valid even when a slice fixes an exterior coordinate. Computed samples are read-only values; the caller updates the stored field through its Tensor. The view borrows tensor allocations through its field and rule handles; their owners must outlive it and synchronize updates before sampling.

Definition at line 26 of file tensor_with_extrapolation_rules.hpp.

Member Typedef Documentation

◆ discrete_domain_type

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::discrete_domain_type
Initial value:
ddc::DiscreteDomain,
ddc::type_seq_remove_t<
ddc::to_type_seq_t<typename Field::discrete_domain_type>,
typename detail::ToTypeSeq< T >::type to_type_seq_t
typename detail::ConvertTypeSeqTo< T, Seq >::type convert_type_seq_to_t

Definition at line 28 of file tensor_with_extrapolation_rules.hpp.

◆ discrete_element_type

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::discrete_element_type = typename discrete_domain_type::discrete_element_type

Definition at line 33 of file tensor_with_extrapolation_rules.hpp.

◆ accessor_t

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::accessor_t = tensor_accessor_for_domain_t<discrete_domain_type>

Definition at line 34 of file tensor_with_extrapolation_rules.hpp.

◆ indices_domain_t

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::indices_domain_t = typename accessor_t::discrete_domain_type

Definition at line 35 of file tensor_with_extrapolation_rules.hpp.

◆ non_indices_domain_t

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::non_indices_domain_t
Initial value:
ddc::DiscreteDomain,
ddc::type_seq_remove_t<
ddc::to_type_seq_t<discrete_domain_type>,
ddc::to_type_seq_t<indices_domain_t>>>

Definition at line 36 of file tensor_with_extrapolation_rules.hpp.

◆ natural_domain_t

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::natural_domain_t = misc::cartesian_prod_t<non_indices_domain_t, typename accessor_t::natural_domain_t>

Definition at line 41 of file tensor_with_extrapolation_rules.hpp.

◆ memory_space

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::memory_space = typename Field::memory_space

Definition at line 42 of file tensor_with_extrapolation_rules.hpp.

◆ element_type

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
using sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::element_type = typename Field::element_type

Definition at line 43 of file tensor_with_extrapolation_rules.hpp.

Member Function Documentation

◆ accessor()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
static KOKKOS_FUNCTION constexpr accessor_t sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::accessor ( )
inlinestaticconstexpr

Definition at line 48 of file tensor_with_extrapolation_rules.hpp.

◆ domain()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
KOKKOS_FUNCTION discrete_domain_type sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::domain ( ) const
inline

Definition at line 52 of file tensor_with_extrapolation_rules.hpp.

◆ non_indices_domain()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
KOKKOS_FUNCTION non_indices_domain_t sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::non_indices_domain ( ) const
inline

Definition at line 56 of file tensor_with_extrapolation_rules.hpp.

◆ indices_domain()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
KOKKOS_FUNCTION indices_domain_t sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::indices_domain ( ) const
inline

Definition at line 60 of file tensor_with_extrapolation_rules.hpp.

◆ access_domain()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
KOKKOS_FUNCTION discrete_domain_type sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::access_domain ( ) const
inline

Definition at line 64 of file tensor_with_extrapolation_rules.hpp.

◆ natural_domain()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
KOKKOS_FUNCTION natural_domain_t sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::natural_domain ( ) const
inline

Definition at line 68 of file tensor_with_extrapolation_rules.hpp.

◆ access_element() [1/2]

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Dimensions>
KOKKOS_FUNCTION discrete_element_type sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::access_element ( ) const
inline

Definition at line 73 of file tensor_with_extrapolation_rules.hpp.

◆ access_element() [2/2]

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Elements>
KOKKOS_FUNCTION discrete_element_type sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::access_element ( Elements... elements) const
inline

Definition at line 78 of file tensor_with_extrapolation_rules.hpp.

◆ canonical_natural_element()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Elements>
KOKKOS_FUNCTION natural_domain_t::discrete_element_type sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::canonical_natural_element ( Elements... elements) const
inline

Definition at line 86 of file tensor_with_extrapolation_rules.hpp.

◆ operator[]()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class Element >
KOKKOS_FUNCTION auto sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::operator[] ( Element elem) const
inline

Definition at line 96 of file tensor_with_extrapolation_rules.hpp.

◆ mem()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Elements>
KOKKOS_FUNCTION double sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::mem ( Elements const &... elements) const
inline

Definition at line 127 of file tensor_with_extrapolation_rules.hpp.

◆ operator()()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Elements>
KOKKOS_FUNCTION double sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::operator() ( Elements const &... elements) const
inline

Definition at line 140 of file tensor_with_extrapolation_rules.hpp.

◆ get()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class... Elements>
KOKKOS_FUNCTION double sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::get ( Elements const &... elements) const
inline

Definition at line 153 of file tensor_with_extrapolation_rules.hpp.

◆ value()

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class Element >
KOKKOS_FUNCTION auto sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::value ( typename Field::non_indices_domain_t domain,
Element elem ) const
inline

Definition at line 166 of file tensor_with_extrapolation_rules.hpp.

Friends And Related Symbol Documentation

◆ TensorWithExtrapolationRules

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
template<class F , class R , class S >
friend struct TensorWithExtrapolationRules
friend

Definition at line 173 of file tensor_with_extrapolation_rules.hpp.

Member Data Documentation

◆ field

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
Field sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::field

Definition at line 44 of file tensor_with_extrapolation_rules.hpp.

◆ rules

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
Rules sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::rules

Definition at line 45 of file tensor_with_extrapolation_rules.hpp.

◆ fixed

template<class Field , class Rules , class Fixed = misc::SignedDiscreteElement<>>
Fixed sil::tensor::TensorWithExtrapolationRules< Field, Rules, Fixed >::fixed = {}

Definition at line 46 of file tensor_with_extrapolation_rules.hpp.


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