File: memory.d2

package info (click to toggle)
casadi 3.7.0%2Bds2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,964 kB
  • sloc: cpp: 114,229; python: 35,462; xml: 1,946; ansic: 859; makefile: 257; sh: 114; f90: 63; perl: 9
file content (137 lines) | stat: -rw-r--r-- 1,968 bytes parent folder | download
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Conic: "" {
    struct: "Conic" {
        shape: class
    }
    explanation: |md
    Immutable qp solver specs (vm)
    |
}

FooInterface: "" {
    struct: "FooInterface" {
        shape: class
    }
    explanation: |md
    Immutable foo solver specs (vm)
    |
}


ConicMemory: "ConicMemory" {
    struct: "ConicMemory" {
        shape: class
    }
    explanation: |md
    Mutable thread-local memory (vm)
    |
}



FooMemory: "" {
    struct: "FooMemory" {
        shape: class
        +d: "foo_data";
    }
    explanation: |md
    Mutable thread-local memory (vm)
    |
}

foo_data: "" {
    foo_data: {
        shape: class
        +prob: "foo_prob";
        +qp: "qp_data";
    }
    explanation: |md
    Mutable thread-local memory (codegen)
    |
}

foo_data -> qp_data;

foo_prob: "" {
    foo_prob: {
        shape: class
        +qp: "qp_prob";
        +inf: "double";
    }
    explanation: |md
    Immutable foo solver specs (codegen)
    
    For arrays, this struct contains merely pointers
    
    These pointers get set in `foo_init`
    |
}



qp_prob: "" {
    struct: "qp_prob" {
        shape: class
        +nx: "casadi_int";
        +sp_a: "const casadi_int* sp_a";
    }
    explanation: |md
    Immutable qp problem specs (codegen)
    |
}

qp_data: "" {
    struct: "qp_data" {
        shape: class
        +prob: "qp_prob";
        +success: "bool";
        +a: "const double*";
    }
    explanation: |md
    Mutable thread-local memory (codegen)

    |
}

FooMemory -> foo_data;

foo_data -> foo_prob;

foo_prob -> qp_prob;

qp_data -> qp_prob;

ConicMemory <-> FooMemory {
  source-arrowhead {

    shape: diamond
    style.opacity: 0.2

    style.filled: false

  }
  target-arrowhead {

    shape: diamond

    style.filled: false

  }
}

Conic <-> FooInterface {
  source-arrowhead {

    shape: diamond
    style.opacity: 0.2

    style.filled: false

  }
  target-arrowhead {

    shape: diamond

    style.filled: false

  }
}