Program listing for file numerics/src/MLCP/MixedLinearComplementarityProblem.h

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef MLCP_PROBLEM_H
#define MLCP_PROBLEM_H



#include <stdio.h>
#include "NumericsFwd.h"
#include "SiconosConfig.h"


struct MixedLinearComplementarityProblem
{
  int isStorageType1;
  int isStorageType2;
  int n;
  int m;
  int * blocksRows;
  int * blocksIsComp;
  NumericsMatrix* M;
  double *q;

  double *A;
  double *B;
  double *C;
  double *D;
  double *a;
  double *b;
};


#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
extern "C"
{
#endif

  void mixedLinearComplementarity_display(MixedLinearComplementarityProblem* p);


  int mixedLinearComplementarity_printInFile(MixedLinearComplementarityProblem*  problem, FILE* file);



  int mixedLinearComplementarity_newFromFile(MixedLinearComplementarityProblem* problem, FILE* file);


  int mixedLinearComplementarity_newFromFileOld(MixedLinearComplementarityProblem* problem, FILE* file);


  int mixedLinearComplementarity_newFromFilename(MixedLinearComplementarityProblem* problem, char* filename);


  void freeMixedLinearComplementarityProblem(MixedLinearComplementarityProblem* problem);


  MixedLinearComplementarityProblem* newMLCP(void);


#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
}
#endif

#endif