Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammath::SymTensorCollection< T, 0, 4 > Struct Template Reference
Collaboration diagram for shammath::SymTensorCollection< T, 0, 4 >:

Public Member Functions

template<class Tacc>
void store (Tacc &&acc, u32 offset) const
SymTensorCollection< T, 0, 4 > & operator*= (const T scal)
SymTensorCollection< T, 0, 4 > & operator+= (const SymTensorCollection< T, 0, 4 > other)
SymTensorCollection< T, 0, 4 > operator- (const SymTensorCollection< T, 0, 4 > &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

t0
SymTensor3d_1< T > t1
SymTensor3d_2< T > t2
SymTensor3d_3< T > t3
SymTensor3d_4< T > t4

Static Public Attributes

static constexpr u32 num_component
static constexpr u32 offset_t0 = 0
static constexpr u32 offset_t1 = 1
static constexpr u32 offset_t2 = offset_t1 + SymTensor3d_1<T>::compo_cnt
static constexpr u32 offset_t3 = offset_t2 + SymTensor3d_2<T>::compo_cnt
static constexpr u32 offset_t4 = offset_t3 + SymTensor3d_3<T>::compo_cnt

Detailed Description

template<class T>
struct shammath::SymTensorCollection< T, 0, 4 >

Definition at line 180 of file symtensor_collections.hpp.

Member Function Documentation

◆ from_vec()

template<class T>
SymTensorCollection shammath::SymTensorCollection< T, 0, 4 >::from_vec ( const sycl::vec< T, 3 > & v)
inlinestatic

Definition at line 197 of file symtensor_collections.hpp.

◆ load()

template<class T>
template<class Tacc>
SymTensorCollection shammath::SymTensorCollection< T, 0, 4 >::load ( Tacc && acc,
u32 offset )
inlinestatic

Definition at line 270 of file symtensor_collections.hpp.

◆ operator*=()

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

Definition at line 279 of file symtensor_collections.hpp.

◆ operator+=()

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

Definition at line 290 of file symtensor_collections.hpp.

◆ operator-()

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

Definition at line 301 of file symtensor_collections.hpp.

◆ store()

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

Definition at line 261 of file symtensor_collections.hpp.

◆ zeros()

template<class T>
SymTensorCollection shammath::SymTensorCollection< T, 0, 4 >::zeros ( )
inlinestatic

Definition at line 241 of file symtensor_collections.hpp.

Member Data Documentation

◆ num_component

template<class T>
u32 shammath::SymTensorCollection< T, 0, 4 >::num_component
staticconstexpr
Initial value:
= 1 + SymTensor3d_1<T>::compo_cnt + SymTensor3d_2<T>::compo_cnt
+ SymTensor3d_3<T>::compo_cnt + SymTensor3d_4<T>::compo_cnt

Definition at line 187 of file symtensor_collections.hpp.

◆ offset_t0

template<class T>
u32 shammath::SymTensorCollection< T, 0, 4 >::offset_t0 = 0
staticconstexpr

Definition at line 191 of file symtensor_collections.hpp.

◆ offset_t1

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

Definition at line 192 of file symtensor_collections.hpp.

◆ offset_t2

template<class T>
u32 shammath::SymTensorCollection< T, 0, 4 >::offset_t2 = offset_t1 + SymTensor3d_1<T>::compo_cnt
staticconstexpr

Definition at line 193 of file symtensor_collections.hpp.

◆ offset_t3

template<class T>
u32 shammath::SymTensorCollection< T, 0, 4 >::offset_t3 = offset_t2 + SymTensor3d_2<T>::compo_cnt
staticconstexpr

Definition at line 194 of file symtensor_collections.hpp.

◆ offset_t4

template<class T>
u32 shammath::SymTensorCollection< T, 0, 4 >::offset_t4 = offset_t3 + SymTensor3d_3<T>::compo_cnt
staticconstexpr

Definition at line 195 of file symtensor_collections.hpp.

◆ t0

template<class T>
T shammath::SymTensorCollection< T, 0, 4 >::t0

Definition at line 181 of file symtensor_collections.hpp.

◆ t1

template<class T>
SymTensor3d_1<T> shammath::SymTensorCollection< T, 0, 4 >::t1

Definition at line 182 of file symtensor_collections.hpp.

◆ t2

template<class T>
SymTensor3d_2<T> shammath::SymTensorCollection< T, 0, 4 >::t2

Definition at line 183 of file symtensor_collections.hpp.

◆ t3

template<class T>
SymTensor3d_3<T> shammath::SymTensorCollection< T, 0, 4 >::t3

Definition at line 184 of file symtensor_collections.hpp.

◆ t4

template<class T>
SymTensor3d_4<T> shammath::SymTensorCollection< T, 0, 4 >::t4

Definition at line 185 of file symtensor_collections.hpp.


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