Defines | Functions
sort.cc File Reference
#include "include.h"
#include "newmatap.h"
Include dependency graph for sort.cc:

Go to the source code of this file.

Defines

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

Functions

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 SortAscending (GeneralMatrix &GM)
void SortDescending (GeneralMatrix &GM)
void SortSV (DiagonalMatrix &D, Matrix &U, bool ascending)
void SortSV (DiagonalMatrix &D, Matrix &U, Matrix &V, bool ascending)
static Real SortThreeDescending (Real *a, Real *b, Real *c)

Define Documentation

#define DoSimpleSort   17

Definition at line 32 of file sort.cc.

#define MaxDepth   50

Definition at line 33 of file sort.cc.

#define REPORT   {}

Definition at line 18 of file sort.cc.

#define WANT_MATH

Definition at line 5 of file sort.cc.


Function Documentation

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

Definition at line 133 of file sort.cc.

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

Definition at line 71 of file sort.cc.

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

Definition at line 157 of file sort.cc.

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

Definition at line 96 of file sort.cc.

void SortAscending ( GeneralMatrix &  GM)

Definition at line 121 of file sort.cc.

void SortDescending ( GeneralMatrix &  GM)

Definition at line 45 of file sort.cc.

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

Definition at line 190 of file sort.cc.

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

Definition at line 224 of file sort.cc.

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

Definition at line 57 of file sort.cc.



rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:14