aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-12-14 09:56:04 -0600
committertlatorre <tlatorre@uchicago.edu>2018-12-14 09:56:04 -0600
commit50a729145835d7fc88b81b713d94a894ebee378b (patch)
treeb3642614725e5e4c26ad96cd70c4d31c31b3bd88 /src/misc.h
parentdac8e34a1bdf79edb223e92c19567471c2e49643 (diff)
downloadsddm-50a729145835d7fc88b81b713d94a894ebee378b.tar.gz
sddm-50a729145835d7fc88b81b713d94a894ebee378b.tar.bz2
sddm-50a729145835d7fc88b81b713d94a894ebee378b.zip
add a function to compute combinations with replacement
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index 8450454..02df398 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -30,5 +30,6 @@ double gamma_pdf(double x, double k, double theta);
size_t ipow(size_t base, size_t exp);
void product(size_t n, size_t r, size_t *result);
void unique_vertices(int *id, size_t n, size_t npeaks, size_t *result, size_t *nvertices);
+void combinations_with_replacement(size_t n, size_t r, size_t *result, size_t *len);
#endif