Program listing for file numerics/src/MLCP/MixedLinearComplementarityProblem.h#
Return to documentation for this file
1#ifndef MLCP_PROBLEM_H
2#define MLCP_PROBLEM_H
3
4
5
6#include "NumericsFwd.h"
7#include "SiconosConfig.h"
8
9#include <stdio.h>
10
11
12struct MixedLinearComplementarityProblem {
13 int isStorageType1;
14 int isStorageType2;
15 int n;
16 int m;
17 int *blocksRows;
18 int *blocksIsComp;
19 NumericsMatrix *M;
20 double *q;
21
22 double *A;
23 double *B;
24 double *C;
25 double *D;
26 double *a;
27 double *b;
28};
29
30#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
31extern "C" {
32#endif
33
34
35void mixedLinearComplementarity_free(
36 MixedLinearComplementarityProblem *problem);
37
38
39MixedLinearComplementarityProblem *mixedLinearComplementarity_new(void);
40
41
42void mixedLinearComplementarity_display(MixedLinearComplementarityProblem *p);
43
44
45int mixedLinearComplementarity_printInFile(
46 MixedLinearComplementarityProblem *problem, FILE *file);
47
48
49int mixedLinearComplementarity_newFromFile(
50 MixedLinearComplementarityProblem *problem, FILE *file);
51
52
53int mixedLinearComplementarity_newFromFileOld(
54 MixedLinearComplementarityProblem *problem, FILE *file);
55
56
57int mixedLinearComplementarity_newFromFilename(
58 MixedLinearComplementarityProblem *problem, const char *filename);
59
60
61
62MixedLinearComplementarityProblem *mixedLinearComplementarity_fromMtoABCD(
63 MixedLinearComplementarityProblem *problem);
64
65#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
66}
67#endif
68
69#endif