Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
shammath::SymTensorCollection< T, 1, 2 > Struct Template Reference

Public Member Functions

template<class Tacc >
void store (Tacc &&acc, u32 offset) const
 
SymTensorCollection< T, 1, 2 > & operator*= (const T scal)
 
SymTensorCollection< T, 1, 2 > & operator+= (const SymTensorCollection< T, 1, 2 > other)
 
SymTensorCollection< T, 1, 2 > operator- (const SymTensorCollection< T, 1, 2 > &other) const
 

Static Public Member Functions

static SymTensorCollection from_vec (const sycl::vec< T, 3 > &v)
 
static SymTensorCollection zeros ()
 
template<class Tacc >
static SymTensorCollection load (Tacc &&acc, u32 offset)
 

Public Attributes

SymTensor3d_1< T > t1
 
SymTensor3d_2< T > t2
 

Static Public Attributes

static constexpr u32 num_component = SymTensor3d_1<T>::compo_cnt + SymTensor3d_2<T>::compo_cnt
 
static constexpr u32 offset_t1 = 0
 
static constexpr u32 offset_t2 = offset_t1 + SymTensor3d_1<T>::compo_cnt
 

Detailed Description

template<class T>
struct shammath::SymTensorCollection< T, 1, 2 >

Definition at line 954 of file symtensor_collections.hpp.

Member Function Documentation

◆ from_vec()

template<class T >
static SymTensorCollection shammath::SymTensorCollection< T, 1, 2 >::from_vec ( const sycl::vec< T, 3 > &  v)
inlinestatic

Definition at line 965 of file symtensor_collections.hpp.

◆ load()

template<class T >
template<class Tacc >
static SymTensorCollection shammath::SymTensorCollection< T, 1, 2 >::load ( Tacc &&  acc,
u32  offset 
)
inlinestatic

Definition at line 1003 of file symtensor_collections.hpp.

◆ operator*=()

template<class T >
SymTensorCollection< T, 1, 2 > & shammath::SymTensorCollection< T, 1, 2 >::operator*= ( const T  scal)
inline

Definition at line 1009 of file symtensor_collections.hpp.

◆ operator+=()

template<class T >
SymTensorCollection< T, 1, 2 > & shammath::SymTensorCollection< T, 1, 2 >::operator+= ( const SymTensorCollection< T, 1, 2 >  other)
inline

Definition at line 1017 of file symtensor_collections.hpp.

◆ operator-()

template<class T >
SymTensorCollection< T, 1, 2 > shammath::SymTensorCollection< T, 1, 2 >::operator- ( const SymTensorCollection< T, 1, 2 > &  other) const
inline

Definition at line 1025 of file symtensor_collections.hpp.

◆ store()

template<class T >
template<class Tacc >
void shammath::SymTensorCollection< T, 1, 2 >::store ( Tacc &&  acc,
u32  offset 
) const
inline

Definition at line 996 of file symtensor_collections.hpp.

◆ zeros()

template<class T >
static SymTensorCollection shammath::SymTensorCollection< T, 1, 2 >::zeros ( )
inlinestatic

Definition at line 980 of file symtensor_collections.hpp.

Member Data Documentation

◆ num_component

template<class T >
constexpr u32 shammath::SymTensorCollection< T, 1, 2 >::num_component = SymTensor3d_1<T>::compo_cnt + SymTensor3d_2<T>::compo_cnt
staticconstexpr

Definition at line 959 of file symtensor_collections.hpp.

◆ offset_t1

template<class T >
constexpr u32 shammath::SymTensorCollection< T, 1, 2 >::offset_t1 = 0
staticconstexpr

Definition at line 962 of file symtensor_collections.hpp.

◆ offset_t2

template<class T >
constexpr u32 shammath::SymTensorCollection< T, 1, 2 >::offset_t2 = offset_t1 + SymTensor3d_1<T>::compo_cnt
staticconstexpr

Definition at line 963 of file symtensor_collections.hpp.

◆ t1

template<class T >
SymTensor3d_1<T> shammath::SymTensorCollection< T, 1, 2 >::t1

Definition at line 956 of file symtensor_collections.hpp.

◆ t2

template<class T >
SymTensor3d_2<T> shammath::SymTensorCollection< T, 1, 2 >::t2

Definition at line 957 of file symtensor_collections.hpp.


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