#include <qpOASES_e/Indexlist.h>
Go to the source code of this file.
Functions | |
returnValue | Indexlist_addNumber (Indexlist *_THIS, int addnumber) |
int | Indexlist_findInsert (Indexlist *_THIS, int i) |
int | Indexlist_getIndex (Indexlist *_THIS, int givennumber) |
returnValue | Indexlist_getISortArray (Indexlist *_THIS, int **const iSortArray) |
returnValue | Indexlist_getNumberArray (Indexlist *_THIS, int **const numberarray) |
returnValue | Indexlist_init (Indexlist *_THIS, int n) |
returnValue | Indexlist_removeNumber (Indexlist *_THIS, int removenumber) |
returnValue | Indexlist_swapNumbers (Indexlist *_THIS, int number1, int number2) |
BEGIN_NAMESPACE_QPOASES void | IndexlistCON (Indexlist *_THIS, int n) |
void | IndexlistCPY (Indexlist *FROM, Indexlist *TO) |
Implementation of the Indexlist class designed to manage index lists of constraints and bounds within a QProblem_SubjectTo.
Definition in file Indexlist.c.
returnValue Indexlist_addNumber | ( | Indexlist * | _THIS, |
int | addnumber | ||
) |
Adds number to index list.
addnumber | Number to be added. |
Definition at line 139 of file Indexlist.c.
int Indexlist_findInsert | ( | Indexlist * | _THIS, |
int | i | ||
) |
Find first index j between -1 and length in sorted list of indices iSort such that numbers[iSort[j]] <= i < numbers[iSort[j+1]]. Uses bisection.
Definition at line 219 of file Indexlist.c.
int Indexlist_getIndex | ( | Indexlist * | _THIS, |
int | givennumber | ||
) |
Determines the index within the index list at which a given number is stored.
givennumber | Number whose index shall be determined. |
Definition at line 129 of file Indexlist.c.
returnValue Indexlist_getISortArray | ( | Indexlist * | _THIS, |
int **const | iSortArray | ||
) |
Creates an array of all numbers within the index set in correct order.
iSortArray | Output: iSort Array. |
Definition at line 118 of file Indexlist.c.
returnValue Indexlist_getNumberArray | ( | Indexlist * | _THIS, |
int **const | numberarray | ||
) |
Creates an array of all numbers within the index set in correct order.
numberarray | Output: Array of numbers (NULL on error). |
Definition at line 105 of file Indexlist.c.
returnValue Indexlist_init | ( | Indexlist * | _THIS, |
int | n | ||
) |
Initialises index list of desired physical length.
n | Physical length of index list. |
Definition at line 86 of file Indexlist.c.
returnValue Indexlist_removeNumber | ( | Indexlist * | _THIS, |
int | removenumber | ||
) |
Removes number from index list.
removenumber | Number to be removed. |
Definition at line 160 of file Indexlist.c.
returnValue Indexlist_swapNumbers | ( | Indexlist * | _THIS, |
int | number1, | ||
int | number2 | ||
) |
Swaps two numbers within index list.
number1 | First number for swapping. |
number2 | Second number for swapping. |
Definition at line 190 of file Indexlist.c.
BEGIN_NAMESPACE_QPOASES void IndexlistCON | ( | Indexlist * | _THIS, |
int | n | ||
) |
Constructor which takes the desired physical length of the index list.
n | Physical length of index list. |
Definition at line 49 of file Indexlist.c.
Copies all members from given rhs object.
Definition at line 60 of file Indexlist.c.