High-Level Data Reduction Library: catalogue/tests/hdrl_cat_utils_sort-test.c File Reference

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
Macros | Functions
hdrl_cat_utils_sort-test.c File Reference
`#include <cpl_test.h>`
`#include "../hdrl_cat_utils_sort.h"`
`#include "hdrl_random.h"`
`#include "hdrl_types.h"`
Include dependency graph for hdrl_cat_utils_sort-test.c:

## Macros
#define | N 10000
#define | RANDOM_INIT 0
#define | RANDOM_UNIFORM_DOBULE 1
#define | RANDOM_NORMAL 2
#define | RANDOM_POISSON 3
#define | RANDOM_END 4

## Functions
int | comparation_asc (const void *a, const void *b)
int | comparation_des (const void *a, const void *b)
void | test_sort (double *a, double *b, cpl_vector *c_vec, cpl_size random_type, cpl_sort_direction dir)
void | test_cmp_sort_func (cpl_sort_direction dir)
void | test_sort_arrays_random (void)
void | test_sort_arrays_fixed (void)
int | main (void)

## Macro Definition Documentation

## ◆ N

#define N 10000

## ◆ RANDOM_END

#define RANDOM_END 4

## ◆ RANDOM_INIT

#define RANDOM_INIT 0

## ◆ RANDOM_NORMAL

#define RANDOM_NORMAL 2

## ◆ RANDOM_POISSON

#define RANDOM_POISSON 3

## ◆ RANDOM_UNIFORM_DOBULE

#define RANDOM_UNIFORM_DOBULE 1

## Function Documentation

## ◆ comparation_asc()

int comparation_asc | ( | const void * | a,
|  | const void * | b
| ) |  |

## ◆ comparation_des()

int comparation_des | ( | const void * | a,
|  | const void * | b
| ) |  |

## ◆ main()

int main | ( | void |  | ) |

## ◆ test_cmp_sort_func()

void test_cmp_sort_func | ( | cpl_sort_direction | dir | ) |

## ◆ test_sort()

void test_sort | ( | double * | a,
|  | double * | b,
|  | cpl_vector * | c_vec,
|  | cpl_size | random_type,
|  | cpl_sort_direction | dir
| ) |  |

## ◆ test_sort_arrays_fixed()

void test_sort_arrays_fixed | ( | void |  | ) |

## ◆ test_sort_arrays_random()

void test_sort_arrays_random | ( | void |  | ) |