SimiLie
Loading...
Searching...
No Matches
sil::tensor Namespace Reference

Classes

struct  ClampExtrapolationRule
 Spatial closure evaluated independently of the stored field values. More...
 
struct  ConstantScalarExtrapolationRule
 
struct  Contravariant
 
struct  ContravariantCharacter
 
struct  Covariant
 
struct  CovariantCharacter
 
struct  Dummy
 
struct  ExternalDomainBoundaryMap
 Map samples through an aligned interface, in any number of dimensions. More...
 
struct  ExternalDomainExtrapolationRule
 Continue tensor values into a specified boundary of another tensor domain. More...
 
class  ExtrapolationRules
 Select an extrapolation rule independently on each side of each dimension. More...
 
struct  InverseMetric
 
struct  MetricIndex1
 
struct  MetricIndex2
 
struct  MetricProd
 
struct  NaturalScalarExtrapolationRule
 
class  OwningTensor
 
class  OwningTensor< Tensor< ElementType, DomainType, LayoutStridedPolicy, MemorySpace >, Storage >
 
class  PeriodicExtrapolationRule
 Continue a whole tensor periodically across a half-open logical domain. More...
 
struct  PrescribedScalarExtrapolationRule
 
struct  prime
 
struct  ScalarIndex
 
class  Tensor
 
class  Tensor< ElementType, ddc::DiscreteDomain< DDim... >, LayoutStridedPolicy, MemorySpace >
 Tensor class. More...
 
class  TensorAccessor
 
struct  TensorAntisymmetricIndex
 
struct  TensorDiagonalIndex
 
struct  TensorFullIndex
 
struct  TensorIdentityIndex
 
struct  TensorLeviCivitaIndex
 
struct  TensorLorentzianSignIndex
 
struct  TensorNaturalIndex
 
struct  TensorScalingIndex
 Store a scalar multiple of the identity using one coefficient. More...
 
struct  TensorSymmetricIndex
 
struct  TensorWeightedLeviCivitaIndex
 
struct  TensorWithExtrapolationRules
 Lazy tensor sampling on its stored domain and its extrapolated exterior. More...
 
struct  TensorYoungTableauIndex
 
struct  ZeroExtrapolationRule
 

Concepts

concept  TensorIndexConcept
 
concept  NaturalTensorIndexConcept
 
concept  YoungTableauTensorIndexConcept
 
concept  ExtrapolationRuleConcept
 
concept  ExtrapolationRulesConcept
 
concept  TensorIndex
 
concept  TensorNatIndex
 

Typedefs

template<class MetricIndex >
using metric_index_1 = ddc::type_seq_element_t<0, ddc::to_type_seq_t<typename MetricIndex::subindices_domain_t>>
 
template<class MetricIndex >
using metric_index_2 = ddc::type_seq_element_t<1, ddc::to_type_seq_t<typename MetricIndex::subindices_domain_t>>
 
template<misc::Specialization< ddc::DiscreteDomain > Dom, TensorNatIndex Index1, TensorNatIndex Index2>
using relabelize_metric_in_domain_t
 
template<misc::Specialization< Tensor > TensorType, TensorNatIndex Index1, TensorNatIndex Index2>
using relabelize_metric_t
 
template<TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2>
using metric_prod_domain_t
 
template<misc::Specialization< ddc::DiscreteDomain > NonMetricDom, TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2, class LayoutStridedPolicy , class MemorySpace >
using metric_prod_t
 
template<misc::Specialization< Tensor > MetricType>
using invert_metric_t
 
template<TensorIndex Index>
using natural_domain_t = typename detail::NaturalDomainType<Index>::type
 
template<misc::Specialization< ddc::DiscreteDomain > Dom>
using tensor_accessor_for_domain_t = detail::TensorAccessorForDomain<Dom>::type
 
template<misc::Specialization< ddc::DiscreteDomain > Dom1, misc::Specialization< ddc::DiscreteDomain > Dom2>
using natural_tensor_prod_domain_t = detail::NaturalTensorProdDomain<Dom1, Dom2>::type
 
template<class T >
using to_tensor_antisymmetric_index_t = typename detail::ToTensorAntisymmetricIndex<T>::type
 
template<class T >
using lower_t = detail::Lower<T>::type
 
template<class T >
using upper_t = detail::Upper<T>::type
 
template<class T >
using swap_character_t = detail::SwapCharacter<T>::type
 
template<class Index >
using uncharacterize_t = detail::Uncharacterize<Index>::type
 
template<misc::Specialization< Tensor > TensorType>
using uncharacterize_tensor_t
 
template<std::size_t Dimension, std::size_t Rank>
using dummy_index_t
 
template<TensorNatIndex Index>
using second = prime<Index, 2>
 
template<misc::Specialization< ddc::TypeSeq > Indices, std::size_t I = 1>
using primes = detail::Primes<Indices, I>::type
 
