Skip to content

Struct TempLat::HalfType

ClassList > TempLat > HalfType

A class which implement 1/2 as a type. Useful for squareroots. More...

  • #include <halftype.h>

Public Static Attributes

Type Name
constexpr double value = 0.5

Public Functions

Type Name
operator double () const
operator float () const

Public Static Functions

Type Name
DEVICE_INLINE_FUNCTION constexpr auto eval (const IDX &... i)
std::string toString ()

Detailed Description

Unit test: ctest -R test-halftype

@vocab-summary Compile-time one half, so that sqrt can be written as an exact power.

Public Static Attributes Documentation

variable value

constexpr double TempLat::HalfType::value;

Public Functions Documentation

function operator double

inline explicit TempLat::HalfType::operator double () const

function operator float

inline explicit TempLat::HalfType::operator float () const

Public Static Functions Documentation

function eval

template<typename... IDX>
static inline DEVICE_INLINE_FUNCTION constexpr auto TempLat::HalfType::eval (
    const IDX &... i
) 

function toString

static inline std::string TempLat::HalfType::toString () 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/algebra/constants/halftype.h