Allocating linear expressions of level 0
- Function: ap_linexpr0_t* ap_linexpr0_alloc (ap_linexpr_discr_t lin_discr, size_t size);
- Allocate a linear expressions with coefficients by default of type
SCALAR and DOUBLE. If sparse representation, corresponding new
dimensions are initialized with
AP_DIM_MAX
.
- Function: void ap_linexpr0_realloc (ap_linexpr0_t* e, size_t size)
- Change the dimensions of the array in e. If new coefficients
are added, their type is of type SCALAR and DOUBLE. If sparse
representation, corresponding new dimensions are initialized with
AP_DIM_MAX
.
- Function: void ap_linexpr0_minimize (ap_linexpr0_t* e)
- Reduce the coefficients (transform intervals into scalars when
possible). In case of sparse representation, also remove zero
coefficients.
- Function: void ap_linexpr0_free (ap_linexpr0_t* e);
- Deallocate the linear expression.
- Function: ap_linexpr0_t* ap_linexpr0_copy (ap_linexpr0_t* e)
- Duplication.
- Function: void ap_linexpr0_fprint (FILE* stream, ap_linexpr0_t* e, char** name_of_dim);
- Print the linear expression on stream stream, using the array
name_of_dim to convert dimensions to variable names. If
name_of_dim is
NULL
, the dimensions are named
x0,x1,...
.
This document was generated
on September, 10 2009
using texi2html