template<misc::Specialization< ddc::TypeSeq > Indices>
using seconds = primes<Indices, 2>
 
template<class T , TensorIndex OldIndex, TensorIndex NewIndex>
using relabelize_index_in_t = detail::RelabelizeIndexInType<T, OldIndex, NewIndex>::type
 
template<misc::Specialization< Tensor > TensorType, TensorIndex OldIndex, TensorIndex NewIndex>
using relabelize_index_of_t = detail::RelabelizeIndexOfType<TensorType, OldIndex, NewIndex>::type
 
template<class T , class OldIndices , class NewIndices >
using relabelize_indices_in_t
 
template<misc::Specialization< Tensor > TensorType, misc::Specialization< ddc::TypeSeq > OldIndices, misc::Specialization< ddc::TypeSeq > NewIndices>
using relabelize_indices_of_t = detail::RelabelizeIndicesOfType<TensorType, OldIndices, NewIndices>::type
 
template<class T >
using subindices_domain_t = detail::SubindicesDomain<T>::type
 

Enumerations

enum class  BoundarySide {
  Lower ,
  Upper
}
 

Functions

template<misc::Specialization< Kokkos::View > ViewType>
KOKKOS_FUNCTION ViewType::value_type determinant (const ViewType &matrix)
 
template<misc::Specialization< Tensor > TensorType>
TensorType::element_type determinant (TensorType const &tensor)
 
template<class NeighborTensor , class Dimension >
 ExternalDomainExtrapolationRule (NeighborTensor, ExternalDomainBoundaryMap< Dimension >, double=0.0, double=1.0) -> ExternalDomainExtrapolationRule< Dimension, NeighborTensor >
 
template<class NeighborTensor , class Dimension , class TargetRule >
 ExternalDomainExtrapolationRule (NeighborTensor, ExternalDomainBoundaryMap< Dimension >, double, double, TargetRule) -> ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >
 
template<class LeftRule , class RightRule , misc::Specialization< std::pair >... OtherRulePairs>
 ExtrapolationRules (std::pair< LeftRule, RightRule >, OtherRulePairs...) -> ExtrapolationRules< std::pair< LeftRule, RightRule >, OtherRulePairs... >
 
template<std::size_t N, misc::NotSpecialization< ExtrapolationRules > ExtrapolationRule>
KOKKOS_FUNCTION auto make_extrapolation_rules (ExtrapolationRule rule)
 Broadcast a rule to both sides of all N non-index dimensions.
 
template<class TensorType , misc::NotSpecialization< ExtrapolationRules > ExtrapolationRule>
KOKKOS_FUNCTION auto make_extrapolation_rules (TensorType const &, ExtrapolationRule rule)
 
template<TensorNatIndex Index1, TensorNatIndex Index2, class Dom >
KOKKOS_FUNCTION constexpr relabelize_metric_in_domain_t< Dom, Index1, Index2 > relabelize_metric_in_domain (Dom metric_dom)
 
template<TensorNatIndex Index1, TensorNatIndex Index2, misc::Specialization< Tensor > TensorType>
KOKKOS_FUNCTION constexpr relabelize_metric_t< TensorType, Index1, Index2 > relabelize_metric (TensorType const &tensor)
 
template<TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2, misc::Specialization< Tensor > MetricType, class ExecSpace >
metric_prod_t< typename MetricType::non_indices_domain_t, MetricIndex, Indices1, Indices2, typename MetricType::layout_type, typename MetricType::memory_space > fill_metric_prod (ExecSpace const &exec_space, metric_prod_t< typename MetricType::non_indices_domain_t, MetricIndex, Indices1, Indices2, typename MetricType::layout_type, typename MetricType::memory_space > metric_prod, MetricType const &metric)
 
template<misc::Specialization< Tensor > MetricType, misc::Specialization< Tensor > TensorType, class ExecSpace >
relabelize_indices_of_t< TensorType, swap_character_t< detail::non_primes< typename MetricType::accessor_t::natural_domain_t > >, detail::non_primes< typename MetricType::accessor_t::natural_domain_t > > inplace_apply_metric (ExecSpace const &exec_space, TensorType const &tensor, MetricType const &metric_prod)
 
template<TensorIndex MetricIndex, TensorNatIndex... Index1, misc::Specialization< Tensor > MetricType, misc::Specialization< Tensor > TensorType, class ExecSpace >
relabelize_indices_of_t< TensorType, swap_character_t< ddc::TypeSeq< Index1... > >, ddc::TypeSeq< Index1... > > inplace_apply_metric (ExecSpace const &exec_space, TensorType const &tensor, MetricType const &metric)
 
template<TensorIndex MetricIndex, misc::Specialization< Tensor > MetricType, class ExecSpace >
invert_metric_t< MetricType > fill_inverse_metric (ExecSpace const &exec_space, invert_metric_t< MetricType > inv_metric, MetricType const &metric)
 
