Peano
Loading...
Searching...
No Matches
CompressedFloat.h File Reference
#include <cstdint>
#include <concepts>
Include dependency graph for CompressedFloat.h:

Go to the source code of this file.

Data Structures

class  tarch::la::CompressedFloat< T, BITS, ALIGNMENT >
 

Namespaces

namespace  std
 STL namespace.
 
namespace  tarch
 Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
 
namespace  tarch::la
 My collection of tiny vector operations.
 

Concepts

concept  NUM
 

Macros

#define STRCAT_INNER(a, b)   a##b
 
#define STRCAT(a, b)   STRCAT_INNER(a, b)
 
#define UNARY_PREFIX_OP(op)
 
#define UNARY_POSTFIX_OP(op)
 
#define ARITHMETIC_OP(op)
 
#define SELF_ARITHMETIC_OP(op)
 
#define COMPARISON_OP(op)
 
#define SELF_COMPARISON_OP(op)
 

Functions

template<typename CF >
CF std::abs (const CF &cf)
 

Macro Definition Documentation

◆ ARITHMETIC_OP

#define ARITHMETIC_OP ( op)
Value:
template<NUM X> \
CompressedFloat &operator STRCAT(op, =) (const X &scalar) { \
this->__set(this->__get() op scalar); \
return *this; \
} \
\
template<NUM X> \
T operator op (const X &scalar) const { \
return this->__get() op scalar; \
} \
\
template<NUM X> \
friend X& operator STRCAT(op, =) (X &scalar, const CompressedFloat cf) { \
scalar STRCAT(op, =) cf.__get(); \
return scalar; \
} \
\
template<NUM X> \
friend X operator op (const X &scalar, const CompressedFloat cf) { \
return scalar op cf.__get(); \
} \
#define STRCAT(a, b)

Definition at line 98 of file CompressedFloat.h.

◆ COMPARISON_OP

#define COMPARISON_OP ( op)
Value:
template<NUM X> \
bool operator op (const X &scalar) const { \
return this->__get() op scalar; \
} \
\
template<NUM X> \
friend bool operator op (const X &scalar, const CompressedFloat &cf) { \
return scalar op cf.__get(); \
} \

Definition at line 149 of file CompressedFloat.h.

◆ SELF_ARITHMETIC_OP

#define SELF_ARITHMETIC_OP ( op)
Value:
CompressedFloat &operator STRCAT(op, =) (const CompressedFloat &scalar) { \
this->__set(this->__get() op scalar.__get()); \
return *this; \
} \
\
T operator op (const CompressedFloat &scalar) const { \
return this->__get() op scalar; \
} \

Definition at line 128 of file CompressedFloat.h.

◆ SELF_COMPARISON_OP

#define SELF_COMPARISON_OP ( op)
Value:
bool operator op (const CompressedFloat &cf) const { \
return this->__get() op cf.__get(); \
} \

Definition at line 169 of file CompressedFloat.h.

◆ STRCAT

#define STRCAT ( a,
b )   STRCAT_INNER(a, b)

Definition at line 8 of file CompressedFloat.h.

◆ STRCAT_INNER

#define STRCAT_INNER ( a,
b )   a##b

Definition at line 7 of file CompressedFloat.h.

◆ UNARY_POSTFIX_OP

#define UNARY_POSTFIX_OP ( op)
Value:
const CompressedFloat operator op(std::int32_t) { \
auto oldThis = CompressedFloat(*this); \
this->operator op(); \
return oldThis; \
} \

Definition at line 82 of file CompressedFloat.h.

◆ UNARY_PREFIX_OP

#define UNARY_PREFIX_OP ( op)
Value:
CompressedFloat &operator op() { \
auto f = this->__get(); \
f op; \
this->__set(f); \
return *this; \
} \
double f(double p4, double p1, double p5, double rho1, double rho5, double gamma)

Definition at line 71 of file CompressedFloat.h.