Yet Another eXchange Tool 0.11.2
Loading...
Searching...
No Matches
xt_sort.h File Reference
#include <stdlib.h>
#include <xt/quicksort.h>
#include <xt/mergesort.h>
Include dependency graph for xt_sort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void xt_assign_id_map_int (size_t n, int *restrict a, int ofs)
 

Variables

void(* xt_sort_int )(int *a, size_t n)
 
void(* xt_sort_xt_int )(Xt_int *a, size_t n)
 
void(* xt_sort_index )(Xt_int *restrict a, int n, int *restrict idx, int reset_index)
 
void(* xt_sort_idxpos )(idxpos_type *v, size_t n)
 
void(* xt_sort_xt_int_permutation )(Xt_int *restrict a, size_t n, int *restrict permutation)
 
void(* xt_sort_int_permutation )(int *restrict a, size_t n, int *restrict permutation)
 

Detailed Description

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_sort.h.

Function Documentation

◆ xt_assign_id_map_int()

void xt_assign_id_map_int ( size_t n,
int *restrict a,
int ofs )
extern

assign $a[i] = i + ofs \forall i \in [0,n)$

Parameters
nlength of array a to assign to
aarray to initialize
ofsoffset of assigned values, typically 1 for Fortran style arrays

Definition at line 77 of file xt_sort.c.

Here is the caller graph for this function:

Variable Documentation

◆ xt_sort_idxpos

void(* xt_sort_idxpos) (idxpos_type *v, size_t n) ( idxpos_type * v,
size_t n )
extern

Definition at line 60 of file xt_sort.c.

◆ xt_sort_index

void(* xt_sort_index) (Xt_int *restrict a, int n, int *restrict idx, int reset_index) ( Xt_int *restrict a,
int n,
int *restrict idx,
int reset_index )
extern

Definition at line 57 of file xt_sort.c.

◆ xt_sort_int

void(* xt_sort_int) (int *a, size_t n) ( int * a,
size_t n )
extern
Examples
test_xmap_common_parallel.c.

Definition at line 53 of file xt_sort.c.

◆ xt_sort_int_permutation

void(* xt_sort_int_permutation) (int *restrict a, size_t n, int *restrict permutation) ( int *restrict a,
size_t n,
int *restrict permutation )
extern

◆ xt_sort_xt_int

void(* xt_sort_xt_int) (Xt_int *a, size_t n) ( Xt_int * a,
size_t n )
extern

Definition at line 55 of file xt_sort.c.

◆ xt_sort_xt_int_permutation

void(* xt_sort_xt_int_permutation) (Xt_int *restrict a, size_t n, int *restrict permutation) ( Xt_int *restrict a,
size_t n,
int *restrict permutation )
extern