sort.cpp File Reference
#include "include.h"
#include "newmatap.h"
Include dependency graph for sort.cpp:

Go to the source code of this file.

#define WANT_MATH
#define REPORT   {}
#define DoSimpleSort   17
#define MaxDepth   50
static void MyQuickSortDescending (Real *first, Real *last, int depth)
static void InsertionSortDescending (Real *first, const int length, int guard)
static Real SortThreeDescending (Real *a, Real *b, Real *c)
static void MyQuickSortAscending (Real *first, Real *last, int depth)
static void InsertionSortAscending (Real *first, const int length, int guard)
void sort_descending (GeneralMatrix &GM)
void sort_ascending (GeneralMatrix &GM)
void SortSV (DiagonalMatrix &D, Matrix &U, bool ascending)
void SortSV (DiagonalMatrix &D, Matrix &U, Matrix &V, bool ascending)

Detailed Description

Sorting functions.

Definition in file sort.cpp.


Define Documentation

#define DoSimpleSort   17

Definition at line 36 of file sort.cpp.

#define MaxDepth   50

Definition at line 37 of file sort.cpp.

#define REPORT   {}

Definition at line 22 of file sort.cpp.

#define WANT_MATH

Definition at line 9 of file sort.cpp.


Function Documentation

static void InsertionSortAscending ( Real first,
const int  length,
int  guard 
) [static]

Definition at line 137 of file sort.cpp.

static void InsertionSortDescending ( Real first,
const int  length,
int  guard 
) [static]

Definition at line 75 of file sort.cpp.

static void MyQuickSortAscending ( Real first,
Real last,
int  depth 
) [static]

Definition at line 161 of file sort.cpp.

static void MyQuickSortDescending ( Real first,
Real last,
int  depth 
) [static]

Definition at line 100 of file sort.cpp.

void sort_ascending ( GeneralMatrix &  GM)

Definition at line 125 of file sort.cpp.

void sort_descending ( GeneralMatrix &  GM)

Definition at line 49 of file sort.cpp.

void SortSV ( DiagonalMatrix &  D,
Matrix &  U,
bool  ascending 
)

Definition at line 194 of file sort.cpp.

void SortSV ( DiagonalMatrix &  D,
Matrix &  U,
Matrix &  V,
bool  ascending 
)

Definition at line 228 of file sort.cpp.

static Real SortThreeDescending ( Real a,
Real b,
Real c 
) [static]

Definition at line 61 of file sort.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


kni
Author(s): Neuronics AG (see AUTHORS.txt); ROS wrapper by Martin Günther
autogenerated on Tue May 28 2013 14:52:55