Bugfix: Do not add the cost vector of a R1 reduced node to pbqp matrix row/column...
[libfirm] / vector.h
1 #ifndef KAPS_VECTOR_H
2 #define KAPS_VECTOR_H
3
4 #include "vector_t.h"
5
6 num pbqp_add(num x, num y);
7
8 vector *vector_alloc(pbqp *pbqp, unsigned length);
9
10 /* Copy the given vector. */
11 vector *vector_copy(pbqp *pbqp, vector *v);
12
13 /* sum += summand */
14 void vector_add(vector *sum, vector *summand);
15
16 void vector_set(vector *vec, unsigned index, num value);
17
18 #if EXT_GRS_DEBUG
19 void vector_set_description(vector *vec, unsigned index, char *name);
20 #endif
21
22 void vector_add_value(vector *vec, num value);
23
24 void vector_add_matrix_col(vector *vec, pbqp_matrix *mat, unsigned col_index);
25 void vector_add_matrix_row(vector *vec, pbqp_matrix *mat, unsigned row_index);
26
27 num vector_get_min(vector *vec);
28 unsigned vector_get_min_index(vector *vec);
29
30 #endif /* KAPS_VECTOR_H */