template<class TensorType , class Storage >
 OwningTensor (TensorType, Storage &&) -> OwningTensor< TensorType, Storage >
 
template<class ElementType , class SupportType , class Allocator >
 Tensor (ddc::Chunk< ElementType, SupportType, Allocator >) -> Tensor< ElementType, SupportType, Kokkos::layout_right, typename Allocator::memory_space >
 
template<class ElementType , class SupportType , class LayoutStridedPolicy , class MemorySpace >
 Tensor (ddc::ChunkSpan< ElementType, SupportType, LayoutStridedPolicy, MemorySpace >) -> Tensor< ElementType, SupportType, LayoutStridedPolicy, MemorySpace >
 
template<class ElementType , class SupportType >
 Tensor (ElementType *, SupportType) -> Tensor< ElementType, SupportType, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space >
 
template<misc::Specialization< ddc::DiscreteDomain > Dom1, misc::Specialization< ddc::DiscreteDomain > Dom2>
natural_tensor_prod_domain_t< Dom1, Dom2 > natural_tensor_prod_domain (Dom1 dom1, Dom2 dom2)
 
template<TensorNatIndex... ProdDDim, TensorNatIndex... DDim1, TensorNatIndex... DDim2, class ElementType , class LayoutStridedPolicy , class MemorySpace >
Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > tensor_prod (Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > const &prod_tensor, Tensor< ElementType, ddc::DiscreteDomain< DDim1... >, LayoutStridedPolicy, MemorySpace > const &tensor1, Tensor< ElementType, ddc::DiscreteDomain< DDim2... >, LayoutStridedPolicy, MemorySpace > const &tensor2)
 
template<misc::Specialization< Tensor > TensorType>
std::ostream & operator<< (std::ostream &os, TensorType const &tensor)
 
template<misc::Specialization< Tensor > TensorType>
KOKKOS_FUNCTION constexpr uncharacterize_tensor_t< TensorType > uncharacterize_tensor (TensorType const &tensor)
 
template<class OldIndex , class NewIndex , class T >
KOKKOS_FUNCTION constexpr relabelize_index_in_t< T, OldIndex, NewIndex > relabelize_index_in (T t)
 
template<TensorIndex OldIndex, TensorIndex NewIndex, class ElementType , class... DDim, class LayoutStridedPolicy , class MemorySpace >
KOKKOS_FUNCTION constexpr relabelize_index_of_t< Tensor< ElementType, ddc::DiscreteDomain< DDim... >, LayoutStridedPolicy, MemorySpace >, OldIndex, NewIndex > relabelize_index_of (Tensor< ElementType, ddc::DiscreteDomain< DDim... >, LayoutStridedPolicy, MemorySpace > const &old_tensor)
 
template<class OldIndices , class NewIndices , class T >
KOKKOS_FUNCTION constexpr relabelize_indices_in_t< T, OldIndices, NewIndices > relabelize_indices_in (T t)
 
template<misc::Specialization< ddc::TypeSeq > OldIndices, misc::Specialization< ddc::TypeSeq > NewIndices, misc::Specialization< Tensor > Tensor>
KOKKOS_FUNCTION constexpr relabelize_indices_of_t< Tensor, OldIndices, NewIndices > relabelize_indices_of (Tensor const &tensor)
 
template<class YoungTableauIndex , class... Id>
tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > compress (tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const &compressed, tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const &tensor)
 
template<class YoungTableauIndex , class... Id>
tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > uncompress (tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const &uncompressed, tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const &tensor)
 
template<class ProdDDims , class Indices1 , class Indices2 >
constexpr void check_tensors_compatibility ()
 
template<class... ProdDDim, class... Index1, class... Index2, class ElementType , class LeftElement , class RightElement , class LayoutStridedPolicy , class MemorySpace >
requires ( std::is_same_v<ElementType, std::remove_const_t<LeftElement>> && std::is_same_v<ElementType, std::remove_const_t<RightElement>> && ((!TensorNatIndex<ProdDDim> || ...) || (!TensorNatIndex<Index2> || ...) || (!TensorNatIndex<Index1> || ...)) )
Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > KOKKOS_FUNCTION tensor_prod (Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > const &prod_tensor, Tensor< LeftElement, ddc::DiscreteDomain< Index1... >, LayoutStridedPolicy, MemorySpace > const &tensor1, Tensor< RightElement, ddc::DiscreteDomain< Index2... >, LayoutStridedPolicy, MemorySpace > const &tensor2)
 
template<class Field , class Rule >
KOKKOS_FUNCTION auto make_tensor_with_extrapolation_rules (Field const &field, Rule rule)
 

Variables

template<class T >
bool constexpr is_covariant_v = detail::IsCovariant<T>::value
 
