42 #define MALLOC(s,t,f) malloc(s)
43 #define FREE(p,t,f) free(p)
58 for(v=v_in; v!=NULL; v=v->
succ) {
84 for(elem = v; elem!=NULL; elem = nelem) {
117 (void)
fprintf(stderr,
"vect_new: Out of memory space\n");
173 va_start(the_args, val);
178 val = va_arg(the_args,
Value);
211 va_start (the_args, val);
216 val = va_arg(the_args,
Value);
248 fprintf(stderr,
"[vect_copy] out of memory space\n");
278 fprintf(stderr,
"[base_dup] out of memory space\n");
308 fprintf(stderr,
"[base_copy] out of memory space\n");
float a2sf[2] __attribute__((aligned(16)))
USER generates a user error (i.e., non fatal) by printing the given MSG according to the FMT.
void const char const char const int
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Pvecteur vect_chain(Pvecteur v_in, Variable var, Value coeff)
package vecteur routines internes au package
Variable variable_of_rank()
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
le type des coefficients dans les vecteurs: Value est defini dans le package arithmetique
#define TCST
VARIABLE REPRESENTANT LE TERME CONSTANT.
#define VECTEUR_NUL
DEFINITION DU VECTEUR NUL.
struct Svecteur * Pvecteur
void * Variable
arithmetique is a requirement for vecteur, but I do not want to inforce it in all pips files....
#define base_dimension(b)
#define BASE_NULLE
MACROS SUR LES BASES.
#define VECTEUR
package sur les vecteurs creux et les bases
#define MALLOC(s, t, f)
INTLIBRARY.
Pvecteur vect_make(Pvecteur v, Variable var, Value val,...)
Pvecteur vect_make(v, [var, val,]* 0, val) Pvecteur v; // may be NULL, use assigne anyway Variable va...
Pbase vect_copy(Pvecteur b)
direct duplication.
Pvecteur vect_dup(Pvecteur v_in)
Pvecteur vect_dup(Pvecteur v_in): duplication du vecteur v_in; allocation de et copie dans v_out;.
Pbase base_dup(Pbase b)
Pbase base_dup(Pbase b) Note: this function changes the value of the pointer.
void dbg_vect_rm(Pvecteur v, char __attribute__((unused)) *f)
void dbg_vect_rm(Pvecteur v, char * f): desallocation d'un vecteur avec marquage de la fonction provo...
Pvecteur vect_make_1D(Value a, Variable x, Value b)
Generate a sparse vector a x + b TCST.
Pvecteur vect_new(Variable var, Value coeff)
Pvecteur vect_new(Variable var,Value coeff): allocation d'un vecteur colineaire au vecteur de base va...
Pvecteur vect_make_dense(Pbase b, Value val,...)
Allocate a new vector v whose coefficient are given by the list of values ad whose dimension is given...
Pbase base_copy(Pbase b)
Direct duplication.
void vect_rm(Pvecteur v)
void vect_rm(Pvecteur v): desallocation des couples de v;
void vect_add_elem(Pvecteur *pvect, Variable var, Value val)
void vect_add_elem(Pvecteur * pvect, Variable var, Value val): addition d'un vecteur colineaire au ve...