Homepage Demos Overview Downloads Tutorials Reference
Credits

sort.cpp File Reference

#include "include.h"
#include "newmatap.h"

Include dependency graph for sort.cpp:

Go to the source code of this file.

Namespaces

namespace  NEWMAT

Defines

#define WANT_MATH
#define REPORT   {}
#define DoSimpleSort   17
#define MaxDepth   50

Functions

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)


Define Documentation

#define DoSimpleSort   17
 

Definition at line 32 of file sort.cpp.

Referenced by NEWMAT::MyQuickSortAscending(), NEWMAT::MyQuickSortDescending(), NEWMAT::SortAscending(), and NEWMAT::SortDescending().

#define MaxDepth   50
 

Definition at line 33 of file sort.cpp.

Referenced by NEWMAT::MyQuickSortAscending(), and NEWMAT::MyQuickSortDescending().

#define REPORT   {}
 

Definition at line 18 of file sort.cpp.

#define WANT_MATH
 

Definition at line 5 of file sort.cpp.


Function Documentation

static void NEWMAT::InsertionSortAscending Real first,
const int  length,
int  guard
[static]
 

Definition at line 133 of file sort.cpp.

Referenced by NEWMAT::SortAscending().

static void NEWMAT::InsertionSortDescending Real first,
const int  length,
int  guard
[static]
 

Definition at line 71 of file sort.cpp.

Referenced by NEWMAT::SortDescending().

static void NEWMAT::MyQuickSortAscending Real first,
Real last,
int  depth
[static]
 

Definition at line 157 of file sort.cpp.

Referenced by NEWMAT::SortAscending().

static void NEWMAT::MyQuickSortDescending Real first,
Real last,
int  depth
[static]
 

Definition at line 96 of file sort.cpp.

Referenced by NEWMAT::SortDescending().

static Real NEWMAT::SortThreeDescending Real a,
Real b,
Real c
[static]
 

Definition at line 57 of file sort.cpp.

Referenced by NEWMAT::MyQuickSortAscending(), and NEWMAT::MyQuickSortDescending().


newmat11b
Generated Tue Jan 4 15:42:15 2005 by Doxygen 1.4.0