aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index b24ccb2..45a6302 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -36,6 +36,10 @@ int perm_to_index(int *a, int n);
36 * (see perm_to_index) and saves the result to r. */ 36 * (see perm_to_index) and saves the result to r. */
37void index_to_perm(int p, int n, int *r); 37void index_to_perm(int p, int n, int *r);
38 38
39/* Determine the sign of a permutation, either in integer or array format. */
40int perm_sign_array(int a[], int n);
41int perm_sign_int(int p, int n);
42
39/* Converts a k-element subset of a set with an element from an array of n 43/* Converts a k-element subset of a set with an element from an array of n
40 * elements, of which k are 1 and n-k are 0, to its index in the sorted list 44 * elements, of which k are 1 and n-k are 0, to its index in the sorted list
41 * of all such subsets. 45 * of all such subsets.

Generated with cgit - Back to sebastiano.tronto.net