SimiLie
Loading...
Searching...
No Matches
sil::tensor::TensorAccessor< Index > Class Template Reference

#include <tensor_impl.hpp>

Collaboration diagram for sil::tensor::TensorAccessor< Index >:
Collaboration graph

Public Types

using discrete_domain_type = ddc::DiscreteDomain<Index...>
 
using discrete_element_type = ddc::DiscreteElement<Index...>
 
using natural_domain_t
 

Public Member Functions

KOKKOS_FUNCTION constexpr TensorAccessor ()
 

Static Public Member Functions

static KOKKOS_FUNCTION constexpr natural_domain_t natural_domain ()
 
static KOKKOS_FUNCTION constexpr discrete_domain_type domain ()
 
static KOKKOS_FUNCTION constexpr discrete_domain_type access_domain ()
 
template<class... CDim>
static KOKKOS_FUNCTION constexpr discrete_element_type access_element ()
 
template<class... NaturalIndex>
static KOKKOS_FUNCTION constexpr discrete_element_type access_element (ddc::DiscreteElement< NaturalIndex... > natural_elem)
 
template<class... MemIndex>
static KOKKOS_FUNCTION constexpr natural_domain_t::discrete_element_type canonical_natural_element (ddc::DiscreteElement< MemIndex... > mem_elem)
 

Detailed Description

template<TensorIndex... Index>
class sil::tensor::TensorAccessor< Index >

Definition at line 283 of file tensor_impl.hpp.

Member Typedef Documentation

◆ discrete_domain_type

template<TensorIndex... Index>
using sil::tensor::TensorAccessor< Index >::discrete_domain_type = ddc::DiscreteDomain<Index...>

Definition at line 288 of file tensor_impl.hpp.

◆ discrete_element_type

template<TensorIndex... Index>
using sil::tensor::TensorAccessor< Index >::discrete_element_type = ddc::DiscreteElement<Index...>

Definition at line 290 of file tensor_impl.hpp.

◆ natural_domain_t

template<TensorIndex... Index>
using sil::tensor::TensorAccessor< Index >::natural_domain_t
Initial value:
sil::misc::cartesian_prod_t<std::conditional_t<
ddc::DiscreteDomain<Index>,
typename Index::subindices_domain_t>...>
convert_type_seq_to_t< ddc::DiscreteDomain, typename detail::CartesianProd< Domains... >::type > cartesian_prod_t

Definition at line 292 of file tensor_impl.hpp.

Constructor & Destructor Documentation

◆ TensorAccessor()

template<TensorIndex... Index>
KOKKOS_FUNCTION constexpr sil::tensor::TensorAccessor< Index >::TensorAccessor ( )
explicitconstexpr

Definition at line 345 of file tensor_impl.hpp.

Member Function Documentation

◆ natural_domain()

template<TensorIndex... Index>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::natural_domain_t sil::tensor::TensorAccessor< Index >::natural_domain ( )
staticconstexpr

Definition at line 364 of file tensor_impl.hpp.

◆ domain()

template<TensorIndex... Index>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::discrete_domain_type sil::tensor::TensorAccessor< Index >::domain ( )
staticconstexpr

Definition at line 371 of file tensor_impl.hpp.

◆ access_domain()

template<TensorIndex... Index>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::discrete_domain_type sil::tensor::TensorAccessor< Index >::access_domain ( )
staticconstexpr

Definition at line 380 of file tensor_impl.hpp.

◆ access_element() [1/2]

template<TensorIndex... Index>
template<class... CDim>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::discrete_element_type sil::tensor::TensorAccessor< Index >::access_element ( )
staticconstexpr

Definition at line 390 of file tensor_impl.hpp.

◆ access_element() [2/2]

template<TensorIndex... Index>
template<class... NaturalIndex>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::discrete_element_type sil::tensor::TensorAccessor< Index >::access_element ( ddc::DiscreteElement< NaturalIndex... > natural_elem)
staticconstexpr

Definition at line 398 of file tensor_impl.hpp.

◆ canonical_natural_element()

template<TensorIndex... Index>
template<class... MemIndex>
KOKKOS_FUNCTION constexpr TensorAccessor< Index... >::natural_domain_t::discrete_element_type sil::tensor::TensorAccessor< Index >::canonical_natural_element ( ddc::DiscreteElement< MemIndex... > mem_elem)
staticconstexpr

Definition at line 409 of file tensor_impl.hpp.


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