[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
For information:
typedef struct ap_generator1_t { ap_generator0_t generator0; ap_environment_t* env; } ap_generator1_t; |
Generators are meant to be manipulated freely via their components. Creating the ray generator x+2/3y
and then freeing it can be done with
ap_generator1_t gen = ap_generator1_make(AP_GEN_RAY, ap_linexpr1_alloc(env,AP_LINEXPR_SPARSE,2)); ap_generator1_set_list(&gen, AP_COEFF_S_INT, 1, "x", AP_COEFF_S_FRAC, 2,3, "y", AP_END); ap_generator1_clear(&gen); |
typedef struct ap_generator1_array_t { ap_generator0_array_t generator0_array; ap_environment_t* env; } ap_generator1_array_t; |
Arrays at level 1 cannot be accessed directly, for example by writing
array->p[i]
, but should instead be accessed with functions
ap_generator1_array_get
and ap_generator1_array_set
.
Allocating generators of level 1 Access to generators of level 1 Change of dimensions and permutations of generators of level 1 Arrays of generators of level 1