00001 /* 00002 * This file is part of qpOASES. 00003 * 00004 * qpOASES -- An Implementation of the Online Active Set Strategy. 00005 * Copyright (C) 2007-2011 by Hans Joachim Ferreau, Andreas Potschka, 00006 * Christian Kirches et al. All rights reserved. 00007 * 00008 * qpOASES is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * qpOASES is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with qpOASES; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 * 00022 */ 00023 00034 #ifndef QPOASES_PRIVATEUTILS_HPP 00035 #define QPOASES_PRIVATEUTILS_HPP 00036 00037 #include "Types.hpp" 00038 00039 BEGIN_NAMESPACE_QPOASES 00040 00042 inline bool isExactlyOne(real_t a); 00043 00045 inline bool isExactlyZero(real_t a); 00046 00048 inline bool isExactlyMinusOne(real_t a); 00049 00050 END_NAMESPACE_QPOASES 00051 00052 #include "PrivateUtils.ipp" 00053 00054 #endif