#include <cstdint>
#include <concepts>
Go to the source code of this file.
|
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.
|
|
|
template<typename CF > |
CF | std::abs (const CF &cf) |
|
◆ 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; \
} \
\
friend X& operator
STRCAT(op, =) (X &scalar, const CompressedFloat cf) { \
scalar
STRCAT(op, =) cf.__get(); \
return scalar; \
} \
\
friend X operator op (const X &scalar, const CompressedFloat cf) { \
return scalar op cf.__get(); \
} \
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; \
} \
\
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
◆ STRCAT_INNER
#define STRCAT_INNER |
( |
| a, |
|
|
| b ) a##b |
◆ 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(); \
return *this; \
} \
double f(double p4, double p1, double p5, double rho1, double rho5, double gamma)
Definition at line 71 of file CompressedFloat.h.