template<misc::Specialization< ddc::TypeSeq > Seq>
bool constexpr are_covariant_v = detail::AreCovariant<Seq>::value
 
template<class T >
bool constexpr is_contravariant_v = detail::IsContravariant<T>::value
 
template<misc::Specialization< ddc::TypeSeq > Seq>
bool constexpr are_contravariant_v = detail::AreContravariant<Seq>::value
 
template<class T1 , class T2 >
constexpr bool is_same_character_v = detail::IsSameCharacter<T1, T2>::value
 
template<class T1 , class T2 >
constexpr bool are_same_characters_v = detail::AreSameCharacters<T1, T2>::value
 
template<class T1 , class T2 >
constexpr bool are_different_characters_v = detail::AreDifferentCharacters<T1, T2>::value
 

Class Documentation

◆ sil::tensor::ContravariantCharacter

struct sil::tensor::ContravariantCharacter

Definition at line 20 of file character.hpp.

Collaboration diagram for sil::tensor::ContravariantCharacter:
Collaboration graph

◆ sil::tensor::CovariantCharacter

struct sil::tensor::CovariantCharacter

Definition at line 16 of file character.hpp.

Collaboration diagram for sil::tensor::CovariantCharacter:
Collaboration graph

◆ sil::tensor::Dummy

struct sil::tensor::Dummy
template<std::size_t I>
struct sil::tensor::Dummy< I >

Definition at line 17 of file dummy_index.hpp.

Collaboration diagram for sil::tensor::Dummy< I >:
Collaboration graph

◆ sil::tensor::OwningTensor

class sil::tensor::OwningTensor
template<class TensorType, class Storage>
class sil::tensor::OwningTensor< TensorType, Storage >

Definition at line 13 of file owning_tensor.hpp.

Collaboration diagram for sil::tensor::OwningTensor< TensorType, Storage >:
Collaboration graph

◆ sil::tensor::Tensor

class sil::tensor::Tensor
template<class ElementType, class SupportType, class LayoutStridedPolicy, class MemorySpace>
class sil::tensor::Tensor< ElementType, SupportType, LayoutStridedPolicy, MemorySpace >

Definition at line 19 of file tensor/concepts.hpp.

Collaboration diagram for sil::tensor::Tensor< ElementType, SupportType, LayoutStridedPolicy, MemorySpace >:
Collaboration graph

Typedef Documentation

◆ metric_index_1

template<class MetricIndex >
using sil::tensor::metric_index_1 = ddc::type_seq_element_t<0, ddc::to_type_seq_t<typename MetricIndex::subindices_domain_t>>

Definition at line 33 of file metric.hpp.

◆ metric_index_2

template<class MetricIndex >
using sil::tensor::metric_index_2 = ddc::type_seq_element_t<1, ddc::to_type_seq_t<typename MetricIndex::subindices_domain_t>>

Definition at line 41 of file metric.hpp.

◆ relabelize_metric_in_domain_t

template<misc::Specialization< ddc::DiscreteDomain > Dom, TensorNatIndex Index1, TensorNatIndex Index2>
using sil::tensor::relabelize_metric_in_domain_t
Initial value:
Dom,
ddc::TypeSeq<
typename detail::ConvertTypeSeqToMetricIndex1<
typename Index1::type_seq_dimensions>::type,
typename detail::ConvertTypeSeqToMetricIndex2<
typename Index2::type_seq_dimensions>::type>,
ddc::TypeSeq<uncharacterize_t<Index1>, uncharacterize_t<Index2>>>
typename detail::RelabelizeIndicesInType< T, OldIndices, NewIndices >::type relabelize_indices_in_t

Definition at line 70 of file metric.hpp.

◆ relabelize_metric_t

template<misc::Specialization< Tensor > TensorType, TensorNatIndex Index1, TensorNatIndex Index2>
using sil::tensor::relabelize_metric_t
Initial value:
TensorType,
ddc::TypeSeq<
typename detail::ConvertTypeSeqToMetricIndex1<
typename Index1::type_seq_dimensions>::type,
typename detail::ConvertTypeSeqToMetricIndex2<
typename Index2::type_seq_dimensions>::type>,
ddc::TypeSeq<uncharacterize_t<Index1>, uncharacterize_t<Index2>>>
detail::RelabelizeIndicesOfType< TensorType, OldIndices, NewIndices >::type relabelize_indices_of_t

Definition at line 93 of file metric.hpp.

◆ metric_prod_domain_t

template<TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2>
using sil::tensor::metric_prod_domain_t
Initial value:
typename detail::MetricProdDomainType<MetricIndex, Indices1, Indices2>::type

Definition at line 139 of file metric.hpp.

◆ metric_prod_t

