[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Scalars (`ap_scalar.h')

datatype: ap_scalar_discr_t
 
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;
Discriminant indicating the underlying type of a scalar number.

datatype: ap_scalar_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;
A scalar number is either a double, or a multi-precision rational, as implemented by GMP.

Initializing scalars  
Assigning scalars  
Converting scalars  
Comparing scalars  
Other operations on scalars  



This document was generated on September, 10 2009 using texi2html