HCB with MPC
Dependencies: mbed Eigen FastPWM
Array.cpp
- Committer:
- jsoh91
- Date:
- 2019-10-14
- Revision:
- 25:f83396e3d25c
File content as of revision 25:f83396e3d25c:
// $Id: Array.cc 201 2008-05-18 19:47:38Z digasper $ // This file is part of QuadProg++: // Copyright (C) 2006--2009 Luca Di Gaspero. // // This software may be modified and distributed under the terms // of the MIT license. See the LICENSE file for details. #include "Array.h" /** Index utilities */ namespace quadprogpp { std::set<unsigned int> seq(unsigned int s, unsigned int e) { std::set<unsigned int> tmp; for (unsigned int i = s; i <= e; i++) tmp.insert(i); return tmp; } std::set<unsigned int> singleton(unsigned int i) { std::set<unsigned int> tmp; tmp.insert(i); return tmp; } } // namespace quadprogpp