-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathall_inversion_medians.h
33 lines (23 loc) · 1.08 KB
/
all_inversion_medians.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* $Id: all_inversion_medians.h,v 1.3 2001/12/20 03:17:10 acs Exp $
Written by Adam Siepel, Spring 2001
Copyright 2001, Adam Siepel */
/* Find and return ALL optimal inversion medians of three signed
permutations. This code is slightly adapted from
inversion_median.c. */
/* This code should be considered experimental. For example, it has
not been tested using multithreading. */
/* Compile with -DTHREADSAFE to enable multithreading. Set
NTHREADGROUPS and NTHREADSPGROUP below for level of parallelism.
Note that this code is greatly complicated by the use of
multithreading. It may be desirable to preprocess it with cpp -C
to see a less convoluted version. */
#ifndef ALLINVMEDS_H
#define ALLINVMEDS_H
#include "inversion_median.h"
void find_all_inversion_medians ( List * medians,
struct genome_struct **gen,
int ngenes, distmem_t * distmem );
void *do_loop_all_meds ( void *sv_void );
void *worker_thread_loop_all_meds ( void *vp );
void search_neighbors_all_meds ( ThreadData * td );
#endif