sort.cpp File Reference
#include "include.h"
#include "newmatap.h"
Go to the source code of this file.
|
| #define | DoSimpleSort 17 |
| #define | MaxDepth 50 |
| #define | REPORT {} |
| #define | WANT_MATH |
| static void | InsertionSortAscending (Real *first, const int length, int guard) |
| static void | InsertionSortDescending (Real *first, const int length, int guard) |
| static void | MyQuickSortAscending (Real *first, Real *last, int depth) |
| static void | MyQuickSortDescending (Real *first, Real *last, int depth) |
| void | sort_ascending (GeneralMatrix &GM) |
| void | sort_descending (GeneralMatrix &GM) |
| void | SortSV (DiagonalMatrix &D, Matrix &U, Matrix &V, bool ascending) |
| void | SortSV (DiagonalMatrix &D, Matrix &U, bool ascending) |
| static Real | SortThreeDescending (Real *a, Real *b, Real *c) |
Detailed Description
Sorting functions.
Definition in file sort.cpp.
Define Documentation
Function Documentation
| static void InsertionSortAscending |
( |
Real * |
first, |
|
|
const int |
length, |
|
|
int |
guard | |
|
) |
| | [static] |
| static void InsertionSortDescending |
( |
Real * |
first, |
|
|
const int |
length, |
|
|
int |
guard | |
|
) |
| | [static] |
| static void MyQuickSortAscending |
( |
Real * |
first, |
|
|
Real * |
last, |
|
|
int |
depth | |
|
) |
| | [static] |
| static void MyQuickSortDescending |
( |
Real * |
first, |
|
|
Real * |
last, |
|
|
int |
depth | |
|
) |
| | [static] |
| static Real SortThreeDescending |
( |
Real * |
a, |
|
|
Real * |
b, |
|
|
Real * |
c | |
|
) |
| | [static] |