RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
shell_sort.h File Reference

Implement the Shell sort algorithm. More...

#include <stdint.h>
#include "vector.h"

Go to the source code of this file.

Functions

void int_shell_sort (int *array, int length)
 Sort a data set of integers by using the Shell sort algorithm. More...
 
void shell_sort (vector_t *arr, uint8_t length)
 Sort a data set of type utils_t by using the Shell sort algorithm. More...
 

Detailed Description

Implement the Shell sort algorithm.

The Shell sort algorithm is more convenient for devices with limited storage capacity.

Author
Zakaria Kasmi zkasm.nosp@m.i@in.nosp@m.f.fu-.nosp@m.berl.nosp@m.in.de

Definition in file shell_sort.h.

Function Documentation

◆ int_shell_sort()

void int_shell_sort ( int *  array,
int  length 
)

Sort a data set of integers by using the Shell sort algorithm.

Parameters
[in]array[]pointer to the data set.
[in]lengthsize of the data set.

Definition at line 28 of file shell_sort.c.

◆ shell_sort()

void shell_sort ( vector_t arr,
uint8_t  length 
)

Sort a data set of type utils_t by using the Shell sort algorithm.

Parameters
[in]arr[]pointer to the data set.
[in]lengthsize of the data set.

Definition at line 49 of file shell_sort.c.

References vector_t.

Referenced by recog_mitigate_multipath(), and utils_get_median().