external_packages/qpOASES-3.2.0/include/qpOASES/Types.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of qpOASES.
3  *
4  * qpOASES -- An Implementation of the Online Active Set Strategy.
5  * Copyright (C) 2007-2015 by Hans Joachim Ferreau, Andreas Potschka,
6  * Christian Kirches et al. All rights reserved.
7  *
8  * qpOASES is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * qpOASES is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with qpOASES; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 
35 #ifndef QPOASES_TYPES_HPP
36 #define QPOASES_TYPES_HPP
37 
38 
39 /* If your compiler does not support the snprintf() function,
40  * uncomment the following line and try to compile again. */
41 /* #define __NO_SNPRINTF__ */
42 
43 
44 /* Uncomment the following line for setting the __DSPACE__ flag. */
45 /* #define __DSPACE__ */
46 
47 /* Uncomment the following line for setting the __XPCTARGET__ flag. */
48 /* #define __XPCTARGET__ */
49 
50 
51 /* Uncomment the following line for setting the __NO_FMATH__ flag. */
52 /* #define __NO_FMATH__ */
53 
54 /* Uncomment the following line to enable debug information. */
55 /* #define __DEBUG__ */
56 
57 /* Uncomment the following line to enable suppress any kind of console output. */
58 /* #define __SUPPRESSANYOUTPUT__ */
59 
60 
63 #define __ALWAYS_INITIALISE_WITH_ALL_EQUALITIES__
64 
65 
66 /* Uncomment the following line to activate the use of an alternative Givens
67  * plane rotation requiring only three multiplications. */
68 /* #define __USE_THREE_MULTS_GIVENS__ */
69 
70 /* Uncomment the following line to activate the use of single precision arithmetic. */
71 /* #define __USE_SINGLE_PRECISION__ */
72 
73 
74 
75 /* Work-around for Borland BCC 5.5 compiler. */
76 #ifdef __BORLANDC__
77 #if __BORLANDC__ < 0x0561
78  #define __STDC__ 1
79 #endif
80 #endif
81 
82 
83 /* Work-around for Microsoft compilers. */
84 #ifdef _MSC_VER
85 #if (_MSC_VER < 1900)
86 /* Work-around for Microsoft compilers with version older than 2015. */
87  #define __NO_SNPRINTF__
88  #pragma warning( disable : 4061 4100 4250 4514 4996 )
89 #endif
90 #endif
91 
92 
93 #ifdef __DSPACE__
94 
96  #define BEGIN_NAMESPACE_QPOASES
97 
99  #define END_NAMESPACE_QPOASES
100 
102  #define USING_NAMESPACE_QPOASES
103 
105  #define REFER_NAMESPACE_QPOASES ::
106 
107 #else
108 
110  #define BEGIN_NAMESPACE_QPOASES namespace qpOASES {
111 
113  #define END_NAMESPACE_QPOASES }
114 
116  #define USING_NAMESPACE_QPOASES using namespace qpOASES;
117 
119  #define REFER_NAMESPACE_QPOASES qpOASES::
120 
121 #endif
122 
123 
124 /* Avoid any printing on embedded platforms. */
125 #if defined(__DSPACE__) || defined(__XPCTARGET__)
126  #define __SUPPRESSANYOUTPUT__
127  #define __NO_SNPRINTF__
128 #endif
129 
130 
131 #ifdef __NO_SNPRINTF__
132  #if (!defined(_MSC_VER)) || defined(__DSPACE__) || defined(__XPCTARGET__)
133  /* If snprintf is not available, provide an empty implementation... */
134  int snprintf( char* s, size_t n, const char* format, ... );
135  #else
136  /* ... or substitute snprintf by _snprintf for Microsoft compilers. */
137  #define snprintf _snprintf
138  #endif
139 #endif /* __NO_SNPRINTF__ */
140 
141 
142 
144 #define RR( I,J ) R[(I)+nV*(J)]
145 
147 #define QQ( I,J ) Q[(I)+nV*(J)]
148 
150 #define TT( I,J ) T[(I)*sizeT+(J)]
151 
152 
153 /* If neither MA57 nor MA27 are selected, activate the dummy solver */
154 #if !defined(SOLVER_MA27) && !defined(SOLVER_MA57) && !defined(SOLVER_NONE)
155 #define SOLVER_NONE
156 #endif
157 
159 
160 
162 #ifdef __USE_SINGLE_PRECISION__
163 typedef float real_t;
164 #else
165 typedef double real_t;
166 #endif /* __USE_SINGLE_PRECISION__ */
167 
168 
170 #ifdef __USE_LONG_INTEGERS__
171 typedef long int_t;
172 typedef unsigned long uint_t;
173 #else
174 typedef int int_t;
175 typedef unsigned int uint_t;
176 #endif /* __USE_LONG_INTEGERS__ */
177 
178 
180 typedef int fint;
181 
182 
190 
191 
192 #if defined( BT_FALSE ) && defined( BT_TRUE )
193 #undef BT_FALSE
194 #undef BT_TRUE
195 #endif /* defined( BT_TRUE ) && defined( BT_FALSE ) */
196 
197 
200 {
203 };
204 
205 
209 {
216 };
217 
218 
221 {
224 };
225 
226 
230 {
240 };
241 
242 
245 {
253 };
254 
255 
258 {
264 };
265 
266 
269 {
270  ST_LOWER = -1,
276 };
277 
280 {
286 };
287 
307 };
308 
309 
310 
325 typedef struct {
327  long nRows;
328  long nCols;
330  long nCharName;
332 
333 
334 
335 
337 
338 
339 #endif /* QPOASES_TYPES_HPP */
340 
341 
342 /*
343  * end of file
344  */
BEGIN_NAMESPACE_QPOASES typedef double real_t
PrintLevel
Stores internal information for tabular (debugging) output.
Struct containing the variable header for mat file.


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:15