Utils.hpp
Go to the documentation of this file.
00001 /*
00002  *      This file is part of qpOASES.
00003  *
00004  *      qpOASES -- An Implementation of the Online Active Set Strategy.
00005  *      Copyright (C) 2007-2008 by Hans Joachim Ferreau et al. All rights reserved.
00006  *
00007  *      qpOASES is free software; you can redistribute it and/or
00008  *      modify it under the terms of the GNU Lesser General Public
00009  *      License as published by the Free Software Foundation; either
00010  *      version 2.1 of the License, or (at your option) any later version.
00011  *
00012  *      qpOASES is distributed in the hope that it will be useful,
00013  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  *      Lesser General Public License for more details.
00016  *
00017  *      You should have received a copy of the GNU Lesser General Public
00018  *      License along with qpOASES; if not, write to the Free Software
00019  *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020  *
00021  */
00022 
00023 
00034 #ifndef QPOASES_UTILS_HPP
00035 #define QPOASES_UTILS_HPP
00036 
00037 
00038 #include <MessageHandling.hpp>
00039 
00040 
00041 #ifdef PC_DEBUG  /* Define print functions only for debugging! */
00042 
00045 returnValue print(      const real_t* const v,  
00046                                         int n                                   
00047                                         );
00048 
00051 returnValue print(      const real_t* const v,          
00052                                         int n,                                          
00053                                         const int* const V_idx          
00054                                         );
00055 
00058 returnValue print(      const real_t* const v,  
00059                                         int n,                                  
00060                                         const char* name                
00061                                         );
00062 
00065 returnValue print(      const real_t* const M,  
00066                                         int nrow,                               
00067                                         int ncol                                
00068                                         );
00069 
00072 returnValue print(      const real_t* const M,          
00073                                         int nrow,                                       
00074                                         int ncol        ,                               
00075                                         const int* const ROW_idx,       
00076                                         const int* const COL_idx        
00077                                         );
00078 
00081 returnValue print(      const real_t* const M,  
00082                                         int nrow,                               
00083                                         int ncol,                               
00084                                         const char* name                
00085                                         );
00086 
00089 returnValue print(      const int* const index, 
00090                                         int n                                   
00091                                         );
00092 
00095 returnValue print(      const int* const index, 
00096                                         int n,                                  
00097                                         const char* name                
00098                                         );
00099 
00100 
00103 returnValue myPrintf(   const char* s   
00104                                                 );
00105 
00106 
00109 returnValue printCopyrightNotice( );
00110 
00111 
00116 returnValue readFromFile(       real_t* data,                           
00117                                                         int nrow,                                       
00118                                                         int ncol,                                       
00119                                                         const char* datafilename        
00120                                                         );
00121 
00126 returnValue readFromFile(       real_t* data,                           
00127                                                         int n,                                          
00128                                                         const char* datafilename        
00129                                                         );
00130 
00135 returnValue readFromFile(       int* data,                                      
00136                                                         int n,                                          
00137                                                         const char* datafilename        
00138                                                         );
00139 
00140 
00144 returnValue writeIntoFile(      const real_t* const data,       
00145                                                         int nrow,                                       
00146                                                         int ncol,                                       
00147                                                         const char* datafilename,       
00148                                                         BooleanType append                      
00149                                                         );
00150 
00154 returnValue writeIntoFile(      const real_t* const data,       
00155                                                         int n,                                          
00156                                                         const char* datafilename,       
00157                                                         BooleanType append                      
00158                                                         );
00159 
00163 returnValue writeIntoFile(      const int* const integer,       
00164                                                         int n,                                          
00165                                                         const char* datafilename,       
00166                                                         BooleanType append                      
00167                                                         );
00168 
00169 #endif  /* PC_DEBUG */
00170 
00171 
00174 real_t getCPUtime( );
00175 
00176 
00179 real_t getNorm( const real_t* const v,  
00180                                 int n                                   
00181                                 );
00182 
00185 inline real_t getAbs(   real_t x                
00186                                                 );
00187 
00188 
00189 
00190 #include <Utils.ipp>
00191 
00192 #endif  /* QPOASES_UTILS_HPP */
00193 
00194 
00195 /*
00196  *      end of file
00197  */


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Thu Aug 27 2015 12:01:31