Dip  0.92.4
spp_common.h
Go to the documentation of this file.
1 /*===========================================================================*/
2 /* */
3 /* This file is part of a demonstration application for use with the */
4 /* SYMPHONY Branch, Cut, and Price Library. This application is a solver for */
5 /* the Set Partitioning Problem. */
6 /* */
7 /* (c) Copyright 2005-2013 Marta Eso and Ted Ralphs. All Rights Reserved. */
8 /* */
9 /* This application was originally developed by Marta Eso and was modified */
10 /* Ted Ralphs (ted@lehigh.edu) */
11 /* */
12 /* This software is licensed under the Eclipse Public License. Please see */
13 /* accompanying file for terms. */
14 /* */
15 /*===========================================================================*/
16 
17 #ifndef _SPP_COMMON_H_
18 #define _SPP_COMMON_H_
19 
20 /* system include files */
21 #include <stdio.h>
22 
23 /* SYMPHONY include files */
24 #include "sym_proto.h"
25 
26 /* SPP include files */
27 #include "spp_types.h"
28 
29 int *spp_lexsort PROTO((col_ordered *matrix));
30 int spp_lexcompare PROTO((const void *i, const void *j));
31 void spp_free_cmatrix PROTO((col_ordered *m));
32 void spp_free_rmatrix PROTO((row_ordered *m));
33 void spp_column_to_row PROTO((col_ordered *cm, row_ordered *rm, int *i_tmpm,
34  int **istar_tmpm));
35 void spp_row_to_column PROTO((row_ordered *rm, col_ordered *cm, int *i_tmpn,
36  row_ind_type **rowindstar_tmpn));
37 FILE *get_filehandler PROTO((int counter, char *filename, char *fname));
38 
39 void spp_reverse_char_string PROTO((int len, char *string));
40 void spp_reverse_int_string PROTO((int len, int *string));
41 void spp_reverse_double_string PROTO((int len, double *string));
42 void spp_free_cmatrix PROTO((col_ordered *m));
43 void spp_free_rmatrix PROTO((row_ordered *m));
44 void spp_column_to_row PROTO((col_ordered *cm, row_ordered *rm, int *i_tmpm,
45  int **istar_tmpm));
46 void spp_row_to_column PROTO((row_ordered *rm, col_ordered *cm, int *i_tmpn,
47  row_ind_type **rowindstar_tmpn));
48 int spp_is_orthogonal PROTO((col_ordered *cmatrix, int col1, int col2));
49 
50 #endif
#define PROTO(x)
Definition: sym_proto.h:27
#define row_ind_type
Definition: spp_types.h:20