carl  24.04
Computer ARithmetic Library
carl::FloatConv< T1, T2 > Struct Template Reference

Struct which holds the conversion operator for any two instanciations of FLOAT_T with different underlying floating point implementations. More...

#include <FLOAT_T.h>

Public Member Functions

FLOAT_T< T1 > operator() (const FLOAT_T< T2 > &_op2) const
 Conversion operator for conversion of two instanciations of FLOAT_T with different underlying floating point implementations. More...
 

Detailed Description

template<typename T1, typename T2>
struct carl::FloatConv< T1, T2 >

Struct which holds the conversion operator for any two instanciations of FLOAT_T with different underlying floating point implementations.

Note that this conversion introduces loss of precision, as it uses the to_double() method and the corresponding double constructor from the target type.

Definition at line 45 of file FLOAT_T.h.

Member Function Documentation

◆ operator()()

template<typename T1 , typename T2 >
FLOAT_T<T1> carl::FloatConv< T1, T2 >::operator() ( const FLOAT_T< T2 > &  _op2) const
inline

Conversion operator for conversion of two instanciations of FLOAT_T with different underlying floating point implementations.

Parameters
_op2The source instanciation (T2)
Returns
returns an instanciation with different floating point implementation (T1)

Definition at line 53 of file FLOAT_T.h.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: