| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
typedef enum ap_scalar_discr_t {
AP_SCALAR_DOUBLE, /* floating-point with double */
AP_SCALAR_MPQ /* rational with multi-precision GMP */
} ap_scalar_discr_t;
|
typedef struct ap_scalar_t {
ap_scalar_discr_t discr;
union {
double dbl;
mpq_ptr mpq; /* +infty coded by 1/0, -infty coded by -1/0 */
} val;
} ap_scalar_t;
|
Initializing scalars Assigning scalars Converting scalars Comparing scalars Other operations on scalars