external_packages/qpoases/INCLUDE/Utils.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-2008 by Hans Joachim Ferreau et al. All rights reserved.
6  *
7  * qpOASES is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * qpOASES is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with qpOASES; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  */
22 
23 
34 #ifndef QPOASES_UTILS_HPP
35 #define QPOASES_UTILS_HPP
36 
37 
38 #include <MessageHandling.hpp>
39 
40 
41 #ifdef PC_DEBUG /* Define print functions only for debugging! */
42 
45 returnValue print( const real_t* const v,
46  int n
47  );
48 
51 returnValue print( const real_t* const v,
52  int n,
53  const int* const V_idx
54  );
55 
58 returnValue print( const real_t* const v,
59  int n,
60  const char* name
61  );
62 
65 returnValue print( const real_t* const M,
66  int nrow,
67  int ncol
68  );
69 
72 returnValue print( const real_t* const M,
73  int nrow,
74  int ncol ,
75  const int* const ROW_idx,
76  const int* const COL_idx
77  );
78 
81 returnValue print( const real_t* const M,
82  int nrow,
83  int ncol,
84  const char* name
85  );
86 
89 returnValue print( const int* const index,
90  int n
91  );
92 
95 returnValue print( const int* const index,
96  int n,
97  const char* name
98  );
99 
100 
103 returnValue myPrintf( const char* s
104  );
105 
106 
110 
111 
117  int nrow,
118  int ncol,
119  const char* datafilename
120  );
121 
127  int n,
128  const char* datafilename
129  );
130 
135 returnValue readFromFile( int* data,
136  int n,
137  const char* datafilename
138  );
139 
140 
144 returnValue writeIntoFile( const real_t* const data,
145  int nrow,
146  int ncol,
147  const char* datafilename,
148  BooleanType append
149  );
150 
154 returnValue writeIntoFile( const real_t* const data,
155  int n,
156  const char* datafilename,
157  BooleanType append
158  );
159 
163 returnValue writeIntoFile( const int* const integer,
164  int n,
165  const char* datafilename,
166  BooleanType append
167  );
168 
169 #endif /* PC_DEBUG */
170 
171 
174 real_t getCPUtime( );
175 
176 
179 real_t getNorm( const real_t* const v,
180  int n
181  );
182 
185 inline real_t getAbs( real_t x
186  );
187 
188 
189 
190 #include <Utils.ipp>
191 
192 #endif /* QPOASES_UTILS_HPP */
193 
194 
195 /*
196  * end of file
197  */
Allows to pass back messages to the calling function.
returnValue readFromFile(real_t *data, int nrow, int ncol, const char *datafilename)
returnValue myPrintf(const char *s)
returnValue writeIntoFile(const real_t *const data, int nrow, int ncol, const char *datafilename, BooleanType append)
real_t getAbs(real_t x)
#define v
BEGIN_NAMESPACE_QPOASES returnValue print(const real_t *const v, int n)
double real_t
Definition: AD_test.c:10


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