Skip to content

Struct TempLat::OneType

ClassList > TempLat > OneType

A class which represents one. Attempt to simplify derivative expressions. More...

  • #include <onetype.h>

Public Static Attributes

Type Name
constexpr int value = 1

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-zerotype

@vocab-summary Compile-time one. Multiplying by it returns the operand unchanged.

Public Static Attributes Documentation

variable value

constexpr int TempLat::OneType::value;

Public Functions Documentation

function operator double

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

function operator float

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

Public Static Functions Documentation

function eval

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

function toString

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


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