Program listing for file numerics/src/LCP/LinearComplementarityProblem.h

Program listing for file numerics/src/LCP/LinearComplementarityProblem.h#

 1#ifndef LCP_PROBLEM_H
 2#define LCP_PROBLEM_H
 3
 4
 5
 6#include "NumericsFwd.h"
 7#include "SiconosConfig.h"
 8
 9#include <stdio.h>
10
11
12struct LinearComplementarityProblem {
13
14  int size;
15  NumericsMatrix
16      *M;
17  double *q;
18};
19
20#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
21extern "C" {
22#endif
23
24
25void linearComplementarity_display(LinearComplementarityProblem *problem);
26
27
28int linearComplementarity_printInFile(LinearComplementarityProblem *problem,
29                                      FILE *file);
30
31
32int linearComplementarity_newFromFile(LinearComplementarityProblem *problem,
33                                      FILE *file);
34
35
36int linearComplementarity_newFromFilename(LinearComplementarityProblem *problem,
37                                          const char *filename);
38
39
40void freeLinearComplementarityProblem(LinearComplementarityProblem *problem);
41
42
43LinearComplementarityProblem *newLCP(void);
44
45#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
46}
47#endif
48
49#endif