summaryrefslogtreecommitdiff
path: root/numpy/random/src
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-09-25 22:50:38 +0300
committerGitHub <noreply@github.com>2019-09-25 22:50:38 +0300
commit23c7769ff432097432035c1b5e803355ffa2bdd5 (patch)
treeafe050059192991d307cc552fdea1aa760639ccb /numpy/random/src
parent3d31770c61ea2412267c233d38ccc33d5d3a0610 (diff)
parent09ee875ec9dbb364c4d867c375cce0acd9fab283 (diff)
downloadnumpy-23c7769ff432097432035c1b5e803355ffa2bdd5.tar.gz
Merge pull request #14562 from rgommers/randomCapi-cleanup
MAINT: don't install partial numpy.random C/Cython API.
Diffstat (limited to 'numpy/random/src')
-rw-r--r--numpy/random/src/bitgen.h20
-rw-r--r--numpy/random/src/distributions/distributions.h2
2 files changed, 21 insertions, 1 deletions
diff --git a/numpy/random/src/bitgen.h b/numpy/random/src/bitgen.h
new file mode 100644
index 000000000..0adaaf2ee
--- /dev/null
+++ b/numpy/random/src/bitgen.h
@@ -0,0 +1,20 @@
+#ifndef _RANDOM_BITGEN_H
+#define _RANDOM_BITGEN_H
+
+#pragma once
+#include <stddef.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+/* Must match the declaration in numpy/random/common.pxd */
+
+typedef struct bitgen {
+ void *state;
+ uint64_t (*next_uint64)(void *st);
+ uint32_t (*next_uint32)(void *st);
+ double (*next_double)(void *st);
+ uint64_t (*next_raw)(void *st);
+} bitgen_t;
+
+
+#endif
diff --git a/numpy/random/src/distributions/distributions.h b/numpy/random/src/distributions/distributions.h
index f2c370c07..b778968d7 100644
--- a/numpy/random/src/distributions/distributions.h
+++ b/numpy/random/src/distributions/distributions.h
@@ -9,7 +9,7 @@
#include "Python.h"
#include "numpy/npy_common.h"
#include "numpy/npy_math.h"
-#include "numpy/random/bitgen.h"
+#include "src/bitgen.h"
/*
* RAND_INT_TYPE is used to share integer generators with RandomState which