6 num pbqp_add(num x, num y);
8 vector *vector_alloc(pbqp *pbqp, unsigned length);
10 /* Copy the given vector. */
11 vector *vector_copy(pbqp *pbqp, vector *v);
14 void vector_add(vector *sum, vector *summand);
16 void vector_set(vector *vec, unsigned index, num value);
18 #if KAPS_ENABLE_VECTOR_NAMES
19 void vector_set_description(vector *vec, unsigned index, char *name);
22 void vector_add_value(vector *vec, num value);
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);
27 num vector_get_min(vector *vec);
28 unsigned vector_get_min_index(vector *vec);
30 #endif /* KAPS_VECTOR_H */