Files | |
file | dbl_eg_numutil.c |
file | dbl_eg_numutil.h |
This file provide the user interface and function definitions for general number utilities. | |
Defines | |
#define | dbl_EGlpNumInnProd(rop, arr1, arr2, length) |
compute the inner product of two arrays. | |
Functions | |
void | dbl_EGutilPermSort (const size_t sz, int *const perm, double *const elem) |
Sort a sub-set of entries in an array using quicksort, by permutating the order of the elements in the subset rather than in the whole original array, this function sort from min to max value. | |
void | dbl_EGutilPermSort2 (const size_t sz, int *const perm, double *const elem) |
Sort (in incresing order) a sub-set of entries in an array using quicksort, by permutating the order of the elements in the subset rather than in the whole original array. |
|
Value: do{\ double*const restrict __EGa1 = (arr1);\ double*const restrict __EGa2 = (arr2);\ register unsigned __EGdim = (length);\ dbl_EGlpNumZero(rop);\ while(__EGdim--) EGlpNumAddInnProdTo(rop,__EGa1[__EGdim],__EGa2[__EGdim]);\ } while(0)
Definition at line 59 of file dbl_eg_numutil.h. |
|
Sort a sub-set of entries in an array using quicksort, by permutating the order of the elements in the subset rather than in the whole original array, this function sort from min to max value.
Definition at line 26 of file dbl_eg_numutil.c. |
|
Sort (in incresing order) a sub-set of entries in an array using quicksort, by permutating the order of the elements in the subset rather than in the whole original array.
Definition at line 61 of file dbl_eg_numutil.c. |