|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Transform mapping a pivot type onto its inexact counterpart. More...
#include <rexlib/core/operation/type_rule/inexact_type_transform.hpp>
Classes | |
| struct | apply_type |
| Apply the transform to a native pivot type. More... | |
| struct | apply_type< float16_t > |
| struct | apply_type< float32_t > |
| struct | apply_type< float64_t > |
| struct | apply_type< std::complex< T > > |
Public Types | |
| using | domain_type = domain_union< boolean_type_domain, arithmetic_type_domain > |
Static Public Member Functions | |
| static const char * | get_relation () noexcept |
| Get a fragment naming the mapping, for diagnostics. | |
| static numerical_type | apply (numerical_type type) noexcept |
| Apply the transform to a pivot type. | |
Transform mapping a pivot type onto its inexact counterpart.
Booleans and integers map onto float64, while floating point and complex types are left untouched. Models operations whose result is not representable in the operand's own type, such as a mean.
This is the one transform that decides a type rather than deriving it: an integral operand yields float64, and no exact type would do.
|
staticnoexcept |
Apply the transform to a pivot type.
| type | The pivot type. |
Get a fragment naming the mapping, for diagnostics.