Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
sham::VectorProperties< T > Struct Template Reference

Public Types

using component_type = T
 

Static Public Member Functions

static constexpr T get_min ()
 
static constexpr T get_max ()
 
static constexpr T get_inf ()
 
static constexpr T get_zero ()
 

Static Public Attributes

static constexpr u32 dimension = 1
 
static constexpr bool is_float_based
 
static constexpr bool is_uint_based
 
static constexpr bool is_int_based
 
static constexpr bool has_info = is_float_based || is_int_based || is_uint_based
 

Detailed Description

template<class T>
struct sham::VectorProperties< T >

Definition at line 25 of file vec.hpp.

Member Typedef Documentation

◆ component_type

template<class T >
using sham::VectorProperties< T >::component_type = T

Definition at line 26 of file vec.hpp.

Member Function Documentation

◆ get_inf()

template<class T >
static constexpr T sham::VectorProperties< T >::get_inf ( )
inlinestaticconstexpr

Definition at line 46 of file vec.hpp.

◆ get_max()

template<class T >
static constexpr T sham::VectorProperties< T >::get_max ( )
inlinestaticconstexpr

Definition at line 45 of file vec.hpp.

◆ get_min()

template<class T >
static constexpr T sham::VectorProperties< T >::get_min ( )
inlinestaticconstexpr

Definition at line 41 of file vec.hpp.

◆ get_zero()

template<class T >
static constexpr T sham::VectorProperties< T >::get_zero ( )
inlinestaticconstexpr

Definition at line 47 of file vec.hpp.

Member Data Documentation

◆ dimension

template<class T >
constexpr u32 sham::VectorProperties< T >::dimension = 1
staticconstexpr

Definition at line 27 of file vec.hpp.

◆ has_info

template<class T >
constexpr bool sham::VectorProperties< T >::has_info = is_float_based || is_int_based || is_uint_based
staticconstexpr

Definition at line 39 of file vec.hpp.

◆ is_float_based

template<class T >
constexpr bool sham::VectorProperties< T >::is_float_based
staticconstexpr
Initial value:
= std::is_same<T, f16>::value
|| std::is_same<T, f32>::value
|| std::is_same<T, f64>::value

Definition at line 29 of file vec.hpp.

◆ is_int_based

template<class T >
constexpr bool sham::VectorProperties< T >::is_int_based
staticconstexpr
Initial value:
= std::is_same<T, i8>::value || std::is_same<T, i16>::value
|| std::is_same<T, i32>::value || std::is_same<T, i64>::value

Definition at line 35 of file vec.hpp.

◆ is_uint_based

template<class T >
constexpr bool sham::VectorProperties< T >::is_uint_based
staticconstexpr
Initial value:
= std::is_same<T, u8>::value || std::is_same<T, u16>::value
|| std::is_same<T, u32>::value || std::is_same<T, u64>::value

Definition at line 32 of file vec.hpp.


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