template<misc::Specialization< ddc::DiscreteDomain > NonMetricDom, TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2, class LayoutStridedPolicy , class MemorySpace >
using sil::tensor::metric_prod_t
Initial value:
typename detail::MetricProdType<
NonMetricDom,
MetricIndex,
Indices1,
Indices2,
LayoutStridedPolicy,
MemorySpace>::type

Definition at line 236 of file metric.hpp.

◆ invert_metric_t

template<misc::Specialization< Tensor > MetricType>
using sil::tensor::invert_metric_t
Initial value:
MetricType,
ddc::to_type_seq_t<typename MetricType::accessor_t::natural_domain_t>,
swap_character_t<ddc::to_type_seq_t<typename MetricType::accessor_t::natural_domain_t>>>

Definition at line 406 of file metric.hpp.

◆ natural_domain_t

template<TensorIndex Index>
using sil::tensor::natural_domain_t = typename detail::NaturalDomainType<Index>::type

Definition at line 150 of file tensor_impl.hpp.

◆ tensor_accessor_for_domain_t

template<misc::Specialization< ddc::DiscreteDomain > Dom>
using sil::tensor::tensor_accessor_for_domain_t = detail::TensorAccessorForDomain<Dom>::type

Definition at line 342 of file tensor_impl.hpp.

◆ natural_tensor_prod_domain_t

template<misc::Specialization< ddc::DiscreteDomain > Dom1, misc::Specialization< ddc::DiscreteDomain > Dom2>
using sil::tensor::natural_tensor_prod_domain_t = detail::NaturalTensorProdDomain<Dom1, Dom2>::type

Definition at line 819 of file tensor_impl.hpp.

◆ to_tensor_antisymmetric_index_t

template<class T >
using sil::tensor::to_tensor_antisymmetric_index_t = typename detail::ToTensorAntisymmetricIndex<T>::type

Definition at line 239 of file antisymmetric_tensor.hpp.

◆ lower_t

template<class T >
using sil::tensor::lower_t = detail::Lower<T>::type

Definition at line 79 of file character.hpp.

◆ upper_t

template<class T >
using sil::tensor::upper_t = detail::Upper<T>::type

Definition at line 107 of file character.hpp.

◆ swap_character_t

template<class T >
using sil::tensor::swap_character_t = detail::SwapCharacter<T>::type

Definition at line 135 of file character.hpp.

◆ uncharacterize_t

template<class Index >
using sil::tensor::uncharacterize_t = detail::Uncharacterize<Index>::type

Definition at line 173 of file character.hpp.

◆ uncharacterize_tensor_t

template<misc::Specialization< Tensor > TensorType>
using sil::tensor::uncharacterize_tensor_t
Initial value:
TensorType,
ddc::to_type_seq_t<typename TensorType::accessor_t::natural_domain_t>,
uncharacterize_t<ddc::to_type_seq_t<typename TensorType::accessor_t::natural_domain_t>>>

Definition at line 178 of file character.hpp.

◆ dummy_index_t

template<std::size_t Dimension, std::size_t Rank>
using sil::tensor::dummy_index_t
Initial value:
detail::
DummyIndex<std::make_index_sequence<Dimension>, std::make_index_sequence<Rank>>::type

Definition at line 48 of file dummy_index.hpp.

◆ second

template<TensorNatIndex Index>
using sil::tensor::second = prime<Index, 2>

Definition at line 21 of file prime.hpp.

◆ primes

template<misc::Specialization< ddc::TypeSeq > Indices, std::size_t I = 1>
using sil::tensor::primes = detail::Primes<Indices, I>::type

Definition at line 55 of file prime.hpp.

◆ seconds

template<misc::Specialization< ddc::TypeSeq > Indices>
using sil::tensor::seconds = primes<Indices, 2>

Definition at line 58 of file prime.hpp.

◆ relabelize_index_in_t

template<class T , TensorIndex OldIndex, TensorIndex NewIndex>
using sil::tensor::relabelize_index_in_t = detail::RelabelizeIndexInType<T, OldIndex, NewIndex>::type

Definition at line 52 of file relabelization.hpp.

◆ relabelize_index_of_t

template<misc::Specialization< Tensor > TensorType, TensorIndex OldIndex, TensorIndex NewIndex>
using sil::tensor::relabelize_index_of_t = detail::RelabelizeIndexOfType<TensorType, OldIndex, NewIndex>::type

Definition at line 118 of file relabelization.hpp.

◆ relabelize_indices_in_t

template<class T , class OldIndices , class NewIndices >
using sil::tensor::relabelize_indices_in_t
Initial value:
typename detail::RelabelizeIndicesInType<T, OldIndices, NewIndices>::type

Definition at line 216 of file relabelization.hpp.

◆ relabelize_indices_of_t

template<misc::Specialization< Tensor > TensorType, misc::Specialization< ddc::TypeSeq > OldIndices, misc::Specialization< ddc::TypeSeq > NewIndices>
using sil::tensor::relabelize_indices_of_t = detail::RelabelizeIndicesOfType<TensorType, OldIndices, NewIndices>::type

