summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-05 01:28:47 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-05 01:28:47 +0000
commit416bf3771b9d78ca0a4371b7b92d426d32922e48 (patch)
tree1d6bc3ad538a30291012e929c27076ee7f9c5912 /numpy/random
parent959e0ba32d1fb84295601736a66e22d70f149014 (diff)
downloadnumpy-416bf3771b9d78ca0a4371b7b92d426d32922e48.tar.gz
Trying to delete mtrand.c
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/mtrand.c5990
1 files changed, 0 insertions, 5990 deletions
diff --git a/numpy/random/mtrand/mtrand.c b/numpy/random/mtrand/mtrand.c
deleted file mode 100644
index 161281bd8..000000000
--- a/numpy/random/mtrand/mtrand.c
+++ /dev/null
@@ -1,5990 +0,0 @@
-/* Generated by Pyrex 0.9.3.1 on Wed Jan 4 12:43:35 2006 */
-
-#include "Python.h"
-#include "structmember.h"
-#ifndef PY_LONG_LONG
- #define PY_LONG_LONG LONG_LONG
-#endif
-#include "string.h"
-#include "math.h"
-#include "numpy/arrayobject.h"
-#include "randomkit.h"
-#include "distributions.h"
-#include "initarray.h"
-
-
-typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
-typedef struct {PyObject **p; char *s; long n;} __Pyx_StringTabEntry; /*proto*/
-static PyObject *__Pyx_UnpackItem(PyObject *, int); /*proto*/
-static int __Pyx_EndUnpack(PyObject *, int); /*proto*/
-static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
-static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list); /*proto*/
-static int __Pyx_GetStarArgs(PyObject **args, PyObject **kwds, char *kwd_list[], int nargs, PyObject **args2, PyObject **kwds2); /*proto*/
-static void __Pyx_WriteUnraisable(char *name); /*proto*/
-static void __Pyx_AddTraceback(char *funcname); /*proto*/
-static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name, long size); /*proto*/
-static int __Pyx_InternStrings(__Pyx_InternTabEntry *t); /*proto*/
-static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
-static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/
-
-static PyObject *__pyx_m;
-static PyObject *__pyx_b;
-static int __pyx_lineno;
-static char *__pyx_filename;
-staticforward char **__pyx_f;
-
-/* Declarations from mtrand */
-
-staticforward PyTypeObject __pyx_type_6mtrand_RandomState;
-
-struct __pyx_obj_6mtrand_RandomState {
- PyObject_HEAD
- rk_state (*internal_state);
-};
-
-static PyTypeObject *__pyx_ptype_6mtrand_dtypedescr = 0;
-static PyTypeObject *__pyx_ptype_6mtrand_ndarray = 0;
-static PyTypeObject *__pyx_ptype_6mtrand_RandomState = 0;
-static PyObject *__pyx_k2;
-static PyObject *__pyx_k3;
-static PyObject *__pyx_k4;
-static PyObject *__pyx_k5;
-static PyObject *__pyx_k6;
-static PyObject *__pyx_k7;
-static double __pyx_k8;
-static double __pyx_k9;
-static PyObject *__pyx_k10;
-static PyObject *__pyx_k11;
-static PyObject *__pyx_k12;
-static PyObject *__pyx_k13;
-static double __pyx_k14;
-static double __pyx_k15;
-static PyObject *__pyx_k16;
-static PyObject *__pyx_k17;
-static double __pyx_k18;
-static PyObject *__pyx_k19;
-static PyObject *__pyx_k20;
-static PyObject *__pyx_k21;
-static double __pyx_k22;
-static PyObject *__pyx_k23;
-static PyObject *__pyx_k24;
-static PyObject *__pyx_k25;
-static PyObject *__pyx_k26;
-static PyObject *__pyx_k27;
-static PyObject *__pyx_k28;
-static PyObject *__pyx_k29;
-static PyObject *__pyx_k30;
-static PyObject *__pyx_k31;
-static PyObject *__pyx_k32;
-static PyObject *__pyx_k33;
-static double __pyx_k34;
-static double __pyx_k35;
-static PyObject *__pyx_k36;
-static double __pyx_k37;
-static double __pyx_k38;
-static PyObject *__pyx_k39;
-static double __pyx_k40;
-static double __pyx_k41;
-static PyObject *__pyx_k42;
-static double __pyx_k43;
-static double __pyx_k44;
-static PyObject *__pyx_k45;
-static double __pyx_k46;
-static PyObject *__pyx_k47;
-static PyObject *__pyx_k48;
-static PyObject *__pyx_k49;
-static PyObject *__pyx_k50;
-static PyObject *__pyx_k51;
-static double __pyx_k52;
-static PyObject *__pyx_k53;
-static PyObject *__pyx_k54;
-static PyObject *__pyx_k55;
-static PyObject *__pyx_k56;
-static PyObject *__pyx_k57;
-static PyObject *__pyx_k58;
-static PyObject *__pyx_k59;
-static PyObject *(__pyx_f_6mtrand_cont0_array(rk_state (*),double ((*)(rk_state (*))),PyObject *)); /*proto*/
-static PyObject *(__pyx_f_6mtrand_cont1_array(rk_state (*),double ((*)(rk_state (*),double )),PyObject *,double )); /*proto*/
-static PyObject *(__pyx_f_6mtrand_cont2_array(rk_state (*),double ((*)(rk_state (*),double ,double )),PyObject *,double ,double )); /*proto*/
-static PyObject *(__pyx_f_6mtrand_cont3_array(rk_state (*),double ((*)(rk_state (*),double ,double ,double )),PyObject *,double ,double ,double )); /*proto*/
-static PyObject *(__pyx_f_6mtrand_disc0_array(rk_state (*),long ((*)(rk_state (*))),PyObject *)); /*proto*/
-static PyObject *(__pyx_f_6mtrand_discnp_array(rk_state (*),long ((*)(rk_state (*),long ,double )),PyObject *,long ,double )); /*proto*/
-static PyObject *(__pyx_f_6mtrand_discnmN_array(rk_state (*),long ((*)(rk_state (*),long ,long ,long )),PyObject *,long ,long ,long )); /*proto*/
-static PyObject *(__pyx_f_6mtrand_discd_array(rk_state (*),long ((*)(rk_state (*),double )),PyObject *,double )); /*proto*/
-static double (__pyx_f_6mtrand_kahan_sum(double (*),long )); /*proto*/
-
-/* Implementation of mtrand */
-
-
-static PyObject *__pyx_n__sp;
-static PyObject *__pyx_n__rand;
-static PyObject *__pyx_n_seed;
-static PyObject *__pyx_n_get_state;
-static PyObject *__pyx_n_set_state;
-static PyObject *__pyx_n_random_sample;
-static PyObject *__pyx_n_randint;
-static PyObject *__pyx_n_bytes;
-static PyObject *__pyx_n_uniform;
-static PyObject *__pyx_n_rand;
-static PyObject *__pyx_n_randn;
-static PyObject *__pyx_n_random_integers;
-static PyObject *__pyx_n_standard_normal;
-static PyObject *__pyx_n_normal;
-static PyObject *__pyx_n_beta;
-static PyObject *__pyx_n_exponential;
-static PyObject *__pyx_n_standard_exponential;
-static PyObject *__pyx_n_standard_gamma;
-static PyObject *__pyx_n_gamma;
-static PyObject *__pyx_n_f;
-static PyObject *__pyx_n_noncentral_f;
-static PyObject *__pyx_n_chisquare;
-static PyObject *__pyx_n_noncentral_chisquare;
-static PyObject *__pyx_n_standard_cauchy;
-static PyObject *__pyx_n_standard_t;
-static PyObject *__pyx_n_vonmises;
-static PyObject *__pyx_n_pareto;
-static PyObject *__pyx_n_weibull;
-static PyObject *__pyx_n_power;
-static PyObject *__pyx_n_laplace;
-static PyObject *__pyx_n_gumbel;
-static PyObject *__pyx_n_logistic;
-static PyObject *__pyx_n_lognormal;
-static PyObject *__pyx_n_rayleigh;
-static PyObject *__pyx_n_wald;
-static PyObject *__pyx_n_triangular;
-static PyObject *__pyx_n_binomial;
-static PyObject *__pyx_n_negative_binomial;
-static PyObject *__pyx_n_poisson;
-static PyObject *__pyx_n_zipf;
-static PyObject *__pyx_n_geometric;
-static PyObject *__pyx_n_hypergeometric;
-static PyObject *__pyx_n_logseries;
-static PyObject *__pyx_n_multivariate_normal;
-static PyObject *__pyx_n_multinomial;
-static PyObject *__pyx_n_shuffle;
-static PyObject *__pyx_n_permutation;
-static PyObject *__pyx_n_numpy;
-
-static PyObject *__pyx_n_empty;
-static PyObject *__pyx_n_Float64;
-
-static PyObject *__pyx_f_6mtrand_cont0_array(rk_state (*__pyx_v_state),double ((*__pyx_v_func)(rk_state (*))),PyObject *__pyx_v_size) {
- double (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":128 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":129 */
- __pyx_2 = PyFloat_FromDouble(__pyx_v_func(__pyx_v_state)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":131 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Float64); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":132 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":133 */
- __pyx_v_array_data = ((double (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":134 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":135 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":136 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.cont0_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_cont1_array(rk_state (*__pyx_v_state),double ((*__pyx_v_func)(rk_state (*),double )),PyObject *__pyx_v_size,double __pyx_v_a) {
- double (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":144 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":145 */
- __pyx_2 = PyFloat_FromDouble(__pyx_v_func(__pyx_v_state,__pyx_v_a)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":147 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Float64); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":148 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":149 */
- __pyx_v_array_data = ((double (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":150 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":151 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_a);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":152 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.cont1_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_cont2_array(rk_state (*__pyx_v_state),double ((*__pyx_v_func)(rk_state (*),double ,double )),PyObject *__pyx_v_size,double __pyx_v_a,double __pyx_v_b) {
- double (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":161 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":162 */
- __pyx_2 = PyFloat_FromDouble(__pyx_v_func(__pyx_v_state,__pyx_v_a,__pyx_v_b)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":164 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Float64); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":165 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":166 */
- __pyx_v_array_data = ((double (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":167 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":168 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_a,__pyx_v_b);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":169 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.cont2_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_cont3_array(rk_state (*__pyx_v_state),double ((*__pyx_v_func)(rk_state (*),double ,double ,double )),PyObject *__pyx_v_size,double __pyx_v_a,double __pyx_v_b,double __pyx_v_c) {
- double (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":179 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":180 */
- __pyx_2 = PyFloat_FromDouble(__pyx_v_func(__pyx_v_state,__pyx_v_a,__pyx_v_b,__pyx_v_c)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":182 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Float64); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":183 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":184 */
- __pyx_v_array_data = ((double (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":185 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":186 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_a,__pyx_v_b,__pyx_v_c);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":187 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.cont3_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_Int;
-
-static PyObject *__pyx_f_6mtrand_disc0_array(rk_state (*__pyx_v_state),long ((*__pyx_v_func)(rk_state (*))),PyObject *__pyx_v_size) {
- long (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":195 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":196 */
- __pyx_2 = PyInt_FromLong(__pyx_v_func(__pyx_v_state)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 196; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":198 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":199 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":200 */
- __pyx_v_array_data = ((long (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":201 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":202 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":203 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.disc0_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_discnp_array(rk_state (*__pyx_v_state),long ((*__pyx_v_func)(rk_state (*),long ,double )),PyObject *__pyx_v_size,long __pyx_v_n,double __pyx_v_p) {
- long (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":211 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":212 */
- __pyx_2 = PyInt_FromLong(__pyx_v_func(__pyx_v_state,__pyx_v_n,__pyx_v_p)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 212; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":214 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 214; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":215 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":216 */
- __pyx_v_array_data = ((long (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":217 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":218 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_n,__pyx_v_p);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":219 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.discnp_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_discnmN_array(rk_state (*__pyx_v_state),long ((*__pyx_v_func)(rk_state (*),long ,long ,long )),PyObject *__pyx_v_size,long __pyx_v_n,long __pyx_v_m,long __pyx_v_N) {
- long (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":228 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":229 */
- __pyx_2 = PyInt_FromLong(__pyx_v_func(__pyx_v_state,__pyx_v_n,__pyx_v_m,__pyx_v_N)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":231 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":232 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":233 */
- __pyx_v_array_data = ((long (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":234 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":235 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_n,__pyx_v_m,__pyx_v_N);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":236 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.discnmN_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_discd_array(rk_state (*__pyx_v_state),long ((*__pyx_v_func)(rk_state (*),double )),PyObject *__pyx_v_size,double __pyx_v_a) {
- long (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":244 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":245 */
- __pyx_2 = PyInt_FromLong(__pyx_v_func(__pyx_v_state,__pyx_v_a)); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":247 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_empty); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_2, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(2); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":248 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":249 */
- __pyx_v_array_data = ((long (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":250 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":251 */
- (__pyx_v_array_data[__pyx_v_i]) = __pyx_v_func(__pyx_v_state,__pyx_v_a);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":252 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.discd_array");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static double __pyx_f_6mtrand_kahan_sum(double (*__pyx_v_darr),long __pyx_v_n) {
- double __pyx_v_c;
- double __pyx_v_y;
- double __pyx_v_t;
- double __pyx_v_sum;
- long __pyx_v_i;
- double __pyx_r;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":257 */
- __pyx_v_sum = (__pyx_v_darr[0]);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":258 */
- __pyx_v_c = 0.0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":259 */
- for (__pyx_v_i = 1; __pyx_v_i < __pyx_v_n; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":260 */
- __pyx_v_y = ((__pyx_v_darr[__pyx_v_i]) - __pyx_v_c);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":261 */
- __pyx_v_t = (__pyx_v_sum + __pyx_v_y);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":262 */
- __pyx_v_c = ((__pyx_v_t - __pyx_v_sum) - __pyx_v_y);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":263 */
- __pyx_v_sum = __pyx_v_t;
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":264 */
- __pyx_r = __pyx_v_sum;
- goto __pyx_L0;
-
- __pyx_r = 0;
- goto __pyx_L0;
- __Pyx_WriteUnraisable("mtrand.kahan_sum");
- __pyx_L0:;
- return __pyx_r;
-}
-
-static int __pyx_f_6mtrand_11RandomState___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static int __pyx_f_6mtrand_11RandomState___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_seed = 0;
- int __pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- static char *__pyx_argnames[] = {"seed",0};
- __pyx_v_seed = __pyx_k2;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_seed)) return -1;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_seed);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":287 */
- ((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state = ((rk_state (*))PyMem_Malloc((sizeof(rk_state ))));
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":289 */
- __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_seed); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
- Py_INCREF(__pyx_v_seed);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_seed);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- __pyx_r = 0;
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.__init__");
- __pyx_r = -1;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_seed);
- return __pyx_r;
-}
-
-static void __pyx_f_6mtrand_11RandomState___dealloc__(PyObject *__pyx_v_self); /*proto*/
-static void __pyx_f_6mtrand_11RandomState___dealloc__(PyObject *__pyx_v_self) {
- int __pyx_1;
- Py_INCREF(__pyx_v_self);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":292 */
- __pyx_1 = (((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state != 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":293 */
- PyMem_Free(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state);
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- goto __pyx_L0;
- __Pyx_AddTraceback("mtrand.RandomState.__dealloc__");
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
-}
-
-static PyObject *__pyx_n_type;
-static PyObject *__pyx_n_int;
-
-static PyObject *__pyx_f_6mtrand_11RandomState_seed(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_seed[] = "Seed the generator.\n\n seed(seed=None)\n\n seed can be an integer, an array (or other sequence) of integers of any\n length, or None. If seed is None, then RandomState will try to read data\n from /dev/urandom (or the Windows analogue) if available or seed from\n the clock otherwise.\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_seed(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_seed = 0;
- rk_error __pyx_v_errcode;
- PyArrayObject *arrayObject_obj;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- unsigned long __pyx_5;
- static char *__pyx_argnames[] = {"seed",0};
- __pyx_v_seed = __pyx_k3;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_seed)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_seed);
- arrayObject_obj = (void *)Py_None; Py_INCREF((PyObject *) arrayObject_obj);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":307 */
- __pyx_1 = __pyx_v_seed == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":308 */
- __pyx_v_errcode = rk_randomseed(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state);
- goto __pyx_L2;
- }
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; goto __pyx_L1;}
- Py_INCREF(__pyx_v_seed);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_seed);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; goto __pyx_L1;}
- __pyx_1 = __pyx_4 == __pyx_2;
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":310 */
- __pyx_5 = PyLong_AsUnsignedLong(__pyx_v_seed); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; goto __pyx_L1;}
- rk_seed(__pyx_5,((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state);
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":312 */
- __pyx_3 = ((PyObject *)PyArray_ContiguousFromObject(__pyx_v_seed,PyArray_LONG,1,1)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 312; goto __pyx_L1;}
- Py_INCREF(((PyObject *)__pyx_3));
- Py_DECREF(((PyObject *)arrayObject_obj));
- arrayObject_obj = ((PyArrayObject *)__pyx_3);
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":313 */
- init_by_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,((unsigned long (*))arrayObject_obj->data),(arrayObject_obj->dimensions[0]));
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.seed");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject_obj);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_seed);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_MT19937;
-
-
-static PyObject *__pyx_f_6mtrand_11RandomState_get_state(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_get_state[] = "Return a tuple representing the internal state of the generator.\n\n get_state() -> (\'MT19937\', int key[624], int pos)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_get_state(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyArrayObject *arrayObject_state;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
- Py_INCREF(__pyx_v_self);
- arrayObject_state = (void *)Py_None; Py_INCREF((PyObject *) arrayObject_state);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":322 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_empty); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_1 = PyInt_FromLong(624); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_4);
- __pyx_1 = 0;
- __pyx_4 = 0;
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_INCREF(((PyObject *)__pyx_1));
- Py_DECREF(((PyObject *)arrayObject_state));
- arrayObject_state = ((PyArrayObject *)__pyx_1);
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":323 */
- memcpy(((void (*))arrayObject_state->data),((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state->key,(624 * (sizeof(long ))));
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":324 */
- __pyx_4 = PyInt_FromLong(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state->pos); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; goto __pyx_L1;}
- Py_INCREF(__pyx_n_MT19937);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_n_MT19937);
- Py_INCREF(((PyObject *)arrayObject_state));
- PyTuple_SET_ITEM(__pyx_2, 1, ((PyObject *)arrayObject_state));
- PyTuple_SET_ITEM(__pyx_2, 2, __pyx_4);
- __pyx_4 = 0;
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.get_state");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject_state);
- Py_DECREF(__pyx_v_self);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_ValueError;
-
-static PyObject *__pyx_k62p;
-static PyObject *__pyx_k63p;
-
-static char (__pyx_k62[]) = "algorithm must be 'MT19937'";
-static char (__pyx_k63[]) = "state must be 624 longs";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_set_state(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_set_state[] = "Set the state from a tuple.\n \n state = (\'MT19937\', int key[624], int pos)\n \n set_state(state)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_set_state(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_state = 0;
- PyArrayObject *arrayObject_obj;
- int __pyx_v_pos;
- PyObject *__pyx_v_algorithm_name;
- PyObject *__pyx_v_key;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- int __pyx_3;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"state",0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_state)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_state);
- arrayObject_obj = (void *)Py_None; Py_INCREF((PyObject *) arrayObject_obj);
- __pyx_v_algorithm_name = Py_None; Py_INCREF(__pyx_v_algorithm_name);
- __pyx_v_key = Py_None; Py_INCREF(__pyx_v_key);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":335 */
- __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;}
- __pyx_2 = PyObject_GetItem(__pyx_v_state, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_v_algorithm_name);
- __pyx_v_algorithm_name = __pyx_2;
- __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":336 */
- if (PyObject_Cmp(__pyx_v_algorithm_name, __pyx_n_MT19937, &__pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; goto __pyx_L1;}
- __pyx_3 = __pyx_3 != 0;
- if (__pyx_3) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":337 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
- Py_INCREF(__pyx_k62p);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k62p);
- __pyx_4 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 337; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":338 */
- __pyx_1 = PySequence_GetSlice(__pyx_v_state, 1, 0x7fffffff); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;}
- __pyx_2 = __Pyx_UnpackItem(__pyx_1, 0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;}
- Py_DECREF(__pyx_v_key);
- __pyx_v_key = __pyx_2;
- __pyx_2 = 0;
- __pyx_4 = __Pyx_UnpackItem(__pyx_1, 1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;}
- __pyx_3 = PyInt_AsLong(__pyx_4); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;}
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- __pyx_v_pos = __pyx_3;
- if (__Pyx_EndUnpack(__pyx_1, 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":339 */
- __pyx_4 = ((PyObject *)PyArray_ContiguousFromObject(__pyx_v_key,PyArray_LONG,1,1)); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; goto __pyx_L1;}
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject_obj));
- arrayObject_obj = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":340 */
- __pyx_3 = ((arrayObject_obj->dimensions[0]) != 624);
- if (__pyx_3) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":341 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;}
- __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;}
- Py_INCREF(__pyx_k63p);
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_k63p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; goto __pyx_L1;}
- goto __pyx_L3;
- }
- __pyx_L3:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":342 */
- memcpy(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state->key,((void (*))arrayObject_obj->data),(624 * (sizeof(long ))));
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":343 */
- ((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state->pos = __pyx_v_pos;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.set_state");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject_obj);
- Py_DECREF(__pyx_v_algorithm_name);
- Py_DECREF(__pyx_v_key);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_state);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState___getstate__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static PyObject *__pyx_f_6mtrand_11RandomState___getstate__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- static char *__pyx_argnames[] = {0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
- Py_INCREF(__pyx_v_self);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":347 */
- __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_get_state); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_r = __pyx_3;
- __pyx_3 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.__getstate__");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState___setstate__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static PyObject *__pyx_f_6mtrand_11RandomState___setstate__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_state = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- static char *__pyx_argnames[] = {"state",0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_state)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_state);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":350 */
- __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_set_state); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
- Py_INCREF(__pyx_v_state);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_state);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.__setstate__");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_state);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_random;
-static PyObject *__pyx_n___RandomState_ctor;
-
-static PyObject *__pyx_f_6mtrand_11RandomState___reduce__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static PyObject *__pyx_f_6mtrand_11RandomState___reduce__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- PyObject *__pyx_5 = 0;
- static char *__pyx_argnames[] = {0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) return 0;
- Py_INCREF(__pyx_v_self);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":353 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_random); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n___RandomState_ctor); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyTuple_New(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_v_self, __pyx_n_get_state); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- __pyx_4 = PyTuple_New(0); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2);
- PyTuple_SET_ITEM(__pyx_3, 2, __pyx_5);
- __pyx_1 = 0;
- __pyx_2 = 0;
- __pyx_5 = 0;
- __pyx_r = __pyx_3;
- __pyx_3 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- Py_XDECREF(__pyx_5);
- __Pyx_AddTraceback("mtrand.RandomState.__reduce__");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_random_sample(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_random_sample[] = "Return random floats in the half-open interval [0.0, 1.0).\n\n random_sample(size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_random_sample(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"size",0};
- __pyx_v_size = __pyx_k4;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":361 */
- __pyx_1 = __pyx_f_6mtrand_cont0_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_double,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.random_sample");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_tomaxint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_tomaxint[] = "Returns random integers x such that 0 <= x <= sys.maxint.\n\n tomaxint(size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_tomaxint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"size",0};
- __pyx_v_size = __pyx_k5;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":368 */
- __pyx_1 = __pyx_f_6mtrand_disc0_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_long,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.tomaxint");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k64p;
-
-static char (__pyx_k64[]) = "low >= high";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_randint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_randint[] = "Return random integers x such that low <= x < high.\n\n randint(low, high=None, size=None) -> random values\n\n If high is None, then 0 <= x < low.\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_randint(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_low = 0;
- PyObject *__pyx_v_high = 0;
- PyObject *__pyx_v_size = 0;
- long __pyx_v_lo;
- long __pyx_v_hi;
- long __pyx_v_diff;
- long (*__pyx_v_array_data);
- PyArrayObject *arrayObject;
- long __pyx_v_length;
- long __pyx_v_i;
- PyObject *__pyx_r;
- int __pyx_1;
- long __pyx_2;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- PyObject *__pyx_5 = 0;
- static char *__pyx_argnames[] = {"low","high","size",0};
- __pyx_v_high = __pyx_k6;
- __pyx_v_size = __pyx_k7;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OO", __pyx_argnames, &__pyx_v_low, &__pyx_v_high, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_low);
- Py_INCREF(__pyx_v_high);
- Py_INCREF(__pyx_v_size);
- arrayObject = (void *)Py_None; Py_INCREF((PyObject *) arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":383 */
- __pyx_1 = __pyx_v_high == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":384 */
- __pyx_v_lo = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":385 */
- __pyx_2 = PyInt_AsLong(__pyx_v_low); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; goto __pyx_L1;}
- __pyx_v_hi = __pyx_2;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":387 */
- __pyx_2 = PyInt_AsLong(__pyx_v_low); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; goto __pyx_L1;}
- __pyx_v_lo = __pyx_2;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":388 */
- __pyx_2 = PyInt_AsLong(__pyx_v_high); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; goto __pyx_L1;}
- __pyx_v_hi = __pyx_2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":390 */
- __pyx_v_diff = ((__pyx_v_hi - __pyx_v_lo) - 1);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":391 */
- __pyx_1 = (__pyx_v_diff < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":392 */
- __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
- __pyx_4 = PyTuple_New(1); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
- Py_INCREF(__pyx_k64p);
- PyTuple_SET_ITEM(__pyx_4, 0, __pyx_k64p);
- __pyx_5 = PyObject_CallObject(__pyx_3, __pyx_4); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- __Pyx_Raise(__pyx_5, 0, 0);
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; goto __pyx_L1;}
- goto __pyx_L3;
- }
- __pyx_L3:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":394 */
- __pyx_1 = __pyx_v_size == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":395 */
- __pyx_3 = PyLong_FromUnsignedLong(rk_interval(__pyx_v_diff,((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state)); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; goto __pyx_L1;}
- __pyx_r = __pyx_3;
- __pyx_3 = 0;
- goto __pyx_L0;
- goto __pyx_L4;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":397 */
- __pyx_4 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- __pyx_5 = PyObject_GetAttr(__pyx_4, __pyx_n_empty); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- __pyx_4 = PyObject_GetAttr(__pyx_3, __pyx_n_Int); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_4);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_INCREF(((PyObject *)__pyx_4));
- Py_DECREF(((PyObject *)arrayObject));
- arrayObject = ((PyArrayObject *)__pyx_4);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":398 */
- __pyx_v_length = PyArray_SIZE(arrayObject);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":399 */
- __pyx_v_array_data = ((long (*))arrayObject->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":400 */
- for (__pyx_v_i = 0; __pyx_v_i < __pyx_v_length; ++__pyx_v_i) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":401 */
- (__pyx_v_array_data[__pyx_v_i]) = (__pyx_v_lo + ((long )rk_interval(__pyx_v_diff,((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state)));
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":402 */
- Py_INCREF(((PyObject *)arrayObject));
- __pyx_r = ((PyObject *)arrayObject);
- goto __pyx_L0;
- }
- __pyx_L4:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- Py_XDECREF(__pyx_5);
- __Pyx_AddTraceback("mtrand.RandomState.randint");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_low);
- Py_DECREF(__pyx_v_high);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_bytes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_bytes[] = "Return random bytes.\n\n bytes(length) -> str\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_bytes(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- unsigned int __pyx_v_length;
- void (*__pyx_v_bytes);
- PyObject *__pyx_v_bytestring;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"length",0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "i", __pyx_argnames, &__pyx_v_length)) return 0;
- Py_INCREF(__pyx_v_self);
- __pyx_v_bytestring = Py_None; Py_INCREF(__pyx_v_bytestring);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":410 */
- __pyx_v_bytes = PyMem_Malloc(__pyx_v_length);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":411 */
- rk_fill(__pyx_v_bytes,__pyx_v_length,((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":412 */
- __pyx_1 = PyString_FromString(((char (*))__pyx_v_bytes)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; goto __pyx_L1;}
- Py_DECREF(__pyx_v_bytestring);
- __pyx_v_bytestring = __pyx_1;
- __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":413 */
- PyMem_Free(__pyx_v_bytes);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":414 */
- Py_INCREF(__pyx_v_bytestring);
- __pyx_r = __pyx_v_bytestring;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.bytes");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_bytestring);
- Py_DECREF(__pyx_v_self);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_uniform(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_uniform[] = "Uniform distribution over [low, high).\n\n uniform(low=0.0, high=1.0, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_uniform(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_low;
- double __pyx_v_high;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"low","high","size",0};
- __pyx_v_low = __pyx_k8;
- __pyx_v_high = __pyx_k9;
- __pyx_v_size = __pyx_k10;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_low, &__pyx_v_high, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":421 */
- __pyx_1 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_uniform,__pyx_v_size,__pyx_v_low,(__pyx_v_high - __pyx_v_low)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 421; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.uniform");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_len;
-static PyObject *__pyx_n_size;
-
-
-static PyObject *__pyx_f_6mtrand_11RandomState_rand(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_rand[] = "Return an array of the given dimensions which is initialized to \n random numbers from a uniform distribution in the range [0,1).\n\n rand(d0, d1, ..., dn) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_rand(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_args = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- int __pyx_4;
- PyObject *__pyx_5 = 0;
- static char *__pyx_argnames[] = {0};
- if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 0, &__pyx_v_args, 0) < 0) return 0;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) {
- Py_XDECREF(__pyx_args);
- Py_XDECREF(__pyx_kwds);
- Py_XDECREF(__pyx_v_args);
- return 0;
- }
- Py_INCREF(__pyx_v_self);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":430 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; goto __pyx_L1;}
- Py_INCREF(__pyx_v_args);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_args);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; goto __pyx_L1;}
- if (PyObject_Cmp(__pyx_3, __pyx_1, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; goto __pyx_L1;}
- __pyx_4 = __pyx_4 == 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":431 */
- __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_random_sample); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;}
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 431; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":433 */
- __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_random_sample); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;}
- __pyx_1 = PyDict_New(); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;}
- if (PyDict_SetItem(__pyx_1, __pyx_n_size, __pyx_v_args) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;}
- __pyx_5 = PyEval_CallObjectWithKeywords(__pyx_2, __pyx_3, __pyx_1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 433; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_r = __pyx_5;
- __pyx_5 = 0;
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_5);
- __Pyx_AddTraceback("mtrand.RandomState.rand");
- __pyx_r = 0;
- __pyx_L0:;
- Py_XDECREF(__pyx_v_args);
- Py_DECREF(__pyx_v_self);
- Py_XDECREF(__pyx_args);
- Py_XDECREF(__pyx_kwds);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_randn(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_randn[] = "Returns zero-mean, unit-variance Gaussian random numbers in an \n array of shape (d0, d1, ..., dn).\n\n randn(d0, d1, ..., dn) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_randn(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_args = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- int __pyx_4;
- static char *__pyx_argnames[] = {0};
- if (__Pyx_GetStarArgs(&__pyx_args, &__pyx_kwds, __pyx_argnames, 0, &__pyx_v_args, 0) < 0) return 0;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "", __pyx_argnames)) {
- Py_XDECREF(__pyx_args);
- Py_XDECREF(__pyx_kwds);
- Py_XDECREF(__pyx_v_args);
- return 0;
- }
- Py_INCREF(__pyx_v_self);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":441 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;}
- Py_INCREF(__pyx_v_args);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_args);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = PyInt_FromLong(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;}
- if (PyObject_Cmp(__pyx_3, __pyx_1, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; goto __pyx_L1;}
- __pyx_4 = __pyx_4 == 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":442 */
- __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_standard_normal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; goto __pyx_L1;}
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":444 */
- __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_standard_normal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; goto __pyx_L1;}
- Py_INCREF(__pyx_v_args);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_args);
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 444; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
- }
- __pyx_L2:;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.randn");
- __pyx_r = 0;
- __pyx_L0:;
- Py_XDECREF(__pyx_v_args);
- Py_DECREF(__pyx_v_self);
- Py_XDECREF(__pyx_args);
- Py_XDECREF(__pyx_kwds);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_random_integers(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_random_integers[] = "Return random integers x such that low <= x <= high.\n\n random_integers(low, high=None, size=None) -> random values.\n\n If high is None, then 1 <= x <= low.\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_random_integers(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_low = 0;
- PyObject *__pyx_v_high = 0;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"low","high","size",0};
- __pyx_v_high = __pyx_k11;
- __pyx_v_size = __pyx_k12;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O|OO", __pyx_argnames, &__pyx_v_low, &__pyx_v_high, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_low);
- Py_INCREF(__pyx_v_high);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":453 */
- __pyx_1 = __pyx_v_high == Py_None;
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":454 */
- Py_INCREF(__pyx_v_low);
- Py_DECREF(__pyx_v_high);
- __pyx_v_high = __pyx_v_low;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":455 */
- __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; goto __pyx_L1;}
- Py_DECREF(__pyx_v_low);
- __pyx_v_low = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":456 */
- __pyx_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_randint); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;}
- __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;}
- __pyx_4 = PyNumber_Add(__pyx_v_high, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;}
- Py_INCREF(__pyx_v_low);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_low);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_4);
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_size);
- __pyx_4 = 0;
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_r = __pyx_4;
- __pyx_4 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.random_integers");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_low);
- Py_DECREF(__pyx_v_high);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_standard_normal[] = "Standard Normal distribution (mean=0, stdev=1).\n\n standard_normal(size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"size",0};
- __pyx_v_size = __pyx_k13;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":464 */
- __pyx_1 = __pyx_f_6mtrand_cont0_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_gauss,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 464; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.standard_normal");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k66p;
-
-static char (__pyx_k66[]) = "scale <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_normal[] = "Normal distribution (mean=loc, stdev=scale).\n\n normal(loc=0.0, scale=1.0, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_loc;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"loc","scale","size",0};
- __pyx_v_loc = __pyx_k14;
- __pyx_v_scale = __pyx_k15;
- __pyx_v_size = __pyx_k16;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_loc, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":471 */
- __pyx_1 = (__pyx_v_scale <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":472 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; goto __pyx_L1;}
- Py_INCREF(__pyx_k66p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k66p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":473 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_normal,__pyx_v_size,__pyx_v_loc,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.normal");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k67p;
-static PyObject *__pyx_k68p;
-
-static char (__pyx_k67[]) = "a <= 0";
-static char (__pyx_k68[]) = "b <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_beta(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_beta[] = "Beta distribution over [0, 1].\n\n beta(a, b, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_beta(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_a;
- double __pyx_v_b;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"a","b","size",0};
- __pyx_v_size = __pyx_k17;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "dd|O", __pyx_argnames, &__pyx_v_a, &__pyx_v_b, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":480 */
- __pyx_1 = (__pyx_v_a <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":481 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; goto __pyx_L1;}
- Py_INCREF(__pyx_k67p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k67p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_b <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":483 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
- Py_INCREF(__pyx_k68p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k68p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":484 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_beta,__pyx_v_size,__pyx_v_a,__pyx_v_b); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.beta");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k69p;
-
-static char (__pyx_k69[]) = "scale <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_exponential(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_exponential[] = "Exponential distribution.\n\n exponential(scale=1.0, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_exponential(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"scale","size",0};
- __pyx_v_scale = __pyx_k18;
- __pyx_v_size = __pyx_k19;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|dO", __pyx_argnames, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":491 */
- __pyx_1 = (__pyx_v_scale <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":492 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; goto __pyx_L1;}
- Py_INCREF(__pyx_k69p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k69p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":493 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_exponential,__pyx_v_size,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.exponential");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_exponential(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_standard_exponential[] = "Standard exponential distribution (scale=1).\n\n standard_exponential(size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_exponential(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"size",0};
- __pyx_v_size = __pyx_k20;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":500 */
- __pyx_1 = __pyx_f_6mtrand_cont0_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_standard_exponential,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.standard_exponential");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k70p;
-
-static char (__pyx_k70[]) = "shape <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_gamma(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_standard_gamma[] = "Standard Gamma distribution.\n\n standard_gamma(shape, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_gamma(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_shape;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"shape","size",0};
- __pyx_v_size = __pyx_k21;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_shape, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":507 */
- __pyx_1 = (__pyx_v_shape <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":508 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;}
- Py_INCREF(__pyx_k70p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k70p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 508; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":509 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_standard_gamma,__pyx_v_size,__pyx_v_shape); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.standard_gamma");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k71p;
-static PyObject *__pyx_k72p;
-
-static char (__pyx_k71[]) = "shape <= 0";
-static char (__pyx_k72[]) = "scale <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_gamma(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_gamma[] = "Gamma distribution.\n\n gamma(shape, scale=1.0, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_gamma(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_shape;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"shape","scale","size",0};
- __pyx_v_scale = __pyx_k22;
- __pyx_v_size = __pyx_k23;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|dO", __pyx_argnames, &__pyx_v_shape, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":516 */
- __pyx_1 = (__pyx_v_shape <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":517 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
- Py_INCREF(__pyx_k71p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k71p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_scale <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":519 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
- Py_INCREF(__pyx_k72p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k72p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":520 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_gamma,__pyx_v_size,__pyx_v_shape,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.gamma");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k73p;
-static PyObject *__pyx_k74p;
-
-static char (__pyx_k73[]) = "dfnum <= 0";
-static char (__pyx_k74[]) = "dfden <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_f(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_f[] = "F distribution.\n\n f(dfnum, dfden, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_f(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_dfnum;
- double __pyx_v_dfden;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"dfnum","dfden","size",0};
- __pyx_v_size = __pyx_k24;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "dd|O", __pyx_argnames, &__pyx_v_dfnum, &__pyx_v_dfden, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":527 */
- __pyx_1 = (__pyx_v_dfnum <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":528 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;}
- Py_INCREF(__pyx_k73p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k73p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_dfden <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":530 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;}
- Py_INCREF(__pyx_k74p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k74p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":531 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_f,__pyx_v_size,__pyx_v_dfnum,__pyx_v_dfden); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.f");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k75p;
-static PyObject *__pyx_k76p;
-static PyObject *__pyx_k77p;
-
-static char (__pyx_k75[]) = "dfnum <= 1";
-static char (__pyx_k76[]) = "dfden <= 0";
-static char (__pyx_k77[]) = "nonc < 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_noncentral_f(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_noncentral_f[] = "Noncentral F distribution.\n\n noncentral_f(dfnum, dfden, nonc, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_noncentral_f(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_dfnum;
- double __pyx_v_dfden;
- double __pyx_v_nonc;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"dfnum","dfden","nonc","size",0};
- __pyx_v_size = __pyx_k25;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ddd|O", __pyx_argnames, &__pyx_v_dfnum, &__pyx_v_dfden, &__pyx_v_nonc, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":538 */
- __pyx_1 = (__pyx_v_dfnum <= 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":539 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
- Py_INCREF(__pyx_k75p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k75p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_dfden <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":541 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;}
- Py_INCREF(__pyx_k76p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k76p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_nonc < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":543 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;}
- Py_INCREF(__pyx_k77p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k77p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":544 */
- __pyx_2 = __pyx_f_6mtrand_cont3_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_noncentral_f,__pyx_v_size,__pyx_v_dfnum,__pyx_v_dfden,__pyx_v_nonc); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.noncentral_f");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k78p;
-
-static char (__pyx_k78[]) = "df <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_chisquare(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_chisquare[] = "Chi^2 distribution.\n\n chisquare(df, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_chisquare(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_df;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"df","size",0};
- __pyx_v_size = __pyx_k26;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_df, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":552 */
- __pyx_1 = (__pyx_v_df <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":553 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; goto __pyx_L1;}
- Py_INCREF(__pyx_k78p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k78p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 553; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":554 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_chisquare,__pyx_v_size,__pyx_v_df); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.chisquare");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k79p;
-static PyObject *__pyx_k80p;
-
-static char (__pyx_k79[]) = "df <= 1";
-static char (__pyx_k80[]) = "nonc < 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_noncentral_chisquare(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_noncentral_chisquare[] = "Noncentral Chi^2 distribution.\n\n noncentral_chisquare(df, nonc, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_noncentral_chisquare(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_df;
- double __pyx_v_nonc;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"df","nonc","size",0};
- __pyx_v_size = __pyx_k27;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "dd|O", __pyx_argnames, &__pyx_v_df, &__pyx_v_nonc, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":561 */
- __pyx_1 = (__pyx_v_df <= 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":562 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;}
- Py_INCREF(__pyx_k79p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k79p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_nonc < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":564 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; goto __pyx_L1;}
- Py_INCREF(__pyx_k80p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k80p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":565 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_noncentral_chisquare,__pyx_v_size,__pyx_v_df,__pyx_v_nonc); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.noncentral_chisquare");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_cauchy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_standard_cauchy[] = "Standard Cauchy with mode=0.\n\n standard_cauchy(size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_cauchy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- static char *__pyx_argnames[] = {"size",0};
- __pyx_v_size = __pyx_k28;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|O", __pyx_argnames, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":573 */
- __pyx_1 = __pyx_f_6mtrand_cont0_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_standard_cauchy,__pyx_v_size); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 573; goto __pyx_L1;}
- __pyx_r = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- __Pyx_AddTraceback("mtrand.RandomState.standard_cauchy");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k81p;
-
-static char (__pyx_k81[]) = "df <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_t(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_standard_t[] = "Standard Student\'s t distribution with df degrees of freedom.\n\n standard_t(df, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_standard_t(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_df;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"df","size",0};
- __pyx_v_size = __pyx_k29;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_df, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":580 */
- __pyx_1 = (__pyx_v_df <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":581 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;}
- Py_INCREF(__pyx_k81p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k81p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":582 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_standard_t,__pyx_v_size,__pyx_v_df); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.standard_t");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k82p;
-
-static char (__pyx_k82[]) = "kappa < 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_vonmises(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_vonmises[] = "von Mises circular distribution with mode mu and dispersion parameter\n kappa on [-pi, pi].\n\n vonmises(mu, kappa, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_vonmises(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_mu;
- double __pyx_v_kappa;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"mu","kappa","size",0};
- __pyx_v_size = __pyx_k30;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "dd|O", __pyx_argnames, &__pyx_v_mu, &__pyx_v_kappa, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":590 */
- __pyx_1 = (__pyx_v_kappa < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":591 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
- Py_INCREF(__pyx_k82p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k82p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 591; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":592 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_vonmises,__pyx_v_size,__pyx_v_mu,__pyx_v_kappa); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.vonmises");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k83p;
-
-static char (__pyx_k83[]) = "a <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_pareto(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_pareto[] = "Pareto distribution.\n\n pareto(a, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_pareto(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_a;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"a","size",0};
- __pyx_v_size = __pyx_k31;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_a, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":599 */
- __pyx_1 = (__pyx_v_a <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":600 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; goto __pyx_L1;}
- Py_INCREF(__pyx_k83p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k83p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":601 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_pareto,__pyx_v_size,__pyx_v_a); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 601; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.pareto");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k84p;
-
-static char (__pyx_k84[]) = "a <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_weibull(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_weibull[] = "Weibull distribution.\n\n weibull(a, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_weibull(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_a;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"a","size",0};
- __pyx_v_size = __pyx_k32;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_a, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":608 */
- __pyx_1 = (__pyx_v_a <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":609 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; goto __pyx_L1;}
- Py_INCREF(__pyx_k84p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k84p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":610 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_weibull,__pyx_v_size,__pyx_v_a); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.weibull");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k85p;
-
-static char (__pyx_k85[]) = "a <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_power(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_power[] = "Power distribution.\n\n power(a, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_power(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_a;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"a","size",0};
- __pyx_v_size = __pyx_k33;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_a, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":617 */
- __pyx_1 = (__pyx_v_a <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":618 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; goto __pyx_L1;}
- Py_INCREF(__pyx_k85p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k85p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":619 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_power,__pyx_v_size,__pyx_v_a); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.power");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k86p;
-
-static char (__pyx_k86[]) = "scale <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_laplace(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_laplace[] = "Laplace distribution.\n \n laplace(loc=0.0, scale=1.0, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_laplace(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_loc;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"loc","scale","size",0};
- __pyx_v_loc = __pyx_k34;
- __pyx_v_scale = __pyx_k35;
- __pyx_v_size = __pyx_k36;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_loc, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":626 */
- __pyx_1 = (__pyx_v_scale <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":627 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; goto __pyx_L1;}
- Py_INCREF(__pyx_k86p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k86p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":628 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_laplace,__pyx_v_size,__pyx_v_loc,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.laplace");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k87p;
-
-static char (__pyx_k87[]) = "scale <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_gumbel(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_gumbel[] = "Gumbel distribution.\n \n gumbel(loc=0.0, scale=1.0, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_gumbel(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_loc;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"loc","scale","size",0};
- __pyx_v_loc = __pyx_k37;
- __pyx_v_scale = __pyx_k38;
- __pyx_v_size = __pyx_k39;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_loc, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":635 */
- __pyx_1 = (__pyx_v_scale <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":636 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;}
- Py_INCREF(__pyx_k87p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k87p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":637 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_gumbel,__pyx_v_size,__pyx_v_loc,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.gumbel");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k88p;
-
-static char (__pyx_k88[]) = "scale <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_logistic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_logistic[] = "Logistic distribution.\n \n logistic(loc=0.0, scale=1.0, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_logistic(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_loc;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"loc","scale","size",0};
- __pyx_v_loc = __pyx_k40;
- __pyx_v_scale = __pyx_k41;
- __pyx_v_size = __pyx_k42;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_loc, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":644 */
- __pyx_1 = (__pyx_v_scale <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":645 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;}
- Py_INCREF(__pyx_k88p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k88p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":646 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_logistic,__pyx_v_size,__pyx_v_loc,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.logistic");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k89p;
-
-static char (__pyx_k89[]) = "sigma <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_lognormal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_lognormal[] = "Log-normal distribution.\n \n Note that the mean parameter is not the mean of this distribution, but \n the underlying normal distribution.\n \n lognormal(mean, sigma) <=> exp(normal(mean, sigma))\n \n lognormal(mean=0.0, sigma=1.0, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_lognormal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_mean;
- double __pyx_v_sigma;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"mean","sigma","size",0};
- __pyx_v_mean = __pyx_k43;
- __pyx_v_sigma = __pyx_k44;
- __pyx_v_size = __pyx_k45;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|ddO", __pyx_argnames, &__pyx_v_mean, &__pyx_v_sigma, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":658 */
- __pyx_1 = (__pyx_v_sigma <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":659 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
- Py_INCREF(__pyx_k89p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k89p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":660 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_lognormal,__pyx_v_size,__pyx_v_mean,__pyx_v_sigma); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.lognormal");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k90p;
-
-static char (__pyx_k90[]) = "scale <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_rayleigh(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_rayleigh[] = "Rayleigh distribution.\n \n rayleigh(scale=1.0, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_rayleigh(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"scale","size",0};
- __pyx_v_scale = __pyx_k46;
- __pyx_v_size = __pyx_k47;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|dO", __pyx_argnames, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":667 */
- __pyx_1 = (__pyx_v_scale <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":668 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
- Py_INCREF(__pyx_k90p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k90p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 668; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":669 */
- __pyx_2 = __pyx_f_6mtrand_cont1_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_rayleigh,__pyx_v_size,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.rayleigh");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k91p;
-static PyObject *__pyx_k92p;
-
-static char (__pyx_k91[]) = "mean <= 0.0";
-static char (__pyx_k92[]) = "scale <= 0.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_wald(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_wald[] = "Wald (inverse Gaussian) distribution.\n \n wald(mean, scale, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_wald(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_mean;
- double __pyx_v_scale;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"mean","scale","size",0};
- __pyx_v_size = __pyx_k48;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "dd|O", __pyx_argnames, &__pyx_v_mean, &__pyx_v_scale, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":676 */
- __pyx_1 = (__pyx_v_mean <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":677 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
- Py_INCREF(__pyx_k91p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k91p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_scale <= 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":679 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;}
- Py_INCREF(__pyx_k92p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k92p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":680 */
- __pyx_2 = __pyx_f_6mtrand_cont2_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_wald,__pyx_v_size,__pyx_v_mean,__pyx_v_scale); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.wald");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k93p;
-static PyObject *__pyx_k94p;
-static PyObject *__pyx_k95p;
-
-static char (__pyx_k93[]) = "left > mode";
-static char (__pyx_k94[]) = "mode > right";
-static char (__pyx_k95[]) = "left == right";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_triangular(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_triangular[] = "Triangular distribution starting at left, peaking at mode, and \n ending at right (left <= mode <= right).\n \n triangular(left, mode, right, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_triangular(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_left;
- double __pyx_v_mode;
- double __pyx_v_right;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"left","mode","right","size",0};
- __pyx_v_size = __pyx_k49;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ddd|O", __pyx_argnames, &__pyx_v_left, &__pyx_v_mode, &__pyx_v_right, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":688 */
- __pyx_1 = (__pyx_v_left > __pyx_v_mode);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":689 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; goto __pyx_L1;}
- Py_INCREF(__pyx_k93p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k93p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_mode > __pyx_v_right);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":691 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;}
- Py_INCREF(__pyx_k94p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k94p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_left == __pyx_v_right);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":693 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
- Py_INCREF(__pyx_k95p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k95p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 693; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":694 */
- __pyx_2 = __pyx_f_6mtrand_cont3_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_triangular,__pyx_v_size,__pyx_v_left,__pyx_v_mode,__pyx_v_right); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.triangular");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k96p;
-static PyObject *__pyx_k97p;
-static PyObject *__pyx_k98p;
-
-static char (__pyx_k96[]) = "n <= 0";
-static char (__pyx_k97[]) = "p < 0";
-static char (__pyx_k98[]) = "p > 1";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_binomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_binomial[] = "Binomial distribution of n trials and p probability of success.\n\n binomial(n, p, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_binomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- long __pyx_v_n;
- double __pyx_v_p;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"n","p","size",0};
- __pyx_v_size = __pyx_k50;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ld|O", __pyx_argnames, &__pyx_v_n, &__pyx_v_p, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":703 */
- __pyx_1 = (__pyx_v_n <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":704 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; goto __pyx_L1;}
- Py_INCREF(__pyx_k96p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k96p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 704; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":706 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;}
- Py_INCREF(__pyx_k97p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k97p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p > 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":708 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;}
- Py_INCREF(__pyx_k98p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k98p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":709 */
- __pyx_2 = __pyx_f_6mtrand_discnp_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_binomial,__pyx_v_size,__pyx_v_n,__pyx_v_p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 709; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.binomial");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k99p;
-static PyObject *__pyx_k100p;
-static PyObject *__pyx_k101p;
-
-static char (__pyx_k99[]) = "n <= 0";
-static char (__pyx_k100[]) = "p < 0";
-static char (__pyx_k101[]) = "p > 1";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_negative_binomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_negative_binomial[] = "Negative Binomial distribution.\n\n negative_binomial(n, p, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_negative_binomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- long __pyx_v_n;
- double __pyx_v_p;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"n","p","size",0};
- __pyx_v_size = __pyx_k51;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "ld|O", __pyx_argnames, &__pyx_v_n, &__pyx_v_p, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":716 */
- __pyx_1 = (__pyx_v_n <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":717 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;}
- Py_INCREF(__pyx_k99p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k99p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":719 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;}
- Py_INCREF(__pyx_k100p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k100p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p > 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":721 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;}
- Py_INCREF(__pyx_k101p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k101p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":722 */
- __pyx_2 = __pyx_f_6mtrand_discnp_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_negative_binomial,__pyx_v_size,__pyx_v_n,__pyx_v_p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 722; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.negative_binomial");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k102p;
-
-static char (__pyx_k102[]) = "lam <= 0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_poisson(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_poisson[] = "Poisson distribution.\n\n poisson(lam=1.0, size=None) -> random values\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_poisson(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_lam;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"lam","size",0};
- __pyx_v_lam = __pyx_k52;
- __pyx_v_size = __pyx_k53;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "|dO", __pyx_argnames, &__pyx_v_lam, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":730 */
- __pyx_1 = (__pyx_v_lam <= 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":731 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;}
- Py_INCREF(__pyx_k102p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k102p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":732 */
- __pyx_2 = __pyx_f_6mtrand_discd_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_poisson,__pyx_v_size,__pyx_v_lam); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 732; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.poisson");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k103p;
-
-static char (__pyx_k103[]) = "a <= 1.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_zipf(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_zipf[] = "Zipf distribution.\n \n zipf(a, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_zipf(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_a;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"a","size",0};
- __pyx_v_size = __pyx_k54;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_a, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":739 */
- __pyx_1 = (__pyx_v_a <= 1.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":740 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
- Py_INCREF(__pyx_k103p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k103p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 740; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":741 */
- __pyx_2 = __pyx_f_6mtrand_discd_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_zipf,__pyx_v_size,__pyx_v_a); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.zipf");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k104p;
-static PyObject *__pyx_k105p;
-
-static char (__pyx_k104[]) = "p < 0.0";
-static char (__pyx_k105[]) = "p > 1.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_geometric(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_geometric[] = "Geometric distribution with p being the probability of \"success\" on\n an individual trial.\n \n geometric(p, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_geometric(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_p;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"p","size",0};
- __pyx_v_size = __pyx_k55;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_p, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":749 */
- __pyx_1 = (__pyx_v_p < 0.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":750 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;}
- Py_INCREF(__pyx_k104p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k104p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p > 1.0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":752 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; goto __pyx_L1;}
- Py_INCREF(__pyx_k105p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k105p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 752; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":753 */
- __pyx_2 = __pyx_f_6mtrand_discd_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_geometric,__pyx_v_size,__pyx_v_p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.geometric");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k106p;
-static PyObject *__pyx_k107p;
-static PyObject *__pyx_k108p;
-static PyObject *__pyx_k109p;
-
-static char (__pyx_k106[]) = "ngood < 1";
-static char (__pyx_k107[]) = "nbad < 1";
-static char (__pyx_k108[]) = "ngood + nbad < nsample";
-static char (__pyx_k109[]) = "nsample < 1";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_hypergeometric(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_hypergeometric[] = "Hypergeometric distribution.\n \n Consider an urn with ngood \"good\" balls and nbad \"bad\" balls. If one \n were to draw nsample balls from the urn without replacement, then \n the hypergeometric distribution describes the distribution of \"good\" \n balls in the sample.\n \n hypergeometric(ngood, nbad, nsample, size=None) \n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_hypergeometric(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- long __pyx_v_ngood;
- long __pyx_v_nbad;
- long __pyx_v_nsample;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"ngood","nbad","nsample","size",0};
- __pyx_v_size = __pyx_k56;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "lll|O", __pyx_argnames, &__pyx_v_ngood, &__pyx_v_nbad, &__pyx_v_nsample, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":765 */
- __pyx_1 = (__pyx_v_ngood < 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":766 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
- Py_INCREF(__pyx_k106p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k106p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_nbad < 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":768 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; goto __pyx_L1;}
- Py_INCREF(__pyx_k107p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k107p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = ((__pyx_v_ngood + __pyx_v_nbad) < __pyx_v_nsample);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":770 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;}
- Py_INCREF(__pyx_k108p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k108p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 770; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_nsample < 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":772 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;}
- Py_INCREF(__pyx_k109p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k109p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 772; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":773 */
- __pyx_2 = __pyx_f_6mtrand_discnmN_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_hypergeometric,__pyx_v_size,__pyx_v_ngood,__pyx_v_nbad,__pyx_v_nsample); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.hypergeometric");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_k110p;
-static PyObject *__pyx_k111p;
-
-static char (__pyx_k110[]) = "p < 0";
-static char (__pyx_k111[]) = "p > 1";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_logseries(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_logseries[] = "Logarithmic series distribution.\n \n logseries(p, size=None)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_logseries(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- double __pyx_v_p;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_r;
- int __pyx_1;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- PyObject *__pyx_4 = 0;
- static char *__pyx_argnames[] = {"p","size",0};
- __pyx_v_size = __pyx_k57;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "d|O", __pyx_argnames, &__pyx_v_p, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_size);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":781 */
- __pyx_1 = (__pyx_v_p < 0);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":782 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; goto __pyx_L1;}
- Py_INCREF(__pyx_k110p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k110p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 782; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_1 = (__pyx_v_p > 1);
- if (__pyx_1) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":784 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; goto __pyx_L1;}
- Py_INCREF(__pyx_k111p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k111p);
- __pyx_4 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_4) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_4, 0, 0);
- Py_DECREF(__pyx_4); __pyx_4 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 784; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":785 */
- __pyx_2 = __pyx_f_6mtrand_discd_array(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,rk_logseries,__pyx_v_size,__pyx_v_p); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; goto __pyx_L1;}
- __pyx_r = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_4);
- __Pyx_AddTraceback("mtrand.RandomState.logseries");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_array;
-static PyObject *__pyx_n_shape;
-static PyObject *__pyx_n_ArgumentError;
-static PyObject *__pyx_n_isinstance;
-static PyObject *__pyx_n_list;
-static PyObject *__pyx_n_append;
-static PyObject *__pyx_n_multiply;
-static PyObject *__pyx_n_reduce;
-static PyObject *__pyx_n_svd;
-static PyObject *__pyx_n_matrixmultiply;
-static PyObject *__pyx_n_sqrt;
-static PyObject *__pyx_n_add;
-static PyObject *__pyx_n_tuple;
-
-static PyObject *__pyx_k112p;
-static PyObject *__pyx_k113p;
-static PyObject *__pyx_k114p;
-static PyObject *__pyx_k115p;
-
-static char (__pyx_k112[]) = "mean must be 1 dimensional";
-static char (__pyx_k113[]) = "cov must be 2 dimensional and square";
-static char (__pyx_k114[]) = "mean and cov must have same length";
-static char (__pyx_k115[]) = "numpy.corelinalg";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_multivariate_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_multivariate_normal[] = "Return an array containing multivariate normally distributed random numbers\n with specified mean and covariance.\n\n multivariate_normal(mean, cov) -> random values\n multivariate_normal(mean, cov, [m, n, ...]) -> random values\n\n mean must be a 1 dimensional array. cov must be a square two dimensional\n array with the same number of rows and columns as mean has elements.\n\n The first form returns a single 1-D array containing a multivariate\n normal.\n\n The second form returns an array of shape (m, n, ..., cov.shape[0]).\n In this case, output[i,j,...,:] is a 1-D array containing a multivariate\n normal.\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_multivariate_normal(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_mean = 0;
- PyObject *__pyx_v_cov = 0;
- PyObject *__pyx_v_size = 0;
- PyObject *__pyx_v_shape;
- PyObject *__pyx_v_final_shape;
- PyObject *__pyx_v_x;
- PyObject *__pyx_v_svd;
- PyObject *__pyx_v_u;
- PyObject *__pyx_v_s;
- PyObject *__pyx_v_v;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- int __pyx_4;
- PyObject *__pyx_5 = 0;
- static char *__pyx_argnames[] = {"mean","cov","size",0};
- __pyx_v_size = __pyx_k58;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "OO|O", __pyx_argnames, &__pyx_v_mean, &__pyx_v_cov, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_mean);
- Py_INCREF(__pyx_v_cov);
- Py_INCREF(__pyx_v_size);
- __pyx_v_shape = Py_None; Py_INCREF(__pyx_v_shape);
- __pyx_v_final_shape = Py_None; Py_INCREF(__pyx_v_final_shape);
- __pyx_v_x = Py_None; Py_INCREF(__pyx_v_x);
- __pyx_v_svd = Py_None; Py_INCREF(__pyx_v_svd);
- __pyx_v_u = Py_None; Py_INCREF(__pyx_v_u);
- __pyx_v_s = Py_None; Py_INCREF(__pyx_v_s);
- __pyx_v_v = Py_None; Py_INCREF(__pyx_v_v);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":806 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_array); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;}
- Py_INCREF(__pyx_v_mean);
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_mean);
- __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_v_mean);
- __pyx_v_mean = __pyx_3;
- __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":807 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; goto __pyx_L1;}
- __pyx_1 = PyObject_GetAttr(__pyx_2, __pyx_n_array); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; goto __pyx_L1;}
- Py_INCREF(__pyx_v_cov);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_cov);
- __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 807; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_v_cov);
- __pyx_v_cov = __pyx_2;
- __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":808 */
- __pyx_4 = __pyx_v_size == Py_None;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":809 */
- __pyx_1 = PyList_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 809; goto __pyx_L1;}
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":811 */
- Py_INCREF(__pyx_v_size);
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_v_size;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":812 */
- __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_v_mean, __pyx_n_shape); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_2);
- __pyx_2 = 0;
- __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_3 = PyInt_FromLong(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- if (PyObject_Cmp(__pyx_2, __pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; goto __pyx_L1;}
- __pyx_4 = __pyx_4 != 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":813 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ArgumentError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; goto __pyx_L1;}
- Py_INCREF(__pyx_k112p);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k112p);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __Pyx_Raise(__pyx_3, 0, 0);
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 813; goto __pyx_L1;}
- goto __pyx_L3;
- }
- __pyx_L3:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":814 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_v_cov, __pyx_n_shape); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
- __pyx_2 = 0;
- __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_1 = PyInt_FromLong(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- if (PyObject_Cmp(__pyx_2, __pyx_1, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_4 = __pyx_4 != 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (!__pyx_4) {
- __pyx_3 = PyObject_GetAttr(__pyx_v_cov, __pyx_n_shape); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_1 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_3 = PyObject_GetAttr(__pyx_v_cov, __pyx_n_shape); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_2 = PyInt_FromLong(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_5 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- if (PyObject_Cmp(__pyx_1, __pyx_5, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; goto __pyx_L1;}
- __pyx_4 = __pyx_4 != 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- }
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":815 */
- __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_ArgumentError); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;}
- Py_INCREF(__pyx_k113p);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_k113p);
- __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __Pyx_Raise(__pyx_1, 0, 0);
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; goto __pyx_L1;}
- goto __pyx_L4;
- }
- __pyx_L4:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":816 */
- __pyx_5 = PyObject_GetAttr(__pyx_v_mean, __pyx_n_shape); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- __pyx_3 = PyInt_FromLong(0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- __pyx_2 = PyObject_GetItem(__pyx_5, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_1 = PyObject_GetAttr(__pyx_v_cov, __pyx_n_shape); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- __pyx_5 = PyInt_FromLong(0); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- __pyx_3 = PyObject_GetItem(__pyx_1, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- if (PyObject_Cmp(__pyx_2, __pyx_3, &__pyx_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 816; goto __pyx_L1;}
- __pyx_4 = __pyx_4 != 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":817 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_ArgumentError); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;}
- Py_INCREF(__pyx_k114p);
- PyTuple_SET_ITEM(__pyx_5, 0, __pyx_k114p);
- __pyx_2 = PyObject_CallObject(__pyx_1, __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __Pyx_Raise(__pyx_2, 0, 0);
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; goto __pyx_L1;}
- goto __pyx_L5;
- }
- __pyx_L5:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":819 */
- __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_isinstance); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;}
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;}
- Py_INCREF(__pyx_v_shape);
- PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_shape);
- PyTuple_SET_ITEM(__pyx_5, 1, __pyx_1);
- __pyx_1 = 0;
- __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_5); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __pyx_4 = PyObject_IsTrue(__pyx_2); if (__pyx_4 < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 819; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":820 */
- __pyx_1 = PyList_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; goto __pyx_L1;}
- Py_INCREF(__pyx_v_shape);
- PyList_SET_ITEM(__pyx_1, 0, __pyx_v_shape);
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_1;
- __pyx_1 = 0;
- goto __pyx_L6;
- }
- __pyx_L6:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":821 */
- __pyx_3 = __Pyx_GetName(__pyx_b, __pyx_n_list); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; goto __pyx_L1;}
- __pyx_5 = PySequence_GetSlice(__pyx_v_shape, 0, 0x7fffffff); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_5);
- __pyx_5 = 0;
- __pyx_1 = PyObject_CallObject(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_v_final_shape);
- __pyx_v_final_shape = __pyx_1;
- __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":822 */
- __pyx_5 = PyObject_GetAttr(__pyx_v_final_shape, __pyx_n_append); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_v_mean, __pyx_n_shape); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- __pyx_1 = PyObject_GetItem(__pyx_3, __pyx_2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_1);
- __pyx_1 = 0;
- __pyx_2 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":826 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n_standard_normal); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- __pyx_5 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_5, __pyx_n_multiply); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __pyx_2 = PyObject_GetAttr(__pyx_3, __pyx_n_reduce); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- Py_INCREF(__pyx_v_final_shape);
- PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_final_shape);
- __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_3);
- __pyx_3 = 0;
- __pyx_5 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 826; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_v_x);
- __pyx_v_x = __pyx_5;
- __pyx_5 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":827 */
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_multiply); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_reduce); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_5 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_INCREF(__pyx_v_final_shape);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_final_shape);
- __pyx_1 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_5 = PyInt_FromLong(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- __pyx_3 = PyNumber_Subtract(__pyx_1, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_1 = PySequence_GetSlice(__pyx_v_final_shape, 0, __pyx_4); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_5, 0, __pyx_1);
- __pyx_1 = 0;
- __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- __pyx_1 = PyObject_GetAttr(__pyx_v_mean, __pyx_n_shape); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;}
- __pyx_2 = PyInt_FromLong(0); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;}
- __pyx_5 = PyObject_GetItem(__pyx_1, __pyx_2); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 828; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = PyTuple_New(2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_3);
- PyTuple_SET_ITEM(__pyx_1, 1, __pyx_5);
- __pyx_3 = 0;
- __pyx_5 = 0;
- if (PyObject_SetAttr(__pyx_v_x, __pyx_n_shape, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":836 */
- __pyx_2 = PyList_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;}
- Py_INCREF(__pyx_n_svd);
- PyList_SET_ITEM(__pyx_2, 0, __pyx_n_svd);
- __pyx_3 = __Pyx_Import(__pyx_k115p, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_5 = PyObject_GetAttr(__pyx_3, __pyx_n_svd); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 836; goto __pyx_L1;}
- Py_DECREF(__pyx_v_svd);
- __pyx_v_svd = __pyx_5;
- __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":838 */
- __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_INCREF(__pyx_v_cov);
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_cov);
- __pyx_2 = PyObject_CallObject(__pyx_v_svd, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_3 = __Pyx_UnpackItem(__pyx_2, 0); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_DECREF(__pyx_v_u);
- __pyx_v_u = __pyx_3;
- __pyx_3 = 0;
- __pyx_5 = __Pyx_UnpackItem(__pyx_2, 1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_DECREF(__pyx_v_s);
- __pyx_v_s = __pyx_5;
- __pyx_5 = 0;
- __pyx_1 = __Pyx_UnpackItem(__pyx_2, 2); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_DECREF(__pyx_v_v);
- __pyx_v_v = __pyx_1;
- __pyx_1 = 0;
- if (__Pyx_EndUnpack(__pyx_2, 3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 838; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":839 */
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- __pyx_5 = PyObject_GetAttr(__pyx_3, __pyx_n_matrixmultiply); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_sqrt); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_INCREF(__pyx_v_s);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_s);
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_2 = PyNumber_Multiply(__pyx_v_x, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
- Py_INCREF(__pyx_v_v);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_v);
- __pyx_2 = 0;
- __pyx_1 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 839; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_v_x);
- __pyx_v_x = __pyx_1;
- __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":842 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; goto __pyx_L1;}
- __pyx_5 = PyObject_GetAttr(__pyx_2, __pyx_n_add); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_3 = PyTuple_New(3); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; goto __pyx_L1;}
- Py_INCREF(__pyx_v_mean);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_mean);
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_v_x);
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_3, 2, __pyx_v_x);
- __pyx_1 = PyObject_CallObject(__pyx_5, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 842; goto __pyx_L1;}
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":843 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_tuple); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; goto __pyx_L1;}
- __pyx_5 = PyTuple_New(1); if (!__pyx_5) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; goto __pyx_L1;}
- Py_INCREF(__pyx_v_final_shape);
- PyTuple_SET_ITEM(__pyx_5, 0, __pyx_v_final_shape);
- __pyx_3 = PyObject_CallObject(__pyx_2, __pyx_5); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_5); __pyx_5 = 0;
- if (PyObject_SetAttr(__pyx_v_x, __pyx_n_shape, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":844 */
- Py_INCREF(__pyx_v_x);
- __pyx_r = __pyx_v_x;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- Py_XDECREF(__pyx_5);
- __Pyx_AddTraceback("mtrand.RandomState.multivariate_normal");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_shape);
- Py_DECREF(__pyx_v_final_shape);
- Py_DECREF(__pyx_v_x);
- Py_DECREF(__pyx_v_svd);
- Py_DECREF(__pyx_v_u);
- Py_DECREF(__pyx_v_s);
- Py_DECREF(__pyx_v_v);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_mean);
- Py_DECREF(__pyx_v_cov);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_zeros;
-
-static PyObject *__pyx_k117p;
-
-static char (__pyx_k117[]) = "sum(pvals) > 1.0";
-
-static PyObject *__pyx_f_6mtrand_11RandomState_multinomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_multinomial[] = "Multinomial distribution.\n \n multinomial(n, pvals, size=None) -> random values\n\n pvals is a sequence of probabilities that should sum to 1 (however, the\n last element is always assumed to account for the remaining probability\n as long as sum(pvals[:-1]) <= 1).\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_multinomial(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- long __pyx_v_n;
- PyObject *__pyx_v_pvals = 0;
- PyObject *__pyx_v_size = 0;
- long __pyx_v_d;
- PyArrayObject *arrayObject_parr;
- PyArrayObject *arrayObject_mnarr;
- double (*__pyx_v_pix);
- long (*__pyx_v_mnix);
- long __pyx_v_i;
- long __pyx_v_j;
- long __pyx_v_dn;
- double __pyx_v_Sum;
- PyObject *__pyx_v_shape;
- PyObject *__pyx_v_multin;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- long __pyx_4;
- int __pyx_5;
- static char *__pyx_argnames[] = {"n","pvals","size",0};
- __pyx_v_size = __pyx_k59;
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "lO|O", __pyx_argnames, &__pyx_v_n, &__pyx_v_pvals, &__pyx_v_size)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_pvals);
- Py_INCREF(__pyx_v_size);
- arrayObject_parr = (void *)Py_None; Py_INCREF((PyObject *) arrayObject_parr);
- arrayObject_mnarr = (void *)Py_None; Py_INCREF((PyObject *) arrayObject_mnarr);
- __pyx_v_shape = Py_None; Py_INCREF(__pyx_v_shape);
- __pyx_v_multin = Py_None; Py_INCREF(__pyx_v_multin);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":862 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; goto __pyx_L1;}
- Py_INCREF(__pyx_v_pvals);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_pvals);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_4 = PyInt_AsLong(__pyx_3); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_v_d = __pyx_4;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":863 */
- __pyx_1 = ((PyObject *)PyArray_ContiguousFromObject(__pyx_v_pvals,PyArray_DOUBLE,1,1)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; goto __pyx_L1;}
- Py_INCREF(((PyObject *)__pyx_1));
- Py_DECREF(((PyObject *)arrayObject_parr));
- arrayObject_parr = ((PyArrayObject *)__pyx_1);
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":864 */
- __pyx_v_pix = ((double (*))arrayObject_parr->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":866 */
- __pyx_5 = (__pyx_f_6mtrand_kahan_sum(__pyx_v_pix,(__pyx_v_d - 1)) > 1.0);
- if (__pyx_5) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":867 */
- __pyx_2 = __Pyx_GetName(__pyx_b, __pyx_n_ValueError); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; goto __pyx_L1;}
- Py_INCREF(__pyx_k117p);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_k117p);
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __Pyx_Raise(__pyx_1, 0, 0);
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; goto __pyx_L1;}
- goto __pyx_L2;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":869 */
- __pyx_5 = __pyx_v_size == Py_None;
- if (__pyx_5) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":870 */
- __pyx_2 = PyInt_FromLong(__pyx_v_d); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(1); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_2);
- __pyx_2 = 0;
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_3;
- __pyx_3 = 0;
- goto __pyx_L3;
- }
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_size);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; goto __pyx_L1;}
- __pyx_5 = __pyx_3 == __pyx_1;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (__pyx_5) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":872 */
- __pyx_2 = PyInt_FromLong(__pyx_v_d); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; goto __pyx_L1;}
- __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; goto __pyx_L1;}
- Py_INCREF(__pyx_v_size);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_size);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_2);
- __pyx_2 = 0;
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_3;
- __pyx_3 = 0;
- goto __pyx_L3;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":874 */
- __pyx_1 = PyInt_FromLong(__pyx_v_d); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; goto __pyx_L1;}
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_1);
- __pyx_1 = 0;
- __pyx_3 = PyNumber_Add(__pyx_v_size, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_v_shape);
- __pyx_v_shape = __pyx_3;
- __pyx_3 = 0;
- }
- __pyx_L3:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":876 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_zeros); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_Int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_3 = PyTuple_New(2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- Py_INCREF(__pyx_v_shape);
- PyTuple_SET_ITEM(__pyx_3, 0, __pyx_v_shape);
- PyTuple_SET_ITEM(__pyx_3, 1, __pyx_1);
- __pyx_1 = 0;
- __pyx_1 = PyObject_CallObject(__pyx_2, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_v_multin);
- __pyx_v_multin = __pyx_1;
- __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":877 */
- Py_INCREF(((PyObject *)__pyx_v_multin));
- Py_DECREF(((PyObject *)arrayObject_mnarr));
- arrayObject_mnarr = ((PyArrayObject *)__pyx_v_multin);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":878 */
- __pyx_v_mnix = ((long (*))arrayObject_mnarr->data);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":879 */
- __pyx_v_i = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":880 */
- while (1) {
- __pyx_5 = (__pyx_v_i < PyArray_SIZE(arrayObject_mnarr));
- if (!__pyx_5) break;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":881 */
- __pyx_v_Sum = 1.0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":882 */
- __pyx_v_dn = __pyx_v_n;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":883 */
- __pyx_4 = (__pyx_v_d - 1);
- for (__pyx_v_j = 0; __pyx_v_j < __pyx_4; ++__pyx_v_j) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":884 */
- (__pyx_v_mnix[(__pyx_v_i + __pyx_v_j)]) = rk_binomial(((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state,__pyx_v_dn,((__pyx_v_pix[__pyx_v_j]) / __pyx_v_Sum));
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":885 */
- __pyx_v_dn = (__pyx_v_dn - (__pyx_v_mnix[(__pyx_v_i + __pyx_v_j)]));
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":886 */
- __pyx_5 = (__pyx_v_dn <= 0);
- if (__pyx_5) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":887 */
- goto __pyx_L7;
- goto __pyx_L8;
- }
- __pyx_L8:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":888 */
- __pyx_v_Sum = (__pyx_v_Sum - (__pyx_v_pix[__pyx_v_j]));
- }
- __pyx_L7:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":889 */
- __pyx_5 = (__pyx_v_dn > 0);
- if (__pyx_5) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":890 */
- (__pyx_v_mnix[((__pyx_v_i + __pyx_v_d) - 1)]) = __pyx_v_dn;
- goto __pyx_L9;
- }
- __pyx_L9:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":892 */
- __pyx_v_i = (__pyx_v_i + __pyx_v_d);
- }
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":894 */
- Py_INCREF(__pyx_v_multin);
- __pyx_r = __pyx_v_multin;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.multinomial");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(arrayObject_parr);
- Py_DECREF(arrayObject_mnarr);
- Py_DECREF(__pyx_v_shape);
- Py_DECREF(__pyx_v_multin);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_pvals);
- Py_DECREF(__pyx_v_size);
- return __pyx_r;
-}
-
-static PyObject *__pyx_f_6mtrand_11RandomState_shuffle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_shuffle[] = "Modify a sequence in-place by shuffling its contents.\n \n shuffle(x)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_shuffle(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_x = 0;
- long __pyx_v_i;
- long __pyx_v_j;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- long __pyx_4;
- int __pyx_5;
- static char *__pyx_argnames[] = {"x",0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_x)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_x);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":905 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_len); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_x);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = PyInt_FromLong(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- __pyx_2 = PyNumber_Subtract(__pyx_3, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_4 = PyInt_AsLong(__pyx_2); if (PyErr_Occurred()) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_v_i = __pyx_4;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":906 */
- while (1) {
- __pyx_5 = (__pyx_v_i > 0);
- if (!__pyx_5) break;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":907 */
- __pyx_v_j = rk_interval(__pyx_v_i,((struct __pyx_obj_6mtrand_RandomState *)__pyx_v_self)->internal_state);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":908 */
- __pyx_3 = PyInt_FromLong(__pyx_v_j); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- __pyx_1 = PyObject_GetItem(__pyx_v_x, __pyx_3); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_2 = PyInt_FromLong(__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- __pyx_3 = PyObject_GetItem(__pyx_v_x, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_2 = PyInt_FromLong(__pyx_v_i); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- if (PyObject_SetItem(__pyx_v_x, __pyx_2, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- __pyx_2 = PyInt_FromLong(__pyx_v_j); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- if (PyObject_SetItem(__pyx_v_x, __pyx_2, __pyx_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":909 */
- __pyx_v_i = (__pyx_v_i - 1);
- }
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.shuffle");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_x);
- return __pyx_r;
-}
-
-static PyObject *__pyx_n_arange;
-
-static PyObject *__pyx_f_6mtrand_11RandomState_permutation(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
-static char __pyx_doc_6mtrand_11RandomState_permutation[] = "Given an integer, return a shuffled sequence of integers >= 0 and \n < x; given a sequence, return a shuffled array copy.\n\n permutation(x)\n ";
-static PyObject *__pyx_f_6mtrand_11RandomState_permutation(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
- PyObject *__pyx_v_x = 0;
- PyObject *__pyx_v_arr;
- PyObject *__pyx_r;
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- PyObject *__pyx_3 = 0;
- int __pyx_4;
- static char *__pyx_argnames[] = {"x",0};
- if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "O", __pyx_argnames, &__pyx_v_x)) return 0;
- Py_INCREF(__pyx_v_self);
- Py_INCREF(__pyx_v_x);
- __pyx_v_arr = Py_None; Py_INCREF(__pyx_v_arr);
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":917 */
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_type); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;}
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_x);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = __Pyx_GetName(__pyx_b, __pyx_n_int); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; goto __pyx_L1;}
- __pyx_4 = __pyx_3 == __pyx_1;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (__pyx_4) {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":918 */
- __pyx_2 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;}
- __pyx_3 = PyObject_GetAttr(__pyx_2, __pyx_n_arange); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- __pyx_1 = PyTuple_New(1); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;}
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_1, 0, __pyx_v_x);
- __pyx_2 = PyObject_CallObject(__pyx_3, __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 918; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_v_arr);
- __pyx_v_arr = __pyx_2;
- __pyx_2 = 0;
- goto __pyx_L2;
- }
- /*else*/ {
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":920 */
- __pyx_3 = __Pyx_GetName(__pyx_m, __pyx_n__sp); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;}
- __pyx_1 = PyObject_GetAttr(__pyx_3, __pyx_n_array); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;}
- Py_DECREF(__pyx_3); __pyx_3 = 0;
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;}
- Py_INCREF(__pyx_v_x);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_x);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_v_arr);
- __pyx_v_arr = __pyx_3;
- __pyx_3 = 0;
- }
- __pyx_L2:;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":921 */
- __pyx_1 = PyObject_GetAttr(__pyx_v_self, __pyx_n_shuffle); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;}
- __pyx_2 = PyTuple_New(1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;}
- Py_INCREF(__pyx_v_arr);
- PyTuple_SET_ITEM(__pyx_2, 0, __pyx_v_arr);
- __pyx_3 = PyObject_CallObject(__pyx_1, __pyx_2); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- Py_DECREF(__pyx_3); __pyx_3 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":922 */
- Py_INCREF(__pyx_v_arr);
- __pyx_r = __pyx_v_arr;
- goto __pyx_L0;
-
- __pyx_r = Py_None; Py_INCREF(__pyx_r);
- goto __pyx_L0;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- Py_XDECREF(__pyx_3);
- __Pyx_AddTraceback("mtrand.RandomState.permutation");
- __pyx_r = 0;
- __pyx_L0:;
- Py_DECREF(__pyx_v_arr);
- Py_DECREF(__pyx_v_self);
- Py_DECREF(__pyx_v_x);
- return __pyx_r;
-}
-
-static __Pyx_InternTabEntry __pyx_intern_tab[] = {
- {&__pyx_n_ArgumentError, "ArgumentError"},
- {&__pyx_n_Float64, "Float64"},
- {&__pyx_n_Int, "Int"},
- {&__pyx_n_MT19937, "MT19937"},
- {&__pyx_n_ValueError, "ValueError"},
- {&__pyx_n___RandomState_ctor, "__RandomState_ctor"},
- {&__pyx_n__rand, "_rand"},
- {&__pyx_n__sp, "_sp"},
- {&__pyx_n_add, "add"},
- {&__pyx_n_append, "append"},
- {&__pyx_n_arange, "arange"},
- {&__pyx_n_array, "array"},
- {&__pyx_n_beta, "beta"},
- {&__pyx_n_binomial, "binomial"},
- {&__pyx_n_bytes, "bytes"},
- {&__pyx_n_chisquare, "chisquare"},
- {&__pyx_n_empty, "empty"},
- {&__pyx_n_exponential, "exponential"},
- {&__pyx_n_f, "f"},
- {&__pyx_n_gamma, "gamma"},
- {&__pyx_n_geometric, "geometric"},
- {&__pyx_n_get_state, "get_state"},
- {&__pyx_n_gumbel, "gumbel"},
- {&__pyx_n_hypergeometric, "hypergeometric"},
- {&__pyx_n_int, "int"},
- {&__pyx_n_isinstance, "isinstance"},
- {&__pyx_n_laplace, "laplace"},
- {&__pyx_n_len, "len"},
- {&__pyx_n_list, "list"},
- {&__pyx_n_logistic, "logistic"},
- {&__pyx_n_lognormal, "lognormal"},
- {&__pyx_n_logseries, "logseries"},
- {&__pyx_n_matrixmultiply, "matrixmultiply"},
- {&__pyx_n_multinomial, "multinomial"},
- {&__pyx_n_multiply, "multiply"},
- {&__pyx_n_multivariate_normal, "multivariate_normal"},
- {&__pyx_n_negative_binomial, "negative_binomial"},
- {&__pyx_n_noncentral_chisquare, "noncentral_chisquare"},
- {&__pyx_n_noncentral_f, "noncentral_f"},
- {&__pyx_n_normal, "normal"},
- {&__pyx_n_numpy, "numpy"},
- {&__pyx_n_pareto, "pareto"},
- {&__pyx_n_permutation, "permutation"},
- {&__pyx_n_poisson, "poisson"},
- {&__pyx_n_power, "power"},
- {&__pyx_n_rand, "rand"},
- {&__pyx_n_randint, "randint"},
- {&__pyx_n_randn, "randn"},
- {&__pyx_n_random, "random"},
- {&__pyx_n_random_integers, "random_integers"},
- {&__pyx_n_random_sample, "random_sample"},
- {&__pyx_n_rayleigh, "rayleigh"},
- {&__pyx_n_reduce, "reduce"},
- {&__pyx_n_seed, "seed"},
- {&__pyx_n_set_state, "set_state"},
- {&__pyx_n_shape, "shape"},
- {&__pyx_n_shuffle, "shuffle"},
- {&__pyx_n_size, "size"},
- {&__pyx_n_sqrt, "sqrt"},
- {&__pyx_n_standard_cauchy, "standard_cauchy"},
- {&__pyx_n_standard_exponential, "standard_exponential"},
- {&__pyx_n_standard_gamma, "standard_gamma"},
- {&__pyx_n_standard_normal, "standard_normal"},
- {&__pyx_n_standard_t, "standard_t"},
- {&__pyx_n_svd, "svd"},
- {&__pyx_n_triangular, "triangular"},
- {&__pyx_n_tuple, "tuple"},
- {&__pyx_n_type, "type"},
- {&__pyx_n_uniform, "uniform"},
- {&__pyx_n_vonmises, "vonmises"},
- {&__pyx_n_wald, "wald"},
- {&__pyx_n_weibull, "weibull"},
- {&__pyx_n_zeros, "zeros"},
- {&__pyx_n_zipf, "zipf"},
- {0, 0}
-};
-
-static __Pyx_StringTabEntry __pyx_string_tab[] = {
- {&__pyx_k62p, __pyx_k62, sizeof(__pyx_k62)},
- {&__pyx_k63p, __pyx_k63, sizeof(__pyx_k63)},
- {&__pyx_k64p, __pyx_k64, sizeof(__pyx_k64)},
- {&__pyx_k66p, __pyx_k66, sizeof(__pyx_k66)},
- {&__pyx_k67p, __pyx_k67, sizeof(__pyx_k67)},
- {&__pyx_k68p, __pyx_k68, sizeof(__pyx_k68)},
- {&__pyx_k69p, __pyx_k69, sizeof(__pyx_k69)},
- {&__pyx_k70p, __pyx_k70, sizeof(__pyx_k70)},
- {&__pyx_k71p, __pyx_k71, sizeof(__pyx_k71)},
- {&__pyx_k72p, __pyx_k72, sizeof(__pyx_k72)},
- {&__pyx_k73p, __pyx_k73, sizeof(__pyx_k73)},
- {&__pyx_k74p, __pyx_k74, sizeof(__pyx_k74)},
- {&__pyx_k75p, __pyx_k75, sizeof(__pyx_k75)},
- {&__pyx_k76p, __pyx_k76, sizeof(__pyx_k76)},
- {&__pyx_k77p, __pyx_k77, sizeof(__pyx_k77)},
- {&__pyx_k78p, __pyx_k78, sizeof(__pyx_k78)},
- {&__pyx_k79p, __pyx_k79, sizeof(__pyx_k79)},
- {&__pyx_k80p, __pyx_k80, sizeof(__pyx_k80)},
- {&__pyx_k81p, __pyx_k81, sizeof(__pyx_k81)},
- {&__pyx_k82p, __pyx_k82, sizeof(__pyx_k82)},
- {&__pyx_k83p, __pyx_k83, sizeof(__pyx_k83)},
- {&__pyx_k84p, __pyx_k84, sizeof(__pyx_k84)},
- {&__pyx_k85p, __pyx_k85, sizeof(__pyx_k85)},
- {&__pyx_k86p, __pyx_k86, sizeof(__pyx_k86)},
- {&__pyx_k87p, __pyx_k87, sizeof(__pyx_k87)},
- {&__pyx_k88p, __pyx_k88, sizeof(__pyx_k88)},
- {&__pyx_k89p, __pyx_k89, sizeof(__pyx_k89)},
- {&__pyx_k90p, __pyx_k90, sizeof(__pyx_k90)},
- {&__pyx_k91p, __pyx_k91, sizeof(__pyx_k91)},
- {&__pyx_k92p, __pyx_k92, sizeof(__pyx_k92)},
- {&__pyx_k93p, __pyx_k93, sizeof(__pyx_k93)},
- {&__pyx_k94p, __pyx_k94, sizeof(__pyx_k94)},
- {&__pyx_k95p, __pyx_k95, sizeof(__pyx_k95)},
- {&__pyx_k96p, __pyx_k96, sizeof(__pyx_k96)},
- {&__pyx_k97p, __pyx_k97, sizeof(__pyx_k97)},
- {&__pyx_k98p, __pyx_k98, sizeof(__pyx_k98)},
- {&__pyx_k99p, __pyx_k99, sizeof(__pyx_k99)},
- {&__pyx_k100p, __pyx_k100, sizeof(__pyx_k100)},
- {&__pyx_k101p, __pyx_k101, sizeof(__pyx_k101)},
- {&__pyx_k102p, __pyx_k102, sizeof(__pyx_k102)},
- {&__pyx_k103p, __pyx_k103, sizeof(__pyx_k103)},
- {&__pyx_k104p, __pyx_k104, sizeof(__pyx_k104)},
- {&__pyx_k105p, __pyx_k105, sizeof(__pyx_k105)},
- {&__pyx_k106p, __pyx_k106, sizeof(__pyx_k106)},
- {&__pyx_k107p, __pyx_k107, sizeof(__pyx_k107)},
- {&__pyx_k108p, __pyx_k108, sizeof(__pyx_k108)},
- {&__pyx_k109p, __pyx_k109, sizeof(__pyx_k109)},
- {&__pyx_k110p, __pyx_k110, sizeof(__pyx_k110)},
- {&__pyx_k111p, __pyx_k111, sizeof(__pyx_k111)},
- {&__pyx_k112p, __pyx_k112, sizeof(__pyx_k112)},
- {&__pyx_k113p, __pyx_k113, sizeof(__pyx_k113)},
- {&__pyx_k114p, __pyx_k114, sizeof(__pyx_k114)},
- {&__pyx_k115p, __pyx_k115, sizeof(__pyx_k115)},
- {&__pyx_k117p, __pyx_k117, sizeof(__pyx_k117)},
- {0, 0, 0}
-};
-
-static PyObject *__pyx_tp_new_6mtrand_RandomState(PyTypeObject *t, PyObject *a, PyObject *k) {
- PyObject *o = (*t->tp_alloc)(t, 0);
- struct __pyx_obj_6mtrand_RandomState *p = (struct __pyx_obj_6mtrand_RandomState *)o;
- return o;
-}
-
-static void __pyx_tp_dealloc_6mtrand_RandomState(PyObject *o) {
- {
- PyObject *etype, *eval, *etb;
- PyErr_Fetch(&etype, &eval, &etb);
- ++o->ob_refcnt;
- __pyx_f_6mtrand_11RandomState___dealloc__(o);
- if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
- --o->ob_refcnt;
- PyErr_Restore(etype, eval, etb);
- }
- (*o->ob_type->tp_free)(o);
-}
-
-static int __pyx_tp_traverse_6mtrand_RandomState(PyObject *o, visitproc v, void *a) {
- return 0;
-}
-
-static int __pyx_tp_clear_6mtrand_RandomState(PyObject *o) {
- return 0;
-}
-
-static struct PyMethodDef __pyx_methods_6mtrand_RandomState[] = {
- {"seed", (PyCFunction)__pyx_f_6mtrand_11RandomState_seed, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_seed},
- {"get_state", (PyCFunction)__pyx_f_6mtrand_11RandomState_get_state, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_get_state},
- {"set_state", (PyCFunction)__pyx_f_6mtrand_11RandomState_set_state, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_set_state},
- {"__getstate__", (PyCFunction)__pyx_f_6mtrand_11RandomState___getstate__, METH_VARARGS|METH_KEYWORDS, 0},
- {"__setstate__", (PyCFunction)__pyx_f_6mtrand_11RandomState___setstate__, METH_VARARGS|METH_KEYWORDS, 0},
- {"__reduce__", (PyCFunction)__pyx_f_6mtrand_11RandomState___reduce__, METH_VARARGS|METH_KEYWORDS, 0},
- {"random_sample", (PyCFunction)__pyx_f_6mtrand_11RandomState_random_sample, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_random_sample},
- {"tomaxint", (PyCFunction)__pyx_f_6mtrand_11RandomState_tomaxint, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_tomaxint},
- {"randint", (PyCFunction)__pyx_f_6mtrand_11RandomState_randint, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_randint},
- {"bytes", (PyCFunction)__pyx_f_6mtrand_11RandomState_bytes, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_bytes},
- {"uniform", (PyCFunction)__pyx_f_6mtrand_11RandomState_uniform, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_uniform},
- {"rand", (PyCFunction)__pyx_f_6mtrand_11RandomState_rand, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_rand},
- {"randn", (PyCFunction)__pyx_f_6mtrand_11RandomState_randn, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_randn},
- {"random_integers", (PyCFunction)__pyx_f_6mtrand_11RandomState_random_integers, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_random_integers},
- {"standard_normal", (PyCFunction)__pyx_f_6mtrand_11RandomState_standard_normal, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_standard_normal},
- {"normal", (PyCFunction)__pyx_f_6mtrand_11RandomState_normal, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_normal},
- {"beta", (PyCFunction)__pyx_f_6mtrand_11RandomState_beta, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_beta},
- {"exponential", (PyCFunction)__pyx_f_6mtrand_11RandomState_exponential, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_exponential},
- {"standard_exponential", (PyCFunction)__pyx_f_6mtrand_11RandomState_standard_exponential, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_standard_exponential},
- {"standard_gamma", (PyCFunction)__pyx_f_6mtrand_11RandomState_standard_gamma, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_standard_gamma},
- {"gamma", (PyCFunction)__pyx_f_6mtrand_11RandomState_gamma, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_gamma},
- {"f", (PyCFunction)__pyx_f_6mtrand_11RandomState_f, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_f},
- {"noncentral_f", (PyCFunction)__pyx_f_6mtrand_11RandomState_noncentral_f, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_noncentral_f},
- {"chisquare", (PyCFunction)__pyx_f_6mtrand_11RandomState_chisquare, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_chisquare},
- {"noncentral_chisquare", (PyCFunction)__pyx_f_6mtrand_11RandomState_noncentral_chisquare, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_noncentral_chisquare},
- {"standard_cauchy", (PyCFunction)__pyx_f_6mtrand_11RandomState_standard_cauchy, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_standard_cauchy},
- {"standard_t", (PyCFunction)__pyx_f_6mtrand_11RandomState_standard_t, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_standard_t},
- {"vonmises", (PyCFunction)__pyx_f_6mtrand_11RandomState_vonmises, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_vonmises},
- {"pareto", (PyCFunction)__pyx_f_6mtrand_11RandomState_pareto, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_pareto},
- {"weibull", (PyCFunction)__pyx_f_6mtrand_11RandomState_weibull, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_weibull},
- {"power", (PyCFunction)__pyx_f_6mtrand_11RandomState_power, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_power},
- {"laplace", (PyCFunction)__pyx_f_6mtrand_11RandomState_laplace, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_laplace},
- {"gumbel", (PyCFunction)__pyx_f_6mtrand_11RandomState_gumbel, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_gumbel},
- {"logistic", (PyCFunction)__pyx_f_6mtrand_11RandomState_logistic, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_logistic},
- {"lognormal", (PyCFunction)__pyx_f_6mtrand_11RandomState_lognormal, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_lognormal},
- {"rayleigh", (PyCFunction)__pyx_f_6mtrand_11RandomState_rayleigh, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_rayleigh},
- {"wald", (PyCFunction)__pyx_f_6mtrand_11RandomState_wald, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_wald},
- {"triangular", (PyCFunction)__pyx_f_6mtrand_11RandomState_triangular, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_triangular},
- {"binomial", (PyCFunction)__pyx_f_6mtrand_11RandomState_binomial, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_binomial},
- {"negative_binomial", (PyCFunction)__pyx_f_6mtrand_11RandomState_negative_binomial, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_negative_binomial},
- {"poisson", (PyCFunction)__pyx_f_6mtrand_11RandomState_poisson, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_poisson},
- {"zipf", (PyCFunction)__pyx_f_6mtrand_11RandomState_zipf, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_zipf},
- {"geometric", (PyCFunction)__pyx_f_6mtrand_11RandomState_geometric, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_geometric},
- {"hypergeometric", (PyCFunction)__pyx_f_6mtrand_11RandomState_hypergeometric, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_hypergeometric},
- {"logseries", (PyCFunction)__pyx_f_6mtrand_11RandomState_logseries, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_logseries},
- {"multivariate_normal", (PyCFunction)__pyx_f_6mtrand_11RandomState_multivariate_normal, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_multivariate_normal},
- {"multinomial", (PyCFunction)__pyx_f_6mtrand_11RandomState_multinomial, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_multinomial},
- {"shuffle", (PyCFunction)__pyx_f_6mtrand_11RandomState_shuffle, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_shuffle},
- {"permutation", (PyCFunction)__pyx_f_6mtrand_11RandomState_permutation, METH_VARARGS|METH_KEYWORDS, __pyx_doc_6mtrand_11RandomState_permutation},
- {0, 0, 0, 0}
-};
-
-static PyNumberMethods __pyx_tp_as_number_RandomState = {
- 0, /*nb_add*/
- 0, /*nb_subtract*/
- 0, /*nb_multiply*/
- 0, /*nb_divide*/
- 0, /*nb_remainder*/
- 0, /*nb_divmod*/
- 0, /*nb_power*/
- 0, /*nb_negative*/
- 0, /*nb_positive*/
- 0, /*nb_absolute*/
- 0, /*nb_nonzero*/
- 0, /*nb_invert*/
- 0, /*nb_lshift*/
- 0, /*nb_rshift*/
- 0, /*nb_and*/
- 0, /*nb_xor*/
- 0, /*nb_or*/
- 0, /*nb_coerce*/
- 0, /*nb_int*/
- 0, /*nb_long*/
- 0, /*nb_float*/
- 0, /*nb_oct*/
- 0, /*nb_hex*/
- 0, /*nb_inplace_add*/
- 0, /*nb_inplace_subtract*/
- 0, /*nb_inplace_multiply*/
- 0, /*nb_inplace_divide*/
- 0, /*nb_inplace_remainder*/
- 0, /*nb_inplace_power*/
- 0, /*nb_inplace_lshift*/
- 0, /*nb_inplace_rshift*/
- 0, /*nb_inplace_and*/
- 0, /*nb_inplace_xor*/
- 0, /*nb_inplace_or*/
- 0, /*nb_floor_divide*/
- 0, /*nb_true_divide*/
- 0, /*nb_inplace_floor_divide*/
- 0, /*nb_inplace_true_divide*/
-};
-
-static PySequenceMethods __pyx_tp_as_sequence_RandomState = {
- 0, /*sq_length*/
- 0, /*sq_concat*/
- 0, /*sq_repeat*/
- 0, /*sq_item*/
- 0, /*sq_slice*/
- 0, /*sq_ass_item*/
- 0, /*sq_ass_slice*/
- 0, /*sq_contains*/
- 0, /*sq_inplace_concat*/
- 0, /*sq_inplace_repeat*/
-};
-
-static PyMappingMethods __pyx_tp_as_mapping_RandomState = {
- 0, /*mp_length*/
- 0, /*mp_subscript*/
- 0, /*mp_ass_subscript*/
-};
-
-static PyBufferProcs __pyx_tp_as_buffer_RandomState = {
- 0, /*bf_getreadbuffer*/
- 0, /*bf_getwritebuffer*/
- 0, /*bf_getsegcount*/
- 0, /*bf_getcharbuffer*/
-};
-
-statichere PyTypeObject __pyx_type_6mtrand_RandomState = {
- PyObject_HEAD_INIT(0)
- 0, /*ob_size*/
- "mtrand.RandomState", /*tp_name*/
- sizeof(struct __pyx_obj_6mtrand_RandomState), /*tp_basicsize*/
- 0, /*tp_itemsize*/
- __pyx_tp_dealloc_6mtrand_RandomState, /*tp_dealloc*/
- 0, /*tp_print*/
- 0, /*tp_getattr*/
- 0, /*tp_setattr*/
- 0, /*tp_compare*/
- 0, /*tp_repr*/
- &__pyx_tp_as_number_RandomState, /*tp_as_number*/
- &__pyx_tp_as_sequence_RandomState, /*tp_as_sequence*/
- &__pyx_tp_as_mapping_RandomState, /*tp_as_mapping*/
- 0, /*tp_hash*/
- 0, /*tp_call*/
- 0, /*tp_str*/
- 0, /*tp_getattro*/
- 0, /*tp_setattro*/
- &__pyx_tp_as_buffer_RandomState, /*tp_as_buffer*/
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_BASETYPE, /*tp_flags*/
- "Container for the Mersenne Twister PRNG.\n\n Constructor\n -----------\n RandomState(seed=None): initializes the PRNG with the given seed. See the\n seed() method for details.\n\n Distribution Methods\n -----------------\n RandomState exposes a number of methods for generating random numbers drawn\n from a variety of probability distributions. In addition to the\n distribution-specific arguments, each method takes a keyword argument\n size=None. If size is None, then a single value is generated and returned.\n If size is an integer, then a 1-D numpy array filled with generated values\n is returned. If size is a tuple, then a numpy array with that shape is\n filled and returned.\n ", /*tp_doc*/
- __pyx_tp_traverse_6mtrand_RandomState, /*tp_traverse*/
- __pyx_tp_clear_6mtrand_RandomState, /*tp_clear*/
- 0, /*tp_richcompare*/
- 0, /*tp_weaklistoffset*/
- 0, /*tp_iter*/
- 0, /*tp_iternext*/
- __pyx_methods_6mtrand_RandomState, /*tp_methods*/
- 0, /*tp_members*/
- 0, /*tp_getset*/
- 0, /*tp_base*/
- 0, /*tp_dict*/
- 0, /*tp_descr_get*/
- 0, /*tp_descr_set*/
- 0, /*tp_dictoffset*/
- __pyx_f_6mtrand_11RandomState___init__, /*tp_init*/
- 0, /*tp_alloc*/
- __pyx_tp_new_6mtrand_RandomState, /*tp_new*/
- 0, /*tp_free*/
- 0, /*tp_is_gc*/
- 0, /*tp_bases*/
- 0, /*tp_mro*/
- 0, /*tp_cache*/
- 0, /*tp_subclasses*/
- 0, /*tp_weaklist*/
-};
-
-static struct PyMethodDef __pyx_methods[] = {
- {0, 0, 0, 0}
-};
-
-DL_EXPORT(void) initmtrand(void); /*proto*/
-DL_EXPORT(void) initmtrand(void) {
- PyObject *__pyx_1 = 0;
- PyObject *__pyx_2 = 0;
- __pyx_m = Py_InitModule4("mtrand", __pyx_methods, 0, 0, PYTHON_API_VERSION);
- if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;};
- __pyx_b = PyImport_AddModule("__builtin__");
- if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;};
- if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;};
- if (__Pyx_InternStrings(__pyx_intern_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;};
- if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; goto __pyx_L1;};
- __pyx_ptype_6mtrand_dtypedescr = __Pyx_ImportType("numpy", "dtypedescr", sizeof(PyArray_Descr)); if (!__pyx_ptype_6mtrand_dtypedescr) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 32; goto __pyx_L1;}
- __pyx_ptype_6mtrand_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject)); if (!__pyx_ptype_6mtrand_ndarray) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 36; goto __pyx_L1;}
- if (PyType_Ready(&__pyx_type_6mtrand_RandomState) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;}
- if (PyObject_SetAttrString(__pyx_m, "RandomState", (PyObject *)&__pyx_type_6mtrand_RandomState) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; goto __pyx_L1;}
- __pyx_ptype_6mtrand_RandomState = &__pyx_type_6mtrand_RandomState;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":118 */
- import_array();
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":120 */
- __pyx_1 = __Pyx_Import(__pyx_n_numpy, 0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L1;}
- if (PyObject_SetAttr(__pyx_m, __pyx_n__sp, __pyx_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":286 */
- Py_INCREF(Py_None);
- __pyx_k2 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":295 */
- Py_INCREF(Py_None);
- __pyx_k3 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":356 */
- Py_INCREF(Py_None);
- __pyx_k4 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":363 */
- Py_INCREF(Py_None);
- __pyx_k5 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":370 */
- Py_INCREF(Py_None);
- __pyx_k6 = Py_None;
- Py_INCREF(Py_None);
- __pyx_k7 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":416 */
- __pyx_k8 = 0.0;
- __pyx_k9 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k10 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":446 */
- Py_INCREF(Py_None);
- __pyx_k11 = Py_None;
- Py_INCREF(Py_None);
- __pyx_k12 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":459 */
- Py_INCREF(Py_None);
- __pyx_k13 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":466 */
- __pyx_k14 = 0.0;
- __pyx_k15 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k16 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":475 */
- Py_INCREF(Py_None);
- __pyx_k17 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":486 */
- __pyx_k18 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k19 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":495 */
- Py_INCREF(Py_None);
- __pyx_k20 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":502 */
- Py_INCREF(Py_None);
- __pyx_k21 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":511 */
- __pyx_k22 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k23 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":522 */
- Py_INCREF(Py_None);
- __pyx_k24 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":533 */
- Py_INCREF(Py_None);
- __pyx_k25 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":547 */
- Py_INCREF(Py_None);
- __pyx_k26 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":556 */
- Py_INCREF(Py_None);
- __pyx_k27 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":568 */
- Py_INCREF(Py_None);
- __pyx_k28 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":575 */
- Py_INCREF(Py_None);
- __pyx_k29 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":584 */
- Py_INCREF(Py_None);
- __pyx_k30 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":594 */
- Py_INCREF(Py_None);
- __pyx_k31 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":603 */
- Py_INCREF(Py_None);
- __pyx_k32 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":612 */
- Py_INCREF(Py_None);
- __pyx_k33 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":621 */
- __pyx_k34 = 0.0;
- __pyx_k35 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k36 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":630 */
- __pyx_k37 = 0.0;
- __pyx_k38 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k39 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":639 */
- __pyx_k40 = 0.0;
- __pyx_k41 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k42 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":648 */
- __pyx_k43 = 0.0;
- __pyx_k44 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k45 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":662 */
- __pyx_k46 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k47 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":671 */
- Py_INCREF(Py_None);
- __pyx_k48 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":682 */
- Py_INCREF(Py_None);
- __pyx_k49 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":698 */
- Py_INCREF(Py_None);
- __pyx_k50 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":711 */
- Py_INCREF(Py_None);
- __pyx_k51 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":725 */
- __pyx_k52 = 1.0;
- Py_INCREF(Py_None);
- __pyx_k53 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":734 */
- Py_INCREF(Py_None);
- __pyx_k54 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":743 */
- Py_INCREF(Py_None);
- __pyx_k55 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":755 */
- Py_INCREF(Py_None);
- __pyx_k56 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":776 */
- Py_INCREF(Py_None);
- __pyx_k57 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":788 */
- Py_INCREF(Py_None);
- __pyx_k58 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":846 */
- Py_INCREF(Py_None);
- __pyx_k59 = Py_None;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":924 */
- __pyx_1 = PyTuple_New(0); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; goto __pyx_L1;}
- __pyx_2 = PyObject_CallObject(((PyObject*)__pyx_ptype_6mtrand_RandomState), __pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n__rand, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":925 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_seed); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_seed, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 925; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":926 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_get_state); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_get_state, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":927 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 927; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_set_state); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 927; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_set_state, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 927; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":928 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_random_sample); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_random_sample, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":929 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_randint); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_randint, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":930 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_bytes); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_bytes, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":931 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_uniform); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_uniform, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":932 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_rand); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_rand, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 932; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":933 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_randn); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_randn, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":934 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_random_integers); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_random_integers, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":935 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_standard_normal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_standard_normal, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":936 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_normal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_normal, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":937 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_beta); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_beta, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":938 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_exponential); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_exponential, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":939 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 939; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_standard_exponential); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 939; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_standard_exponential, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 939; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":940 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 940; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_standard_gamma); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 940; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_standard_gamma, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 940; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":941 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 941; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_gamma); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 941; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_gamma, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 941; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":942 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 942; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_f); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 942; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_f, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 942; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":943 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_noncentral_f); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_noncentral_f, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":944 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_chisquare); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_chisquare, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":945 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_noncentral_chisquare); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_noncentral_chisquare, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 945; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":946 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_standard_cauchy); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_standard_cauchy, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":947 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 947; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_standard_t); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 947; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_standard_t, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 947; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":948 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_vonmises); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_vonmises, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":949 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_pareto); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_pareto, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":950 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_weibull); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_weibull, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":951 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_power); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_power, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":952 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_laplace); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_laplace, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":953 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_gumbel); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_gumbel, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":954 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_logistic); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_logistic, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":955 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_lognormal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_lognormal, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":956 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_rayleigh); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_rayleigh, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":957 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_wald); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_wald, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":958 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_triangular); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_triangular, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":960 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_binomial); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_binomial, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":961 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_negative_binomial); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_negative_binomial, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 961; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":962 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_poisson); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_poisson, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":963 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_zipf); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_zipf, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":964 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_geometric); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_geometric, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":965 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_hypergeometric); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_hypergeometric, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":966 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_logseries); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_logseries, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":968 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_multivariate_normal); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_multivariate_normal, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":969 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_multinomial); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_multinomial, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 969; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":971 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_shuffle); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_shuffle, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
-
- /* "/home/oliphant/numpy/numpy/random/mtrand/mtrand.pyx":972 */
- __pyx_1 = __Pyx_GetName(__pyx_m, __pyx_n__rand); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;}
- __pyx_2 = PyObject_GetAttr(__pyx_1, __pyx_n_permutation); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;}
- Py_DECREF(__pyx_1); __pyx_1 = 0;
- if (PyObject_SetAttr(__pyx_m, __pyx_n_permutation, __pyx_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; goto __pyx_L1;}
- Py_DECREF(__pyx_2); __pyx_2 = 0;
- return;
- __pyx_L1:;
- Py_XDECREF(__pyx_1);
- Py_XDECREF(__pyx_2);
- __Pyx_AddTraceback("mtrand");
-}
-
-static char *__pyx_filenames[] = {
- "mtrand.pyx",
- "numpy.pxi",
-};
-statichere char **__pyx_f = __pyx_filenames;
-
-/* Runtime support code */
-
-static int __Pyx_GetStarArgs(
- PyObject **args,
- PyObject **kwds,
- char *kwd_list[],
- int nargs,
- PyObject **args2,
- PyObject **kwds2)
-{
- PyObject *x = 0, *args1 = 0, *kwds1 = 0;
-
- if (args2)
- *args2 = 0;
- if (kwds2)
- *kwds2 = 0;
-
- if (args2) {
- args1 = PyTuple_GetSlice(*args, 0, nargs);
- if (!args1)
- goto bad;
- *args2 = PyTuple_GetSlice(*args, nargs, PyTuple_Size(*args));
- if (!*args2)
- goto bad;
- }
- else {
- args1 = *args;
- Py_INCREF(args1);
- }
-
- if (kwds2) {
- if (*kwds) {
- char **p;
- kwds1 = PyDict_New();
- if (!kwds)
- goto bad;
- *kwds2 = PyDict_Copy(*kwds);
- if (!*kwds2)
- goto bad;
- for (p = kwd_list; *p; p++) {
- x = PyDict_GetItemString(*kwds, *p);
- if (x) {
- if (PyDict_SetItemString(kwds1, *p, x) < 0)
- goto bad;
- if (PyDict_DelItemString(*kwds2, *p) < 0)
- goto bad;
- }
- }
- }
- else {
- *kwds2 = PyDict_New();
- if (!*kwds2)
- goto bad;
- }
- }
- else {
- kwds1 = *kwds;
- Py_XINCREF(kwds1);
- }
-
- *args = args1;
- *kwds = kwds1;
- return 0;
-bad:
- Py_XDECREF(args1);
- Py_XDECREF(kwds1);
- Py_XDECREF(*args2);
- Py_XDECREF(*kwds2);
- return -1;
-}
-
-static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list) {
- PyObject *__import__ = 0;
- PyObject *empty_list = 0;
- PyObject *module = 0;
- PyObject *global_dict = 0;
- PyObject *empty_dict = 0;
- PyObject *list;
- __import__ = PyObject_GetAttrString(__pyx_b, "__import__");
- if (!__import__)
- goto bad;
- if (from_list)
- list = from_list;
- else {
- empty_list = PyList_New(0);
- if (!empty_list)
- goto bad;
- list = empty_list;
- }
- global_dict = PyModule_GetDict(__pyx_m);
- if (!global_dict)
- goto bad;
- empty_dict = PyDict_New();
- if (!empty_dict)
- goto bad;
- module = PyObject_CallFunction(__import__, "OOOO",
- name, global_dict, empty_dict, list);
-bad:
- Py_XDECREF(empty_list);
- Py_XDECREF(__import__);
- Py_XDECREF(empty_dict);
- return module;
-}
-
-static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
- PyObject *result;
- result = PyObject_GetAttr(dict, name);
- if (!result)
- PyErr_SetObject(PyExc_NameError, name);
- return result;
-}
-
-static void __Pyx_WriteUnraisable(char *name) {
- PyObject *old_exc, *old_val, *old_tb;
- PyObject *ctx;
- PyErr_Fetch(&old_exc, &old_val, &old_tb);
- ctx = PyString_FromString(name);
- PyErr_Restore(old_exc, old_val, old_tb);
- if (!ctx)
- ctx = Py_None;
- PyErr_WriteUnraisable(ctx);
-}
-
-static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
- Py_XINCREF(type);
- Py_XINCREF(value);
- Py_XINCREF(tb);
- /* First, check the traceback argument, replacing None with NULL. */
- if (tb == Py_None) {
- Py_DECREF(tb);
- tb = 0;
- }
- else if (tb != NULL && !PyTraceBack_Check(tb)) {
- PyErr_SetString(PyExc_TypeError,
- "raise: arg 3 must be a traceback or None");
- goto raise_error;
- }
- /* Next, replace a missing value with None */
- if (value == NULL) {
- value = Py_None;
- Py_INCREF(value);
- }
- /* Next, repeatedly, replace a tuple exception with its first item */
- while (PyTuple_Check(type) && PyTuple_Size(type) > 0) {
- PyObject *tmp = type;
- type = PyTuple_GET_ITEM(type, 0);
- Py_INCREF(type);
- Py_DECREF(tmp);
- }
- if (PyString_Check(type))
- ;
- else if (PyClass_Check(type))
- ; /*PyErr_NormalizeException(&type, &value, &tb);*/
- else if (PyInstance_Check(type)) {
- /* Raising an instance. The value should be a dummy. */
- if (value != Py_None) {
- PyErr_SetString(PyExc_TypeError,
- "instance exception may not have a separate value");
- goto raise_error;
- }
- else {
- /* Normalize to raise <class>, <instance> */
- Py_DECREF(value);
- value = type;
- type = (PyObject*) ((PyInstanceObject*)type)->in_class;
- Py_INCREF(type);
- }
- }
- else {
- /* Not something you can raise. You get an exception
- anyway, just not what you specified :-) */
- PyErr_Format(PyExc_TypeError,
- "exceptions must be strings, classes, or "
- "instances, not %s", type->ob_type->tp_name);
- goto raise_error;
- }
- PyErr_Restore(type, value, tb);
- return;
-raise_error:
- Py_XDECREF(value);
- Py_XDECREF(type);
- Py_XDECREF(tb);
- return;
-}
-
-static void __Pyx_UnpackError(void) {
- PyErr_SetString(PyExc_ValueError, "unpack sequence of wrong size");
-}
-
-static PyObject *__Pyx_UnpackItem(PyObject *seq, int i) {
- PyObject *item = PySequence_GetItem(seq, i);
- if (!item) {
- if (PyErr_ExceptionMatches(PyExc_IndexError))
- __Pyx_UnpackError();
- }
- return item;
-}
-
-static int __Pyx_EndUnpack(PyObject *seq, int i) {
- PyObject *item = PySequence_GetItem(seq, i);
- if (item) {
- Py_DECREF(item);
- __Pyx_UnpackError();
- return -1;
- }
- PyErr_Clear();
- return 0;
-}
-
-static int __Pyx_InternStrings(__Pyx_InternTabEntry *t) {
- while (t->p) {
- *t->p = PyString_InternFromString(t->s);
- if (!*t->p)
- return -1;
- ++t;
- }
- return 0;
-}
-
-static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
- while (t->p) {
- *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
- if (!*t->p)
- return -1;
- ++t;
- }
- return 0;
-}
-
-static PyTypeObject *__Pyx_ImportType(char *module_name, char *class_name,
- long size)
-{
- PyObject *py_module_name = 0;
- PyObject *py_class_name = 0;
- PyObject *py_name_list = 0;
- PyObject *py_module = 0;
- PyObject *result = 0;
-
- py_module_name = PyString_FromString(module_name);
- if (!py_module_name)
- goto bad;
- py_class_name = PyString_FromString(class_name);
- if (!py_class_name)
- goto bad;
- py_name_list = PyList_New(1);
- if (!py_name_list)
- goto bad;
- Py_INCREF(py_class_name);
- if (PyList_SetItem(py_name_list, 0, py_class_name) < 0)
- goto bad;
- py_module = __Pyx_Import(py_module_name, py_name_list);
- if (!py_module)
- goto bad;
- result = PyObject_GetAttr(py_module, py_class_name);
- if (!result)
- goto bad;
- if (!PyType_Check(result)) {
- PyErr_Format(PyExc_TypeError,
- "%s.%s is not a type object",
- module_name, class_name);
- goto bad;
- }
- if (((PyTypeObject *)result)->tp_basicsize != size) {
- PyErr_Format(PyExc_ValueError,
- "%s.%s does not appear to be the correct type object",
- module_name, class_name);
- goto bad;
- }
- goto done;
-bad:
- Py_XDECREF(result);
- result = 0;
-done:
- Py_XDECREF(py_module_name);
- Py_XDECREF(py_class_name);
- Py_XDECREF(py_name_list);
- return (PyTypeObject *)result;
-}
-
-#include "compile.h"
-#include "frameobject.h"
-#include "traceback.h"
-
-static void __Pyx_AddTraceback(char *funcname) {
- PyObject *py_srcfile = 0;
- PyObject *py_funcname = 0;
- PyObject *py_globals = 0;
- PyObject *empty_tuple = 0;
- PyObject *empty_string = 0;
- PyCodeObject *py_code = 0;
- PyFrameObject *py_frame = 0;
-
- py_srcfile = PyString_FromString(__pyx_filename);
- if (!py_srcfile) goto bad;
- py_funcname = PyString_FromString(funcname);
- if (!py_funcname) goto bad;
- py_globals = PyModule_GetDict(__pyx_m);
- if (!py_globals) goto bad;
- empty_tuple = PyTuple_New(0);
- if (!empty_tuple) goto bad;
- empty_string = PyString_FromString("");
- if (!empty_string) goto bad;
- py_code = PyCode_New(
- 0, /*int argcount,*/
- 0, /*int nlocals,*/
- 0, /*int stacksize,*/
- 0, /*int flags,*/
- empty_string, /*PyObject *code,*/
- empty_tuple, /*PyObject *consts,*/
- empty_tuple, /*PyObject *names,*/
- empty_tuple, /*PyObject *varnames,*/
- empty_tuple, /*PyObject *freevars,*/
- empty_tuple, /*PyObject *cellvars,*/
- py_srcfile, /*PyObject *filename,*/
- py_funcname, /*PyObject *name,*/
- __pyx_lineno, /*int firstlineno,*/
- empty_string /*PyObject *lnotab*/
- );
- if (!py_code) goto bad;
- py_frame = PyFrame_New(
- PyThreadState_Get(), /*PyThreadState *tstate,*/
- py_code, /*PyCodeObject *code,*/
- py_globals, /*PyObject *globals,*/
- 0 /*PyObject *locals*/
- );
- if (!py_frame) goto bad;
- py_frame->f_lineno = __pyx_lineno;
- PyTraceBack_Here(py_frame);
-bad:
- Py_XDECREF(py_srcfile);
- Py_XDECREF(py_funcname);
- Py_XDECREF(empty_tuple);
- Py_XDECREF(empty_string);
- Py_XDECREF(py_code);
- Py_XDECREF(py_frame);
-}