Assigning scalars
- Function: void ap_scalar_set (ap_scalar_t* rop, ap_scalar_t* op)
- Set the value of rop from op.
- Function: void ap_scalar_set_mpq (ap_scalar_t* rop, mpq_t mpq)
-
- Function: void ap_scalar_set_int (ap_scalar_t* rop, long int i)
- Function: void ap_scalar_set_frac (ap_scalar_t* rop, long int i, unsigned long int j)
- Change the type of rop to MPQ and set its value to
resp. mpq, i, and i/j.
- Function: void ap_scalar_set_double (ap_scalar_t* rop, double k)
- Change the type of rop to DOUBLE and set its value to k.
- Function: void ap_scalar_set_infty (ap_scalar_t* rop, int sgn)
- Set the value of rop to sgn*infinity. Keep the type of the
rop.
- Function: ap_scalar_t* ap_scalar_alloc_set (ap_scalar_t* op)
-
- Function: ap_scalar_t* ap_scalar_alloc_set_mpq (mpq_t mpq)
-
- Function: ap_scalar_t* ap_scalar_alloc_set_double (double k)
- Combined allocation and assignement.
This document was generated
by Bertrand Jeannet on December, 22 2009
using texi2html