Definition at line 357 of file relabelization.hpp.

◆ subindices_domain_t

template<class T >
using sil::tensor::subindices_domain_t = detail::SubindicesDomain<T>::type

Definition at line 45 of file tensor_prod.hpp.

Enumeration Type Documentation

◆ BoundarySide

enum class sil::tensor::BoundarySide
strong
Enumerator
Lower 
Upper 

Definition at line 17 of file external_domain_extrapolation_rule.hpp.

Function Documentation

◆ determinant() [1/2]

template<misc::Specialization< Kokkos::View > ViewType>
KOKKOS_FUNCTION ViewType::value_type sil::tensor::determinant ( const ViewType & matrix)

Definition at line 16 of file determinant.hpp.

◆ determinant() [2/2]

template<misc::Specialization< Tensor > TensorType>
TensorType::element_type sil::tensor::determinant ( TensorType const & tensor)

Definition at line 22 of file determinant.hpp.

◆ ExternalDomainExtrapolationRule() [1/2]

template<class NeighborTensor , class Dimension >
sil::tensor::ExternalDomainExtrapolationRule ( NeighborTensor ,
ExternalDomainBoundaryMap< Dimension > ,
double = 0.0,
double = 1.0 ) -> ExternalDomainExtrapolationRule< Dimension, NeighborTensor >

◆ ExternalDomainExtrapolationRule() [2/2]

template<class NeighborTensor , class Dimension , class TargetRule >
sil::tensor::ExternalDomainExtrapolationRule ( NeighborTensor ,
ExternalDomainBoundaryMap< Dimension > ,
double ,
double ,
TargetRule  ) -> ExternalDomainExtrapolationRule< Dimension, NeighborTensor, TargetRule >

◆ ExtrapolationRules()

template<class LeftRule , class RightRule , misc::Specialization< std::pair >... OtherRulePairs>
sil::tensor::ExtrapolationRules ( std::pair< LeftRule, RightRule > ,
OtherRulePairs...  ) -> ExtrapolationRules< std::pair< LeftRule, RightRule >, OtherRulePairs... >

◆ make_extrapolation_rules() [1/2]

template<std::size_t N, misc::NotSpecialization< ExtrapolationRules > ExtrapolationRule>
KOKKOS_FUNCTION auto sil::tensor::make_extrapolation_rules ( ExtrapolationRule rule)

Broadcast a rule to both sides of all N non-index dimensions.

Important
This operator and documentation is fully AI-generated.

Each of the 2*N copies retains the supplied rule's state. This factory only accepts single rules. Consumers distinguish single rules from ExtrapolationRules with if constexpr and only convert the former, with N inferred from the tensor domain. An explicitly typed uniform ExtrapolationRules can also be implicitly constructed from its single rule. The overload make_extrapolation_rules(tensor, rule) infers N directly from tensor.non_indices_domain_t.

Definition at line 292 of file extrapolation_rules.hpp.

◆ make_extrapolation_rules() [2/2]

template<class TensorType , misc::NotSpecialization< ExtrapolationRules > ExtrapolationRule>
KOKKOS_FUNCTION auto sil::tensor::make_extrapolation_rules ( TensorType const & ,
ExtrapolationRule rule )

Definition at line 298 of file extrapolation_rules.hpp.

◆ relabelize_metric_in_domain()

template<TensorNatIndex Index1, TensorNatIndex Index2, class Dom >
KOKKOS_FUNCTION constexpr relabelize_metric_in_domain_t< Dom, Index1, Index2 > sil::tensor::relabelize_metric_in_domain ( Dom metric_dom)
constexpr

Definition at line 81 of file metric.hpp.

◆ relabelize_metric()

template<TensorNatIndex Index1, TensorNatIndex Index2, misc::Specialization< Tensor > TensorType>
KOKKOS_FUNCTION constexpr relabelize_metric_t< TensorType, Index1, Index2 > sil::tensor::relabelize_metric ( TensorType const & tensor)
constexpr

Definition at line 103 of file metric.hpp.

◆ fill_metric_prod()

template<TensorIndex MetricIndex, misc::Specialization< ddc::TypeSeq > Indices1, misc::Specialization< ddc::TypeSeq > Indices2, misc::Specialization< Tensor > MetricType, class ExecSpace >
metric_prod_t< typename MetricType::non_indices_domain_t, MetricIndex, Indices1, Indices2, typename MetricType::layout_type, typename MetricType::memory_space > sil::tensor::fill_metric_prod ( ExecSpace const & exec_space,
metric_prod_t< typename MetricType::non_indices_domain_t, MetricIndex, Indices1, Indices2, typename MetricType::layout_type, typename MetricType::memory_space > metric_prod,
MetricType const & metric )

Definition at line 284 of file metric.hpp.

