|
Hermes
|
Represents a numeric interval that supports interval arithmetic. More...
#include <interval.h>
Inheritance diagram for hermes::Interval< T >:Static Public Member Functions | |
| static HERMES_DEVICE_CALLABLE Interval | withRadius (real_t c, real_t r) |
| Constructs interval from center and radius. | |
Static Public Member Functions inherited from hermes::MathElement< T, 2u > | |
| static constexpr u64 | componentCount () |
| Gets the number of dimensional components. | |
| static constexpr u64 | numericTypeSizeInBytes () |
| Gets the size in bytes of underlying data type. | |
| static MemoryDumper::RegionLayout | memoryDumpLayout () |
| Gets memory layout. | |
Public Attributes | |
| T | low {0} |
| lowest interval value | |
| T | high {0} |
| greatest interval value | |
Additional Inherited Members | |
Static Public Attributes inherited from hermes::MathElement< T, 2u > | |
| static T | numeric_data |
| Underlying data type. | |
Represents a numeric interval that supports interval arithmetic.
|
inline |
Constructs from center value.
| v |
|
inline |
Construct from interval values.
| l | |
| h |
|
inline |
Gets interval center value.
|
inline |
Checks if this interval contains v.
| v |
|
inline |
Checks if interval contains a single value.
|
inlineexplicit |
Gets interval center value.
|
inline |
Uses interval arithmetic multiplication.
| i |
|
inline |
Uses interval arithmetic addition.
| i |
|
inline |
Negates interval.
|
inline |
Uses interval arithmetic subtraction.
| i |
|
inline |
Uses interval arithmetic division.
| i |
|
inline |
Gets interval radius.
|
inline |
Computes arithmetic interval square.
|
inline |
Computes arithmetic interval square root.
|
inline |
Gets interval diameter.
|
inlinestatic |
Constructs interval from center and radius.
| c | |
| r |