◆ inplace_apply_metric() [1/2]

template<misc::Specialization< Tensor > MetricType, misc::Specialization< Tensor > TensorType, class ExecSpace >
relabelize_indices_of_t< TensorType, swap_character_t< detail::non_primes< typename MetricType::accessor_t::natural_domain_t > >, detail::non_primes< typename MetricType::accessor_t::natural_domain_t > > sil::tensor::inplace_apply_metric ( ExecSpace const & exec_space,
TensorType const & tensor,
MetricType const & metric_prod )

Definition at line 325 of file metric.hpp.

◆ inplace_apply_metric() [2/2]

template<TensorIndex MetricIndex, TensorNatIndex... Index1, misc::Specialization< Tensor > MetricType, misc::Specialization< Tensor > TensorType, class ExecSpace >
relabelize_indices_of_t< TensorType, swap_character_t< ddc::TypeSeq< Index1... > >, ddc::TypeSeq< Index1... > > sil::tensor::inplace_apply_metric ( ExecSpace const & exec_space,
TensorType const & tensor,
MetricType const & metric )

Definition at line 375 of file metric.hpp.

◆ fill_inverse_metric()

template<TensorIndex MetricIndex, misc::Specialization< Tensor > MetricType, class ExecSpace >
invert_metric_t< MetricType > sil::tensor::fill_inverse_metric ( ExecSpace const & exec_space,
invert_metric_t< MetricType > inv_metric,
MetricType const & metric )

Definition at line 506 of file metric.hpp.

◆ OwningTensor()

template<class TensorType , class Storage >
sil::tensor::OwningTensor ( TensorType ,
Storage &&  ) -> OwningTensor< TensorType, Storage >

◆ Tensor() [1/3]

template<class ElementType , class SupportType , class Allocator >
sil::tensor::Tensor ( ddc::Chunk< ElementType, SupportType, Allocator > ) -> Tensor< ElementType, SupportType, Kokkos::layout_right, typename Allocator::memory_space >

◆ Tensor() [2/3]

template<class ElementType , class SupportType , class LayoutStridedPolicy , class MemorySpace >
sil::tensor::Tensor ( ddc::ChunkSpan< ElementType, SupportType, LayoutStridedPolicy, MemorySpace > ) -> Tensor< ElementType, SupportType, LayoutStridedPolicy, MemorySpace >

◆ Tensor() [3/3]

template<class ElementType , class SupportType >
sil::tensor::Tensor ( ElementType * ,
SupportType  ) -> Tensor< ElementType, SupportType, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space >

◆ natural_tensor_prod_domain()

template<misc::Specialization< ddc::DiscreteDomain > Dom1, misc::Specialization< ddc::DiscreteDomain > Dom2>
natural_tensor_prod_domain_t< Dom1, Dom2 > sil::tensor::natural_tensor_prod_domain ( Dom1 dom1,
Dom2 dom2 )

Definition at line 824 of file tensor_impl.hpp.

◆ tensor_prod() [1/2]

template<TensorNatIndex... ProdDDim, TensorNatIndex... DDim1, TensorNatIndex... DDim2, class ElementType , class LayoutStridedPolicy , class MemorySpace >
Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > sil::tensor::tensor_prod ( Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > const & prod_tensor,
Tensor< ElementType, ddc::DiscreteDomain< DDim1... >, LayoutStridedPolicy, MemorySpace > const & tensor1,
Tensor< ElementType, ddc::DiscreteDomain< DDim2... >, LayoutStridedPolicy, MemorySpace > const & tensor2 )

Definition at line 886 of file tensor_impl.hpp.

◆ operator<<()

template<misc::Specialization< Tensor > TensorType>
std::ostream & sil::tensor::operator<< ( std::ostream & os,
TensorType const & tensor )

Definition at line 963 of file tensor_impl.hpp.

◆ uncharacterize_tensor()

template<misc::Specialization< Tensor > TensorType>
KOKKOS_FUNCTION constexpr uncharacterize_tensor_t< TensorType > sil::tensor::uncharacterize_tensor ( TensorType const & tensor)
constexpr

Definition at line 184 of file character.hpp.

◆ relabelize_index_in()

template<class OldIndex , class NewIndex , class T >
KOKKOS_FUNCTION constexpr relabelize_index_in_t< T, OldIndex, NewIndex > sil::tensor::relabelize_index_in ( T t)
constexpr

Definition at line 87 of file relabelization.hpp.

◆ relabelize_index_of()

template<TensorIndex OldIndex, TensorIndex NewIndex, class ElementType , class... DDim, class LayoutStridedPolicy , class MemorySpace >
KOKKOS_FUNCTION constexpr relabelize_index_of_t< Tensor< ElementType, ddc::DiscreteDomain< DDim... >, LayoutStridedPolicy, MemorySpace >, OldIndex, NewIndex > sil::tensor::relabelize_index_of ( Tensor< ElementType, ddc::DiscreteDomain< DDim... >, LayoutStridedPolicy, MemorySpace > const & old_tensor)
constexpr

Definition at line 131 of file relabelization.hpp.

◆ relabelize_indices_in()

template<class OldIndices , class NewIndices , class T >
KOKKOS_FUNCTION constexpr relabelize_indices_in_t< T, OldIndices, NewIndices > sil::tensor::relabelize_indices_in ( T t)
constexpr

Definition at line 267 of file relabelization.hpp.

◆ relabelize_indices_of()

template<misc::Specialization< ddc::TypeSeq > OldIndices, misc::Specialization< ddc::TypeSeq > NewIndices, misc::Specialization< Tensor > Tensor>
KOKKOS_FUNCTION constexpr relabelize_indices_of_t< Tensor, OldIndices, NewIndices > sil::tensor::relabelize_indices_of ( Tensor const & tensor)
constexpr

Definition at line 364 of file relabelization.hpp.

◆ compress()

template<class YoungTableauIndex , class... Id>
tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > sil::tensor::compress ( tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const & compressed,
tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const & tensor )

Definition at line 119 of file young_tableau_tensor.hpp.

◆ uncompress()

template<class YoungTableauIndex , class... Id>
tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > sil::tensor::uncompress ( tensor::Tensor< double, ddc::DiscreteDomain< Id... >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const & uncompressed,
tensor::Tensor< double, ddc::DiscreteDomain< YoungTableauIndex >, Kokkos::layout_right, Kokkos::DefaultHostExecutionSpace::memory_space > const & tensor )

Definition at line 143 of file young_tableau_tensor.hpp.

◆ check_tensors_compatibility()

template<class ProdDDims , class Indices1 , class Indices2 >
void sil::tensor::check_tensors_compatibility ( )
constexpr

Definition at line 95 of file tensor_prod.hpp.

◆ tensor_prod() [2/2]

template<class... ProdDDim, class... Index1, class... Index2, class ElementType , class LeftElement , class RightElement , class LayoutStridedPolicy , class MemorySpace >
requires ( std::is_same_v<ElementType, std::remove_const_t<LeftElement>> && std::is_same_v<ElementType, std::remove_const_t<RightElement>> && ((!TensorNatIndex<ProdDDim> || ...) || (!TensorNatIndex<Index2> || ...) || (!TensorNatIndex<Index1> || ...)) )
Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > KOKKOS_FUNCTION sil::tensor::tensor_prod ( Tensor< ElementType, ddc::DiscreteDomain< ProdDDim... >, LayoutStridedPolicy, MemorySpace > const & prod_tensor,
Tensor< LeftElement, ddc::DiscreteDomain< Index1... >, LayoutStridedPolicy, MemorySpace > const & tensor1,
Tensor< RightElement, ddc::DiscreteDomain< Index2... >, LayoutStridedPolicy, MemorySpace > const & tensor2 )

Definition at line 410 of file tensor_prod.hpp.

◆ make_tensor_with_extrapolation_rules()

template<class Field , class Rule >
KOKKOS_FUNCTION auto sil::tensor::make_tensor_with_extrapolation_rules ( Field const & field,
Rule rule )

Definition at line 198 of file tensor_with_extrapolation_rules.hpp.

Variable Documentation

◆ is_covariant_v

template<class T >
bool constexpr sil::tensor::is_covariant_v = detail::IsCovariant<T>::value
constexpr

Definition at line 214 of file character.hpp.

◆ are_covariant_v

template<misc::Specialization< ddc::TypeSeq > Seq>
bool constexpr sil::tensor::are_covariant_v = detail::AreCovariant<Seq>::value
constexpr

Definition at line 230 of file character.hpp.

◆ is_contravariant_v

template<class T >
bool constexpr sil::tensor::is_contravariant_v = detail::IsContravariant<T>::value
constexpr

Definition at line 253 of file character.hpp.

◆ are_contravariant_v

template<misc::Specialization< ddc::TypeSeq > Seq>
bool constexpr sil::tensor::are_contravariant_v = detail::AreContravariant<Seq>::value
constexpr

Definition at line 269 of file character.hpp.

◆ is_same_character_v

template<class T1 , class T2 >
bool sil::tensor::is_same_character_v = detail::IsSameCharacter<T1, T2>::value
constexpr

Definition at line 304 of file character.hpp.

◆ are_same_characters_v

template<class T1 , class T2 >
bool sil::tensor::are_same_characters_v = detail::AreSameCharacters<T1, T2>::value
constexpr

Definition at line 326 of file character.hpp.

◆ are_different_characters_v

template<class T1 , class T2 >
bool sil::tensor::are_different_characters_v = detail::AreDifferentCharacters<T1, T2>::value
constexpr

Definition at line 355 of file character.hpp.