numpy 1.9.2__zip → 1.10.0__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1593) hide show
  1. numpy-1.10.0.post2/INSTALL.txt +200 -0
  2. numpy-1.10.0.post2/LICENSE.txt +30 -0
  3. numpy-1.10.0.post2/MANIFEST.in +31 -0
  4. numpy-1.10.0.post2/PKG-INFO +47 -0
  5. numpy-1.10.0.post2/cnew.txt +117 -0
  6. numpy-1.10.0.post2/cold.txt +44 -0
  7. numpy-1.10.0.post2/committers.txt +160 -0
  8. numpy-1.10.0.post2/cpre.txt +283 -0
  9. numpy-1.10.0.post2/crel.txt +161 -0
  10. numpy-1.10.0.post2/doc/release/1.10.0-notes.rst +439 -0
  11. numpy-1.10.0.post2/doc/scipy-sphinx-theme/.git +1 -0
  12. numpy-1.10.0.post2/doc/source/conf.py +331 -0
  13. numpy-1.10.0.post2/doc/source/dev/development_environment.rst +211 -0
  14. numpy-1.10.0.post2/doc/source/dev/gitwash/development_workflow.rst +534 -0
  15. numpy-1.10.0.post2/doc/source/dev/gitwash/git_links.inc +95 -0
  16. numpy-1.10.0.post2/doc/source/dev/gitwash/index.rst +14 -0
  17. numpy-1.10.0.post2/doc/source/dev/index.rst +11 -0
  18. numpy-1.10.0.post2/doc/source/reference/arrays.classes.rst +490 -0
  19. numpy-1.10.0.post2/doc/source/reference/arrays.dtypes.rst +536 -0
  20. numpy-1.10.0.post2/doc/source/reference/arrays.indexing.rst +549 -0
  21. numpy-1.10.0.post2/doc/source/reference/arrays.interface.rst +337 -0
  22. numpy-1.10.0.post2/doc/source/reference/arrays.ndarray.rst +622 -0
  23. numpy-1.10.0.post2/doc/source/reference/arrays.scalars.rst +291 -0
  24. numpy-1.10.0.post2/doc/source/reference/c-api.array.rst +3393 -0
  25. numpy-1.10.0.post2/doc/source/reference/c-api.config.rst +103 -0
  26. numpy-1.10.0.post2/doc/source/reference/c-api.coremath.rst +420 -0
  27. numpy-1.10.0.post2/doc/source/reference/c-api.dtype.rst +376 -0
  28. numpy-1.10.0.post2/doc/source/reference/c-api.generalized-ufuncs.rst +191 -0
  29. numpy-1.10.0.post2/doc/source/reference/c-api.iterator.rst +1300 -0
  30. numpy-1.10.0.post2/doc/source/reference/c-api.types-and-structures.rst +1240 -0
  31. numpy-1.10.0.post2/doc/source/reference/c-api.ufunc.rst +413 -0
  32. numpy-1.10.0.post2/doc/source/reference/index.rst +43 -0
  33. numpy-1.10.0.post2/doc/source/reference/internals.code-explanations.rst +615 -0
  34. numpy-1.10.0.post2/doc/source/reference/routines.array-manipulation.rst +115 -0
  35. numpy-1.10.0.post2/doc/source/reference/routines.io.rst +78 -0
  36. numpy-1.10.0.post2/doc/source/reference/routines.linalg.rst +91 -0
  37. numpy-1.10.0.post2/doc/source/reference/routines.ma.rst +407 -0
  38. numpy-1.10.0.post2/doc/source/reference/routines.sort.rst +41 -0
  39. numpy-1.10.0.post2/doc/source/reference/routines.statistics.rst +57 -0
  40. numpy-1.10.0.post2/doc/source/reference/swig.interface-file.rst +1066 -0
  41. numpy-1.10.0.post2/doc/source/reference/swig.testing.rst +167 -0
  42. numpy-1.10.0.post2/doc/source/reference/ufuncs.rst +666 -0
  43. numpy-1.10.0.post2/doc/source/release.rst +20 -0
  44. numpy-1.10.0.post2/doc/source/user/basics.io.genfromtxt.rst +531 -0
  45. numpy-1.10.0.post2/doc/source/user/basics.rec.rst +7 -0
  46. numpy-1.10.0.post2/doc/source/user/c-info.beyond-basics.rst +560 -0
  47. numpy-1.10.0.post2/doc/source/user/c-info.how-to-extend.rst +642 -0
  48. numpy-1.10.0.post2/doc/source/user/c-info.python-as-glue.rst +1177 -0
  49. numpy-1.10.0.post2/doc/source/user/c-info.ufunc-tutorial.rst +1211 -0
  50. numpy-1.10.0.post2/doc/source/user/install.rst +194 -0
  51. numpy-1.10.0.post2/doc/sphinxext/.git +1 -0
  52. numpy-1.10.0.post2/numpy/__init__.py +227 -0
  53. numpy-1.10.0.post2/numpy/_build_utils/README +8 -0
  54. numpy-1.10.0.post2/numpy/_build_utils/apple_accelerate.py +21 -0
  55. numpy-1.10.0.post2/numpy/_build_utils/common.py +138 -0
  56. numpy-1.10.0.post2/numpy/_build_utils/src/apple_sgemv_fix.c +227 -0
  57. numpy-1.10.0.post2/numpy/_build_utils/waf.py +531 -0
  58. numpy-1.10.0.post2/numpy/_import_tools.py +353 -0
  59. numpy-1.10.0.post2/numpy/add_newdocs.py +7611 -0
  60. numpy-1.10.0.post2/numpy/compat/_inspect.py +194 -0
  61. numpy-1.10.0.post2/numpy/compat/py3k.py +88 -0
  62. numpy-1.10.0.post2/numpy/compat/setup.py +12 -0
  63. numpy-1.10.0.post2/numpy/core/__init__.py +89 -0
  64. numpy-1.10.0.post2/numpy/core/_internal.py +761 -0
  65. numpy-1.10.0.post2/numpy/core/_methods.py +133 -0
  66. numpy-1.10.0.post2/numpy/core/arrayprint.py +760 -0
  67. numpy-1.10.0.post2/numpy/core/code_generators/cversions.txt +34 -0
  68. numpy-1.10.0.post2/numpy/core/code_generators/generate_ufunc_api.py +219 -0
  69. numpy-1.10.0.post2/numpy/core/code_generators/generate_umath.py +1017 -0
  70. numpy-1.10.0.post2/numpy/core/code_generators/numpy_api.py +415 -0
  71. numpy-1.10.0.post2/numpy/core/code_generators/ufunc_docstrings.py +3442 -0
  72. numpy-1.10.0.post2/numpy/core/defchararray.py +2689 -0
  73. numpy-1.10.0.post2/numpy/core/fromnumeric.py +3089 -0
  74. numpy-1.10.0.post2/numpy/core/function_base.py +203 -0
  75. numpy-1.10.0.post2/numpy/core/getlimits.py +308 -0
  76. numpy-1.10.0.post2/numpy/core/include/numpy/ndarrayobject.h +246 -0
  77. numpy-1.10.0.post2/numpy/core/include/numpy/ndarraytypes.h +1797 -0
  78. numpy-1.10.0.post2/numpy/core/include/numpy/npy_3kcompat.h +448 -0
  79. numpy-1.10.0.post2/numpy/core/include/numpy/npy_common.h +1051 -0
  80. numpy-1.10.0.post2/numpy/core/include/numpy/npy_cpu.h +92 -0
  81. numpy-1.10.0.post2/numpy/core/include/numpy/npy_endian.h +61 -0
  82. numpy-1.10.0.post2/numpy/core/include/numpy/npy_math.h +525 -0
  83. numpy-1.10.0.post2/numpy/core/include/numpy/numpyconfig.h +36 -0
  84. numpy-1.10.0.post2/numpy/core/machar.py +342 -0
  85. numpy-1.10.0.post2/numpy/core/memmap.py +311 -0
  86. numpy-1.10.0.post2/numpy/core/numeric.py +2893 -0
  87. numpy-1.10.0.post2/numpy/core/numerictypes.py +1036 -0
  88. numpy-1.10.0.post2/numpy/core/records.py +846 -0
  89. numpy-1.10.0.post2/numpy/core/setup.py +983 -0
  90. numpy-1.10.0.post2/numpy/core/setup_common.py +352 -0
  91. numpy-1.10.0.post2/numpy/core/shape_base.py +350 -0
  92. numpy-1.10.0.post2/numpy/core/src/multiarray/alloc.c +244 -0
  93. numpy-1.10.0.post2/numpy/core/src/multiarray/arrayobject.c +1858 -0
  94. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.c.src +4738 -0
  95. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.h +37 -0
  96. numpy-1.10.0.post2/numpy/core/src/multiarray/buffer.c +981 -0
  97. numpy-1.10.0.post2/numpy/core/src/multiarray/calculation.c +1224 -0
  98. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.c +812 -0
  99. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.h +10 -0
  100. numpy-1.10.0.post2/numpy/core/src/multiarray/common.c +911 -0
  101. numpy-1.10.0.post2/numpy/core/src/multiarray/common.h +250 -0
  102. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.c +1664 -0
  103. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.h +24 -0
  104. numpy-1.10.0.post2/numpy/core/src/multiarray/conversion_utils.c +1217 -0
  105. numpy-1.10.0.post2/numpy/core/src/multiarray/convert.c +590 -0
  106. numpy-1.10.0.post2/numpy/core/src/multiarray/convert_datatype.c +2155 -0
  107. numpy-1.10.0.post2/numpy/core/src/multiarray/ctors.c +3838 -0
  108. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime.c +3821 -0
  109. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busday.c +1322 -0
  110. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busdaycal.c +552 -0
  111. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_strings.c +1772 -0
  112. numpy-1.10.0.post2/numpy/core/src/multiarray/descriptor.c +3719 -0
  113. numpy-1.10.0.post2/numpy/core/src/multiarray/dtype_transfer.c +4239 -0
  114. numpy-1.10.0.post2/numpy/core/src/multiarray/einsum.c.src +3005 -0
  115. numpy-1.10.0.post2/numpy/core/src/multiarray/getset.c +986 -0
  116. numpy-1.10.0.post2/numpy/core/src/multiarray/hashdescr.c +318 -0
  117. numpy-1.10.0.post2/numpy/core/src/multiarray/item_selection.c +2413 -0
  118. numpy-1.10.0.post2/numpy/core/src/multiarray/iterators.c +2192 -0
  119. numpy-1.10.0.post2/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +1769 -0
  120. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.c +3380 -0
  121. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.h +77 -0
  122. numpy-1.10.0.post2/numpy/core/src/multiarray/methods.c +2514 -0
  123. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarray_tests.c.src +1035 -0
  124. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.c +4628 -0
  125. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.h +15 -0
  126. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_api.c +2809 -0
  127. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_constr.c +3160 -0
  128. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_pywrap.c +2499 -0
  129. numpy-1.10.0.post2/numpy/core/src/multiarray/number.c +1106 -0
  130. numpy-1.10.0.post2/numpy/core/src/multiarray/number.h +77 -0
  131. numpy-1.10.0.post2/numpy/core/src/multiarray/numpymemoryview.c +308 -0
  132. numpy-1.10.0.post2/numpy/core/src/multiarray/numpyos.c +683 -0
  133. numpy-1.10.0.post2/numpy/core/src/multiarray/scalarapi.c +870 -0
  134. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.c.src +4343 -0
  135. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.h +55 -0
  136. numpy-1.10.0.post2/numpy/core/src/multiarray/shape.c +1131 -0
  137. numpy-1.10.0.post2/numpy/core/src/multiarray/ucsnarrow.c +174 -0
  138. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.c +180 -0
  139. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.h +18 -0
  140. numpy-1.10.0.post2/numpy/core/src/npymath/ieee754.c.src +808 -0
  141. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math.c.src +597 -0
  142. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_complex.c.src +1788 -0
  143. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_private.h +544 -0
  144. numpy-1.10.0.post2/numpy/core/src/npysort/heapsort.c.src +402 -0
  145. numpy-1.10.0.post2/numpy/core/src/npysort/mergesort.c.src +488 -0
  146. numpy-1.10.0.post2/numpy/core/src/npysort/npysort_common.h +360 -0
  147. numpy-1.10.0.post2/numpy/core/src/npysort/quicksort.c.src +523 -0
  148. numpy-1.10.0.post2/numpy/core/src/npysort/selection.c.src +426 -0
  149. numpy-1.10.0.post2/numpy/core/src/private/npy_cblas.h +584 -0
  150. numpy-1.10.0.post2/numpy/core/src/private/npy_config.h +101 -0
  151. numpy-1.10.0.post2/numpy/core/src/private/npy_import.h +32 -0
  152. numpy-1.10.0.post2/numpy/core/src/private/npy_partition.h.src +122 -0
  153. numpy-1.10.0.post2/numpy/core/src/private/npy_sort.h +196 -0
  154. numpy-1.10.0.post2/numpy/core/src/private/templ_common.h.src +43 -0
  155. numpy-1.10.0.post2/numpy/core/src/private/ufunc_override.h +397 -0
  156. numpy-1.10.0.post2/numpy/core/src/umath/funcs.inc.src +356 -0
  157. numpy-1.10.0.post2/numpy/core/src/umath/loops.c.src +2675 -0
  158. numpy-1.10.0.post2/numpy/core/src/umath/loops.h.src +497 -0
  159. numpy-1.10.0.post2/numpy/core/src/umath/operand_flag_tests.c.src +105 -0
  160. numpy-1.10.0.post2/numpy/core/src/umath/scalarmath.c.src +1738 -0
  161. numpy-1.10.0.post2/numpy/core/src/umath/simd.inc.src +903 -0
  162. numpy-1.10.0.post2/numpy/core/src/umath/test_rational.c.src +1404 -0
  163. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_object.c +5703 -0
  164. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_type_resolution.c +2159 -0
  165. numpy-1.10.0.post2/numpy/core/src/umath/umath_tests.c.src +392 -0
  166. numpy-1.10.0.post2/numpy/core/src/umath/umathmodule.c +443 -0
  167. numpy-1.10.0.post2/numpy/core/tests/test_abc.py +47 -0
  168. numpy-1.10.0.post2/numpy/core/tests/test_api.py +515 -0
  169. numpy-1.10.0.post2/numpy/core/tests/test_arrayprint.py +171 -0
  170. numpy-1.10.0.post2/numpy/core/tests/test_datetime.py +1820 -0
  171. numpy-1.10.0.post2/numpy/core/tests/test_defchararray.py +703 -0
  172. numpy-1.10.0.post2/numpy/core/tests/test_deprecations.py +619 -0
  173. numpy-1.10.0.post2/numpy/core/tests/test_dtype.py +578 -0
  174. numpy-1.10.0.post2/numpy/core/tests/test_einsum.py +627 -0
  175. numpy-1.10.0.post2/numpy/core/tests/test_errstate.py +52 -0
  176. numpy-1.10.0.post2/numpy/core/tests/test_function_base.py +142 -0
  177. numpy-1.10.0.post2/numpy/core/tests/test_getlimits.py +77 -0
  178. numpy-1.10.0.post2/numpy/core/tests/test_half.py +436 -0
  179. numpy-1.10.0.post2/numpy/core/tests/test_indexerrors.py +126 -0
  180. numpy-1.10.0.post2/numpy/core/tests/test_indexing.py +1047 -0
  181. numpy-1.10.0.post2/numpy/core/tests/test_item_selection.py +73 -0
  182. numpy-1.10.0.post2/numpy/core/tests/test_machar.py +29 -0
  183. numpy-1.10.0.post2/numpy/core/tests/test_memmap.py +130 -0
  184. numpy-1.10.0.post2/numpy/core/tests/test_multiarray.py +5924 -0
  185. numpy-1.10.0.post2/numpy/core/tests/test_multiarray_assignment.py +84 -0
  186. numpy-1.10.0.post2/numpy/core/tests/test_nditer.py +2638 -0
  187. numpy-1.10.0.post2/numpy/core/tests/test_numeric.py +2204 -0
  188. numpy-1.10.0.post2/numpy/core/tests/test_numerictypes.py +382 -0
  189. numpy-1.10.0.post2/numpy/core/tests/test_print.py +248 -0
  190. numpy-1.10.0.post2/numpy/core/tests/test_records.py +299 -0
  191. numpy-1.10.0.post2/numpy/core/tests/test_regression.py +2177 -0
  192. numpy-1.10.0.post2/numpy/core/tests/test_scalarinherit.py +41 -0
  193. numpy-1.10.0.post2/numpy/core/tests/test_scalarmath.py +316 -0
  194. numpy-1.10.0.post2/numpy/core/tests/test_shape_base.py +319 -0
  195. numpy-1.10.0.post2/numpy/core/tests/test_ufunc.py +1227 -0
  196. numpy-1.10.0.post2/numpy/core/tests/test_umath.py +1933 -0
  197. numpy-1.10.0.post2/numpy/core/tests/test_umath_complex.py +538 -0
  198. numpy-1.10.0.post2/numpy/core/tests/test_unicode.py +360 -0
  199. numpy-1.10.0.post2/numpy/distutils/__init__.py +23 -0
  200. numpy-1.10.0.post2/numpy/distutils/ccompiler.py +690 -0
  201. numpy-1.10.0.post2/numpy/distutils/command/autodist.py +94 -0
  202. numpy-1.10.0.post2/numpy/distutils/command/build.py +47 -0
  203. numpy-1.10.0.post2/numpy/distutils/command/build_clib.py +295 -0
  204. numpy-1.10.0.post2/numpy/distutils/command/build_ext.py +522 -0
  205. numpy-1.10.0.post2/numpy/distutils/command/config.py +437 -0
  206. numpy-1.10.0.post2/numpy/distutils/exec_command.py +651 -0
  207. numpy-1.10.0.post2/numpy/distutils/fcompiler/compaq.py +128 -0
  208. numpy-1.10.0.post2/numpy/distutils/fcompiler/gnu.py +403 -0
  209. numpy-1.10.0.post2/numpy/distutils/fcompiler/intel.py +217 -0
  210. numpy-1.10.0.post2/numpy/distutils/fcompiler/pg.py +63 -0
  211. numpy-1.10.0.post2/numpy/distutils/fcompiler/sun.py +55 -0
  212. numpy-1.10.0.post2/numpy/distutils/intelccompiler.py +95 -0
  213. numpy-1.10.0.post2/numpy/distutils/lib2def.py +116 -0
  214. numpy-1.10.0.post2/numpy/distutils/mingw32ccompiler.py +599 -0
  215. numpy-1.10.0.post2/numpy/distutils/misc_util.py +2306 -0
  216. numpy-1.10.0.post2/numpy/distutils/msvc9compiler.py +23 -0
  217. numpy-1.10.0.post2/numpy/distutils/msvccompiler.py +17 -0
  218. numpy-1.10.0.post2/numpy/distutils/npy_pkg_config.py +451 -0
  219. numpy-1.10.0.post2/numpy/distutils/system_info.py +2397 -0
  220. numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +12 -0
  221. numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +11 -0
  222. numpy-1.10.0.post2/numpy/distutils/tests/gen_ext/tests/test_fib3.py +11 -0
  223. numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +13 -0
  224. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/__init__.py +1 -0
  225. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example.py +17 -0
  226. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example2.py +15 -0
  227. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_gnu.py +60 -0
  228. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_intel.py +36 -0
  229. numpy-1.10.0.post2/numpy/distutils/tests/test_misc_util.py +79 -0
  230. numpy-1.10.0.post2/numpy/distutils/tests/test_npy_pkg_config.py +102 -0
  231. numpy-1.10.0.post2/numpy/distutils/tests/test_system_info.py +209 -0
  232. numpy-1.10.0.post2/numpy/distutils/unixccompiler.py +125 -0
  233. numpy-1.10.0.post2/numpy/doc/byteswapping.py +156 -0
  234. numpy-1.10.0.post2/numpy/doc/creation.py +144 -0
  235. numpy-1.10.0.post2/numpy/doc/glossary.py +423 -0
  236. numpy-1.10.0.post2/numpy/doc/indexing.py +439 -0
  237. numpy-1.10.0.post2/numpy/doc/structured_arrays.py +290 -0
  238. numpy-1.10.0.post2/numpy/f2py/__init__.py +49 -0
  239. numpy-1.10.0.post2/numpy/f2py/__main__.py +25 -0
  240. numpy-1.10.0.post2/numpy/f2py/auxfuncs.py +858 -0
  241. numpy-1.10.0.post2/numpy/f2py/capi_maps.py +851 -0
  242. numpy-1.10.0.post2/numpy/f2py/cb_rules.py +554 -0
  243. numpy-1.10.0.post2/numpy/f2py/cfuncs.py +1261 -0
  244. numpy-1.10.0.post2/numpy/f2py/common_rules.py +150 -0
  245. numpy-1.10.0.post2/numpy/f2py/crackfortran.py +3314 -0
  246. numpy-1.10.0.post2/numpy/f2py/diagnose.py +156 -0
  247. numpy-1.10.0.post2/numpy/f2py/f2py2e.py +656 -0
  248. numpy-1.10.0.post2/numpy/f2py/f2py_testing.py +48 -0
  249. numpy-1.10.0.post2/numpy/f2py/f90mod_rules.py +272 -0
  250. numpy-1.10.0.post2/numpy/f2py/func2subr.py +299 -0
  251. numpy-1.10.0.post2/numpy/f2py/rules.py +1475 -0
  252. numpy-1.10.0.post2/numpy/f2py/setup.py +117 -0
  253. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.c +1037 -0
  254. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.h +162 -0
  255. numpy-1.10.0.post2/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +223 -0
  256. numpy-1.10.0.post2/numpy/f2py/tests/test_array_from_pyobj.py +593 -0
  257. numpy-1.10.0.post2/numpy/f2py/tests/test_assumed_shape.py +35 -0
  258. numpy-1.10.0.post2/numpy/f2py/tests/test_callback.py +136 -0
  259. numpy-1.10.0.post2/numpy/f2py/tests/test_kind.py +36 -0
  260. numpy-1.10.0.post2/numpy/f2py/tests/test_mixed.py +40 -0
  261. numpy-1.10.0.post2/numpy/f2py/tests/test_regression.py +34 -0
  262. numpy-1.10.0.post2/numpy/f2py/tests/test_return_character.py +148 -0
  263. numpy-1.10.0.post2/numpy/f2py/tests/test_return_complex.py +170 -0
  264. numpy-1.10.0.post2/numpy/f2py/tests/test_return_integer.py +180 -0
  265. numpy-1.10.0.post2/numpy/f2py/tests/test_return_logical.py +189 -0
  266. numpy-1.10.0.post2/numpy/f2py/tests/test_return_real.py +206 -0
  267. numpy-1.10.0.post2/numpy/f2py/tests/test_size.py +44 -0
  268. numpy-1.10.0.post2/numpy/f2py/tests/util.py +367 -0
  269. numpy-1.10.0.post2/numpy/f2py/use_rules.py +115 -0
  270. numpy-1.10.0.post2/numpy/fft/fftpack.c +1501 -0
  271. numpy-1.10.0.post2/numpy/fft/fftpack.h +28 -0
  272. numpy-1.10.0.post2/numpy/fft/fftpack.py +1241 -0
  273. numpy-1.10.0.post2/numpy/fft/fftpack_litemodule.c +363 -0
  274. numpy-1.10.0.post2/numpy/fft/info.py +187 -0
  275. numpy-1.10.0.post2/numpy/fft/setup.py +19 -0
  276. numpy-1.10.0.post2/numpy/fft/tests/test_fftpack.py +166 -0
  277. numpy-1.10.0.post2/numpy/fft/tests/test_helper.py +78 -0
  278. numpy-1.10.0.post2/numpy/lib/_iotools.py +917 -0
  279. numpy-1.10.0.post2/numpy/lib/arraypad.py +1497 -0
  280. numpy-1.10.0.post2/numpy/lib/arraysetops.py +480 -0
  281. numpy-1.10.0.post2/numpy/lib/arrayterator.py +226 -0
  282. numpy-1.10.0.post2/numpy/lib/financial.py +737 -0
  283. numpy-1.10.0.post2/numpy/lib/format.py +814 -0
  284. numpy-1.10.0.post2/numpy/lib/function_base.py +4150 -0
  285. numpy-1.10.0.post2/numpy/lib/index_tricks.py +874 -0
  286. numpy-1.10.0.post2/numpy/lib/info.py +152 -0
  287. numpy-1.10.0.post2/numpy/lib/nanfunctions.py +1237 -0
  288. numpy-1.10.0.post2/numpy/lib/npyio.py +1992 -0
  289. numpy-1.10.0.post2/numpy/lib/polynomial.py +1277 -0
  290. numpy-1.10.0.post2/numpy/lib/recfunctions.py +1003 -0
  291. numpy-1.10.0.post2/numpy/lib/setup.py +12 -0
  292. numpy-1.10.0.post2/numpy/lib/shape_base.py +872 -0
  293. numpy-1.10.0.post2/numpy/lib/stride_tricks.py +200 -0
  294. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npy +0 -0
  295. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npz +0 -0
  296. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npy +0 -0
  297. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npz +0 -0
  298. numpy-1.10.0.post2/numpy/lib/tests/test__iotools.py +348 -0
  299. numpy-1.10.0.post2/numpy/lib/tests/test__version.py +70 -0
  300. numpy-1.10.0.post2/numpy/lib/tests/test_arraypad.py +1047 -0
  301. numpy-1.10.0.post2/numpy/lib/tests/test_arraysetops.py +309 -0
  302. numpy-1.10.0.post2/numpy/lib/tests/test_financial.py +163 -0
  303. numpy-1.10.0.post2/numpy/lib/tests/test_format.py +841 -0
  304. numpy-1.10.0.post2/numpy/lib/tests/test_function_base.py +2555 -0
  305. numpy-1.10.0.post2/numpy/lib/tests/test_index_tricks.py +326 -0
  306. numpy-1.10.0.post2/numpy/lib/tests/test_io.py +1916 -0
  307. numpy-1.10.0.post2/numpy/lib/tests/test_nanfunctions.py +707 -0
  308. numpy-1.10.0.post2/numpy/lib/tests/test_packbits.py +26 -0
  309. numpy-1.10.0.post2/numpy/lib/tests/test_polynomial.py +188 -0
  310. numpy-1.10.0.post2/numpy/lib/tests/test_recfunctions.py +734 -0
  311. numpy-1.10.0.post2/numpy/lib/tests/test_shape_base.py +386 -0
  312. numpy-1.10.0.post2/numpy/lib/tests/test_stride_tricks.py +405 -0
  313. numpy-1.10.0.post2/numpy/lib/tests/test_twodim_base.py +535 -0
  314. numpy-1.10.0.post2/numpy/lib/tests/test_type_check.py +332 -0
  315. numpy-1.10.0.post2/numpy/lib/twodim_base.py +1007 -0
  316. numpy-1.10.0.post2/numpy/lib/type_check.py +596 -0
  317. numpy-1.10.0.post2/numpy/lib/utils.py +1122 -0
  318. numpy-1.10.0.post2/numpy/linalg/lapack_lite/python_xerbla.c +46 -0
  319. numpy-1.10.0.post2/numpy/linalg/lapack_litemodule.c +358 -0
  320. numpy-1.10.0.post2/numpy/linalg/linalg.py +2406 -0
  321. numpy-1.10.0.post2/numpy/linalg/tests/test_build.py +59 -0
  322. numpy-1.10.0.post2/numpy/linalg/tests/test_linalg.py +1351 -0
  323. numpy-1.10.0.post2/numpy/linalg/tests/test_regression.py +95 -0
  324. numpy-1.10.0.post2/numpy/linalg/umath_linalg.c.src +3236 -0
  325. numpy-1.10.0.post2/numpy/ma/__init__.py +56 -0
  326. numpy-1.10.0.post2/numpy/ma/bench.py +131 -0
  327. numpy-1.10.0.post2/numpy/ma/core.py +7608 -0
  328. numpy-1.10.0.post2/numpy/ma/extras.py +1953 -0
  329. numpy-1.10.0.post2/numpy/ma/mrecords.py +796 -0
  330. numpy-1.10.0.post2/numpy/ma/setup.py +13 -0
  331. numpy-1.10.0.post2/numpy/ma/tests/test_core.py +4100 -0
  332. numpy-1.10.0.post2/numpy/ma/tests/test_extras.py +1132 -0
  333. numpy-1.10.0.post2/numpy/ma/tests/test_mrecords.py +520 -0
  334. numpy-1.10.0.post2/numpy/ma/tests/test_old_ma.py +879 -0
  335. numpy-1.10.0.post2/numpy/ma/tests/test_regression.py +80 -0
  336. numpy-1.10.0.post2/numpy/ma/tests/test_subclassing.py +338 -0
  337. numpy-1.10.0.post2/numpy/ma/testutils.py +289 -0
  338. numpy-1.10.0.post2/numpy/ma/timer_comparison.py +440 -0
  339. numpy-1.10.0.post2/numpy/matlib.py +358 -0
  340. numpy-1.10.0.post2/numpy/matrixlib/defmatrix.py +1232 -0
  341. numpy-1.10.0.post2/numpy/matrixlib/tests/test_defmatrix.py +449 -0
  342. numpy-1.10.0.post2/numpy/matrixlib/tests/test_multiarray.py +23 -0
  343. numpy-1.10.0.post2/numpy/matrixlib/tests/test_numeric.py +23 -0
  344. numpy-1.10.0.post2/numpy/matrixlib/tests/test_regression.py +37 -0
  345. numpy-1.10.0.post2/numpy/polynomial/_polybase.py +962 -0
  346. numpy-1.10.0.post2/numpy/polynomial/chebyshev.py +2056 -0
  347. numpy-1.10.0.post2/numpy/polynomial/hermite.py +1831 -0
  348. numpy-1.10.0.post2/numpy/polynomial/hermite_e.py +1828 -0
  349. numpy-1.10.0.post2/numpy/polynomial/laguerre.py +1780 -0
  350. numpy-1.10.0.post2/numpy/polynomial/legendre.py +1808 -0
  351. numpy-1.10.0.post2/numpy/polynomial/polyutils.py +403 -0
  352. numpy-1.10.0.post2/numpy/random/mtrand/distributions.c +912 -0
  353. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.c +34805 -0
  354. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.pyx +4766 -0
  355. numpy-1.10.0.post2/numpy/random/setup.py +61 -0
  356. numpy-1.10.0.post2/numpy/random/tests/test_random.py +723 -0
  357. numpy-1.10.0.post2/numpy/random/tests/test_regression.py +117 -0
  358. numpy-1.10.0.post2/numpy/setup.py +29 -0
  359. numpy-1.10.0.post2/numpy/testing/__init__.py +15 -0
  360. numpy-1.10.0.post2/numpy/testing/decorators.py +271 -0
  361. numpy-1.10.0.post2/numpy/testing/noseclasses.py +353 -0
  362. numpy-1.10.0.post2/numpy/testing/nosetester.py +511 -0
  363. numpy-1.10.0.post2/numpy/testing/print_coercion_tables.py +91 -0
  364. numpy-1.10.0.post2/numpy/testing/setup.py +20 -0
  365. numpy-1.10.0.post2/numpy/testing/tests/test_decorators.py +182 -0
  366. numpy-1.10.0.post2/numpy/testing/tests/test_utils.py +781 -0
  367. numpy-1.10.0.post2/numpy/testing/utils.py +1831 -0
  368. numpy-1.10.0.post2/numpy/tests/test_ctypeslib.py +106 -0
  369. numpy-1.10.0.post2/numpy/tests/test_matlib.py +55 -0
  370. numpy-1.10.0.post2/numpy/tests/test_scripts.py +69 -0
  371. numpy-1.10.0.post2/numpy/version.py +10 -0
  372. numpy-1.10.0.post2/setup.py +260 -0
  373. numpy-1.10.0.post2/site.cfg.example +193 -0
  374. numpy-1.10.0.post2/tmp.txt +789 -0
  375. numpy-1.10.0.post2/tools/swig/README +145 -0
  376. numpy-1.10.0.post2/tools/swig/numpy.i +3161 -0
  377. numpy-1.10.0.post2/tools/swig/test/Array.i +135 -0
  378. numpy-1.10.0.post2/tools/swig/test/ArrayZ.cxx +131 -0
  379. numpy-1.10.0.post2/tools/swig/test/ArrayZ.h +56 -0
  380. numpy-1.10.0.post2/tools/swig/test/Flat.cxx +36 -0
  381. numpy-1.10.0.post2/tools/swig/test/Flat.h +34 -0
  382. numpy-1.10.0.post2/tools/swig/test/Flat.i +36 -0
  383. numpy-1.10.0.post2/tools/swig/test/Makefile +37 -0
  384. numpy-1.10.0.post2/tools/swig/test/setup.py +71 -0
  385. numpy-1.10.0.post2/tools/swig/test/testArray.py +385 -0
  386. numpy-1.10.0.post2/tools/swig/test/testFarray.py +159 -0
  387. numpy-1.10.0.post2/tools/swig/test/testFlat.py +200 -0
  388. numpy-1.10.0.post2/tools/swig/test/testFortran.py +173 -0
  389. numpy-1.10.0.post2/tools/swig/test/testMatrix.py +362 -0
  390. numpy-1.10.0.post2/tools/swig/test/testSuperTensor.py +388 -0
  391. numpy-1.10.0.post2/tools/swig/test/testTensor.py +402 -0
  392. numpy-1.10.0.post2/tools/swig/test/testVector.py +381 -0
  393. numpy-1.9.2/INSTALL.txt +0 -138
  394. numpy-1.9.2/LICENSE.txt +0 -30
  395. numpy-1.9.2/MANIFEST.in +0 -26
  396. numpy-1.9.2/PKG-INFO +0 -39
  397. numpy-1.9.2/doc/scipy-sphinx-theme/.git +0 -1
  398. numpy-1.9.2/doc/source/conf.py +0 -331
  399. numpy-1.9.2/doc/source/dev/gitwash/branch_list.png +0 -0
  400. numpy-1.9.2/doc/source/dev/gitwash/branch_list_compare.png +0 -0
  401. numpy-1.9.2/doc/source/dev/gitwash/development_workflow.rst +0 -568
  402. numpy-1.9.2/doc/source/dev/gitwash/git_links.inc +0 -88
  403. numpy-1.9.2/doc/source/dev/gitwash/index.rst +0 -14
  404. numpy-1.9.2/doc/source/dev/index.rst +0 -10
  405. numpy-1.9.2/doc/source/reference/arrays.classes.rst +0 -427
  406. numpy-1.9.2/doc/source/reference/arrays.dtypes.rst +0 -534
  407. numpy-1.9.2/doc/source/reference/arrays.indexing.rst +0 -550
  408. numpy-1.9.2/doc/source/reference/arrays.interface.rst +0 -336
  409. numpy-1.9.2/doc/source/reference/arrays.ndarray.rst +0 -609
  410. numpy-1.9.2/doc/source/reference/arrays.scalars.rst +0 -291
  411. numpy-1.9.2/doc/source/reference/c-api.array.rst +0 -3362
  412. numpy-1.9.2/doc/source/reference/c-api.config.rst +0 -103
  413. numpy-1.9.2/doc/source/reference/c-api.coremath.rst +0 -420
  414. numpy-1.9.2/doc/source/reference/c-api.dtype.rst +0 -376
  415. numpy-1.9.2/doc/source/reference/c-api.generalized-ufuncs.rst +0 -171
  416. numpy-1.9.2/doc/source/reference/c-api.iterator.rst +0 -1298
  417. numpy-1.9.2/doc/source/reference/c-api.types-and-structures.rst +0 -1204
  418. numpy-1.9.2/doc/source/reference/c-api.ufunc.rst +0 -399
  419. numpy-1.9.2/doc/source/reference/index.rst +0 -44
  420. numpy-1.9.2/doc/source/reference/internals.code-explanations.rst +0 -666
  421. numpy-1.9.2/doc/source/reference/routines.array-manipulation.rst +0 -113
  422. numpy-1.9.2/doc/source/reference/routines.io.rst +0 -74
  423. numpy-1.9.2/doc/source/reference/routines.linalg.rst +0 -88
  424. numpy-1.9.2/doc/source/reference/routines.ma.rst +0 -405
  425. numpy-1.9.2/doc/source/reference/routines.sort.rst +0 -42
  426. numpy-1.9.2/doc/source/reference/routines.statistics.rst +0 -55
  427. numpy-1.9.2/doc/source/reference/swig.interface-file.rst +0 -1055
  428. numpy-1.9.2/doc/source/reference/swig.testing.rst +0 -166
  429. numpy-1.9.2/doc/source/reference/ufuncs.rst +0 -651
  430. numpy-1.9.2/doc/source/release.rst +0 -19
  431. numpy-1.9.2/doc/source/user/basics.io.genfromtxt.rst +0 -531
  432. numpy-1.9.2/doc/source/user/basics.rec.rst +0 -7
  433. numpy-1.9.2/doc/source/user/c-info.beyond-basics.rst +0 -560
  434. numpy-1.9.2/doc/source/user/c-info.how-to-extend.rst +0 -642
  435. numpy-1.9.2/doc/source/user/c-info.python-as-glue.rst +0 -1528
  436. numpy-1.9.2/doc/source/user/c-info.ufunc-tutorial.rst +0 -1211
  437. numpy-1.9.2/doc/source/user/install.rst +0 -180
  438. numpy-1.9.2/doc/sphinxext/.git +0 -1
  439. numpy-1.9.2/numpy/__init__.py +0 -216
  440. numpy-1.9.2/numpy/_import_tools.py +0 -348
  441. numpy-1.9.2/numpy/add_newdocs.py +0 -7518
  442. numpy-1.9.2/numpy/compat/_inspect.py +0 -221
  443. numpy-1.9.2/numpy/compat/py3k.py +0 -89
  444. numpy-1.9.2/numpy/compat/setup.py +0 -12
  445. numpy-1.9.2/numpy/core/__init__.py +0 -78
  446. numpy-1.9.2/numpy/core/_internal.py +0 -570
  447. numpy-1.9.2/numpy/core/_methods.py +0 -134
  448. numpy-1.9.2/numpy/core/arrayprint.py +0 -752
  449. numpy-1.9.2/numpy/core/blasdot/_dotblas.c +0 -1255
  450. numpy-1.9.2/numpy/core/blasdot/apple_sgemv_patch.c +0 -216
  451. numpy-1.9.2/numpy/core/blasdot/cblas.h +0 -578
  452. numpy-1.9.2/numpy/core/code_generators/cversions.txt +0 -31
  453. numpy-1.9.2/numpy/core/code_generators/generate_ufunc_api.py +0 -219
  454. numpy-1.9.2/numpy/core/code_generators/generate_umath.py +0 -972
  455. numpy-1.9.2/numpy/core/code_generators/numpy_api.py +0 -412
  456. numpy-1.9.2/numpy/core/code_generators/ufunc_docstrings.py +0 -3419
  457. numpy-1.9.2/numpy/core/defchararray.py +0 -2687
  458. numpy-1.9.2/numpy/core/fromnumeric.py +0 -2938
  459. numpy-1.9.2/numpy/core/function_base.py +0 -190
  460. numpy-1.9.2/numpy/core/getlimits.py +0 -306
  461. numpy-1.9.2/numpy/core/include/numpy/fenv/fenv.c +0 -38
  462. numpy-1.9.2/numpy/core/include/numpy/fenv/fenv.h +0 -224
  463. numpy-1.9.2/numpy/core/include/numpy/ndarrayobject.h +0 -237
  464. numpy-1.9.2/numpy/core/include/numpy/ndarraytypes.h +0 -1820
  465. numpy-1.9.2/numpy/core/include/numpy/npy_3kcompat.h +0 -506
  466. numpy-1.9.2/numpy/core/include/numpy/npy_common.h +0 -1038
  467. numpy-1.9.2/numpy/core/include/numpy/npy_cpu.h +0 -122
  468. numpy-1.9.2/numpy/core/include/numpy/npy_endian.h +0 -49
  469. numpy-1.9.2/numpy/core/include/numpy/npy_math.h +0 -479
  470. numpy-1.9.2/numpy/core/include/numpy/numpyconfig.h +0 -35
  471. numpy-1.9.2/numpy/core/machar.py +0 -338
  472. numpy-1.9.2/numpy/core/memmap.py +0 -308
  473. numpy-1.9.2/numpy/core/numeric.py +0 -2842
  474. numpy-1.9.2/numpy/core/numerictypes.py +0 -1042
  475. numpy-1.9.2/numpy/core/records.py +0 -804
  476. numpy-1.9.2/numpy/core/setup.py +0 -1016
  477. numpy-1.9.2/numpy/core/setup_common.py +0 -321
  478. numpy-1.9.2/numpy/core/shape_base.py +0 -277
  479. numpy-1.9.2/numpy/core/src/multiarray/alloc.c +0 -241
  480. numpy-1.9.2/numpy/core/src/multiarray/arrayobject.c +0 -1791
  481. numpy-1.9.2/numpy/core/src/multiarray/arraytypes.c.src +0 -4372
  482. numpy-1.9.2/numpy/core/src/multiarray/arraytypes.h +0 -13
  483. numpy-1.9.2/numpy/core/src/multiarray/buffer.c +0 -954
  484. numpy-1.9.2/numpy/core/src/multiarray/calculation.c +0 -1229
  485. numpy-1.9.2/numpy/core/src/multiarray/common.c +0 -798
  486. numpy-1.9.2/numpy/core/src/multiarray/common.h +0 -328
  487. numpy-1.9.2/numpy/core/src/multiarray/conversion_utils.c +0 -1240
  488. numpy-1.9.2/numpy/core/src/multiarray/convert.c +0 -589
  489. numpy-1.9.2/numpy/core/src/multiarray/convert_datatype.c +0 -2199
  490. numpy-1.9.2/numpy/core/src/multiarray/ctors.c +0 -3785
  491. numpy-1.9.2/numpy/core/src/multiarray/datetime.c +0 -3823
  492. numpy-1.9.2/numpy/core/src/multiarray/datetime_busday.c +0 -1322
  493. numpy-1.9.2/numpy/core/src/multiarray/datetime_busdaycal.c +0 -552
  494. numpy-1.9.2/numpy/core/src/multiarray/datetime_strings.c +0 -1772
  495. numpy-1.9.2/numpy/core/src/multiarray/descriptor.c +0 -3658
  496. numpy-1.9.2/numpy/core/src/multiarray/dtype_transfer.c +0 -4232
  497. numpy-1.9.2/numpy/core/src/multiarray/einsum.c.src +0 -3013
  498. numpy-1.9.2/numpy/core/src/multiarray/getset.c +0 -984
  499. numpy-1.9.2/numpy/core/src/multiarray/hashdescr.c +0 -319
  500. numpy-1.9.2/numpy/core/src/multiarray/item_selection.c +0 -2711
  501. numpy-1.9.2/numpy/core/src/multiarray/iterators.c +0 -2160
  502. numpy-1.9.2/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +0 -1767
  503. numpy-1.9.2/numpy/core/src/multiarray/mapping.c +0 -3316
  504. numpy-1.9.2/numpy/core/src/multiarray/mapping.h +0 -73
  505. numpy-1.9.2/numpy/core/src/multiarray/methods.c +0 -2497
  506. numpy-1.9.2/numpy/core/src/multiarray/multiarray_tests.c.src +0 -977
  507. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule.c +0 -4202
  508. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule.h +0 -4
  509. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule_onefile.c +0 -58
  510. numpy-1.9.2/numpy/core/src/multiarray/nditer_api.c +0 -2809
  511. numpy-1.9.2/numpy/core/src/multiarray/nditer_constr.c +0 -3159
  512. numpy-1.9.2/numpy/core/src/multiarray/nditer_pywrap.c +0 -2492
  513. numpy-1.9.2/numpy/core/src/multiarray/number.c +0 -1057
  514. numpy-1.9.2/numpy/core/src/multiarray/number.h +0 -76
  515. numpy-1.9.2/numpy/core/src/multiarray/numpymemoryview.c +0 -309
  516. numpy-1.9.2/numpy/core/src/multiarray/numpyos.c +0 -683
  517. numpy-1.9.2/numpy/core/src/multiarray/scalarapi.c +0 -861
  518. numpy-1.9.2/numpy/core/src/multiarray/scalartypes.c.src +0 -4270
  519. numpy-1.9.2/numpy/core/src/multiarray/scalartypes.h +0 -52
  520. numpy-1.9.2/numpy/core/src/multiarray/shape.c +0 -1141
  521. numpy-1.9.2/numpy/core/src/multiarray/ucsnarrow.c +0 -173
  522. numpy-1.9.2/numpy/core/src/npymath/ieee754.c.src +0 -814
  523. numpy-1.9.2/numpy/core/src/npymath/npy_math.c.src +0 -527
  524. numpy-1.9.2/numpy/core/src/npymath/npy_math_complex.c.src +0 -291
  525. numpy-1.9.2/numpy/core/src/npymath/npy_math_private.h +0 -539
  526. numpy-1.9.2/numpy/core/src/npysort/heapsort.c.src +0 -341
  527. numpy-1.9.2/numpy/core/src/npysort/mergesort.c.src +0 -428
  528. numpy-1.9.2/numpy/core/src/npysort/npysort_common.h +0 -367
  529. numpy-1.9.2/numpy/core/src/npysort/quicksort.c.src +0 -363
  530. numpy-1.9.2/numpy/core/src/npysort/selection.c.src +0 -474
  531. numpy-1.9.2/numpy/core/src/private/npy_config.h +0 -44
  532. numpy-1.9.2/numpy/core/src/private/npy_partition.h.src +0 -138
  533. numpy-1.9.2/numpy/core/src/private/npy_sort.h +0 -194
  534. numpy-1.9.2/numpy/core/src/private/scalarmathmodule.h.src +0 -42
  535. numpy-1.9.2/numpy/core/src/private/ufunc_override.h +0 -384
  536. numpy-1.9.2/numpy/core/src/scalarmathmodule.c.src +0 -1980
  537. numpy-1.9.2/numpy/core/src/umath/funcs.inc.src +0 -715
  538. numpy-1.9.2/numpy/core/src/umath/loops.c.src +0 -2654
  539. numpy-1.9.2/numpy/core/src/umath/loops.h.src +0 -501
  540. numpy-1.9.2/numpy/core/src/umath/operand_flag_tests.c.src +0 -105
  541. numpy-1.9.2/numpy/core/src/umath/simd.inc.src +0 -881
  542. numpy-1.9.2/numpy/core/src/umath/test_rational.c.src +0 -1404
  543. numpy-1.9.2/numpy/core/src/umath/ufunc_object.c +0 -5520
  544. numpy-1.9.2/numpy/core/src/umath/ufunc_type_resolution.c +0 -2164
  545. numpy-1.9.2/numpy/core/src/umath/umath_tests.c.src +0 -341
  546. numpy-1.9.2/numpy/core/src/umath/umathmodule.c +0 -561
  547. numpy-1.9.2/numpy/core/src/umath/umathmodule_onefile.c +0 -6
  548. numpy-1.9.2/numpy/core/tests/test_abc.py +0 -45
  549. numpy-1.9.2/numpy/core/tests/test_api.py +0 -514
  550. numpy-1.9.2/numpy/core/tests/test_arrayprint.py +0 -167
  551. numpy-1.9.2/numpy/core/tests/test_blasdot.py +0 -249
  552. numpy-1.9.2/numpy/core/tests/test_datetime.py +0 -1781
  553. numpy-1.9.2/numpy/core/tests/test_defchararray.py +0 -642
  554. numpy-1.9.2/numpy/core/tests/test_deprecations.py +0 -512
  555. numpy-1.9.2/numpy/core/tests/test_dtype.py +0 -542
  556. numpy-1.9.2/numpy/core/tests/test_einsum.py +0 -583
  557. numpy-1.9.2/numpy/core/tests/test_errstate.py +0 -51
  558. numpy-1.9.2/numpy/core/tests/test_function_base.py +0 -111
  559. numpy-1.9.2/numpy/core/tests/test_getlimits.py +0 -86
  560. numpy-1.9.2/numpy/core/tests/test_half.py +0 -439
  561. numpy-1.9.2/numpy/core/tests/test_indexerrors.py +0 -127
  562. numpy-1.9.2/numpy/core/tests/test_indexing.py +0 -1014
  563. numpy-1.9.2/numpy/core/tests/test_item_selection.py +0 -70
  564. numpy-1.9.2/numpy/core/tests/test_machar.py +0 -30
  565. numpy-1.9.2/numpy/core/tests/test_memmap.py +0 -127
  566. numpy-1.9.2/numpy/core/tests/test_multiarray.py +0 -4645
  567. numpy-1.9.2/numpy/core/tests/test_multiarray_assignment.py +0 -80
  568. numpy-1.9.2/numpy/core/tests/test_nditer.py +0 -2630
  569. numpy-1.9.2/numpy/core/tests/test_numeric.py +0 -2117
  570. numpy-1.9.2/numpy/core/tests/test_numerictypes.py +0 -377
  571. numpy-1.9.2/numpy/core/tests/test_print.py +0 -245
  572. numpy-1.9.2/numpy/core/tests/test_records.py +0 -185
  573. numpy-1.9.2/numpy/core/tests/test_regression.py +0 -2108
  574. numpy-1.9.2/numpy/core/tests/test_scalarinherit.py +0 -34
  575. numpy-1.9.2/numpy/core/tests/test_scalarmath.py +0 -275
  576. numpy-1.9.2/numpy/core/tests/test_shape_base.py +0 -250
  577. numpy-1.9.2/numpy/core/tests/test_ufunc.py +0 -1153
  578. numpy-1.9.2/numpy/core/tests/test_umath.py +0 -1695
  579. numpy-1.9.2/numpy/core/tests/test_umath_complex.py +0 -537
  580. numpy-1.9.2/numpy/core/tests/test_unicode.py +0 -357
  581. numpy-1.9.2/numpy/distutils/__init__.py +0 -39
  582. numpy-1.9.2/numpy/distutils/ccompiler.py +0 -656
  583. numpy-1.9.2/numpy/distutils/command/autodist.py +0 -43
  584. numpy-1.9.2/numpy/distutils/command/build.py +0 -39
  585. numpy-1.9.2/numpy/distutils/command/build_clib.py +0 -284
  586. numpy-1.9.2/numpy/distutils/command/build_ext.py +0 -503
  587. numpy-1.9.2/numpy/distutils/command/config.py +0 -476
  588. numpy-1.9.2/numpy/distutils/exec_command.py +0 -618
  589. numpy-1.9.2/numpy/distutils/fcompiler/compaq.py +0 -128
  590. numpy-1.9.2/numpy/distutils/fcompiler/gnu.py +0 -390
  591. numpy-1.9.2/numpy/distutils/fcompiler/intel.py +0 -205
  592. numpy-1.9.2/numpy/distutils/fcompiler/pg.py +0 -60
  593. numpy-1.9.2/numpy/distutils/fcompiler/sun.py +0 -52
  594. numpy-1.9.2/numpy/distutils/intelccompiler.py +0 -45
  595. numpy-1.9.2/numpy/distutils/lib2def.py +0 -116
  596. numpy-1.9.2/numpy/distutils/mingw32ccompiler.py +0 -582
  597. numpy-1.9.2/numpy/distutils/misc_util.py +0 -2271
  598. numpy-1.9.2/numpy/distutils/npy_pkg_config.py +0 -464
  599. numpy-1.9.2/numpy/distutils/system_info.py +0 -2319
  600. numpy-1.9.2/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +0 -13
  601. numpy-1.9.2/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +0 -12
  602. numpy-1.9.2/numpy/distutils/tests/gen_ext/tests/test_fib3.py +0 -12
  603. numpy-1.9.2/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +0 -14
  604. numpy-1.9.2/numpy/distutils/tests/swig_ext/tests/test_example.py +0 -18
  605. numpy-1.9.2/numpy/distutils/tests/swig_ext/tests/test_example2.py +0 -16
  606. numpy-1.9.2/numpy/distutils/tests/test_fcompiler_gnu.py +0 -53
  607. numpy-1.9.2/numpy/distutils/tests/test_fcompiler_intel.py +0 -36
  608. numpy-1.9.2/numpy/distutils/tests/test_misc_util.py +0 -75
  609. numpy-1.9.2/numpy/distutils/tests/test_npy_pkg_config.py +0 -98
  610. numpy-1.9.2/numpy/distutils/unixccompiler.py +0 -113
  611. numpy-1.9.2/numpy/doc/byteswapping.py +0 -147
  612. numpy-1.9.2/numpy/doc/creation.py +0 -144
  613. numpy-1.9.2/numpy/doc/glossary.py +0 -418
  614. numpy-1.9.2/numpy/doc/indexing.py +0 -437
  615. numpy-1.9.2/numpy/doc/structured_arrays.py +0 -223
  616. numpy-1.9.2/numpy/f2py/__init__.py +0 -49
  617. numpy-1.9.2/numpy/f2py/auxfuncs.py +0 -711
  618. numpy-1.9.2/numpy/f2py/capi_maps.py +0 -773
  619. numpy-1.9.2/numpy/f2py/cb_rules.py +0 -539
  620. numpy-1.9.2/numpy/f2py/cfuncs.py +0 -1224
  621. numpy-1.9.2/numpy/f2py/common_rules.py +0 -132
  622. numpy-1.9.2/numpy/f2py/crackfortran.py +0 -2870
  623. numpy-1.9.2/numpy/f2py/diagnose.py +0 -149
  624. numpy-1.9.2/numpy/f2py/f2py2e.py +0 -598
  625. numpy-1.9.2/numpy/f2py/f2py_testing.py +0 -46
  626. numpy-1.9.2/numpy/f2py/f90mod_rules.py +0 -246
  627. numpy-1.9.2/numpy/f2py/func2subr.py +0 -291
  628. numpy-1.9.2/numpy/f2py/rules.py +0 -1448
  629. numpy-1.9.2/numpy/f2py/setup.py +0 -129
  630. numpy-1.9.2/numpy/f2py/src/fortranobject.c +0 -972
  631. numpy-1.9.2/numpy/f2py/src/fortranobject.h +0 -162
  632. numpy-1.9.2/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +0 -223
  633. numpy-1.9.2/numpy/f2py/tests/test_array_from_pyobj.py +0 -559
  634. numpy-1.9.2/numpy/f2py/tests/test_assumed_shape.py +0 -37
  635. numpy-1.9.2/numpy/f2py/tests/test_callback.py +0 -132
  636. numpy-1.9.2/numpy/f2py/tests/test_kind.py +0 -36
  637. numpy-1.9.2/numpy/f2py/tests/test_mixed.py +0 -41
  638. numpy-1.9.2/numpy/f2py/tests/test_regression.py +0 -32
  639. numpy-1.9.2/numpy/f2py/tests/test_return_character.py +0 -142
  640. numpy-1.9.2/numpy/f2py/tests/test_return_complex.py +0 -169
  641. numpy-1.9.2/numpy/f2py/tests/test_return_integer.py +0 -178
  642. numpy-1.9.2/numpy/f2py/tests/test_return_logical.py +0 -187
  643. numpy-1.9.2/numpy/f2py/tests/test_return_real.py +0 -203
  644. numpy-1.9.2/numpy/f2py/tests/test_size.py +0 -47
  645. numpy-1.9.2/numpy/f2py/tests/util.py +0 -353
  646. numpy-1.9.2/numpy/f2py/use_rules.py +0 -109
  647. numpy-1.9.2/numpy/fft/fftpack.c +0 -1501
  648. numpy-1.9.2/numpy/fft/fftpack.h +0 -28
  649. numpy-1.9.2/numpy/fft/fftpack.py +0 -1169
  650. numpy-1.9.2/numpy/fft/fftpack_litemodule.c +0 -371
  651. numpy-1.9.2/numpy/fft/info.py +0 -179
  652. numpy-1.9.2/numpy/fft/setup.py +0 -20
  653. numpy-1.9.2/numpy/fft/tests/test_fftpack.py +0 -75
  654. numpy-1.9.2/numpy/fft/tests/test_helper.py +0 -78
  655. numpy-1.9.2/numpy/lib/_iotools.py +0 -891
  656. numpy-1.9.2/numpy/lib/arraypad.py +0 -1475
  657. numpy-1.9.2/numpy/lib/arraysetops.py +0 -464
  658. numpy-1.9.2/numpy/lib/arrayterator.py +0 -226
  659. numpy-1.9.2/numpy/lib/financial.py +0 -737
  660. numpy-1.9.2/numpy/lib/format.py +0 -771
  661. numpy-1.9.2/numpy/lib/function_base.py +0 -3884
  662. numpy-1.9.2/numpy/lib/index_tricks.py +0 -869
  663. numpy-1.9.2/numpy/lib/info.py +0 -151
  664. numpy-1.9.2/numpy/lib/nanfunctions.py +0 -1158
  665. numpy-1.9.2/numpy/lib/npyio.py +0 -1918
  666. numpy-1.9.2/numpy/lib/polynomial.py +0 -1271
  667. numpy-1.9.2/numpy/lib/recfunctions.py +0 -1003
  668. numpy-1.9.2/numpy/lib/setup.py +0 -23
  669. numpy-1.9.2/numpy/lib/shape_base.py +0 -865
  670. numpy-1.9.2/numpy/lib/src/_compiled_base.c +0 -1761
  671. numpy-1.9.2/numpy/lib/stride_tricks.py +0 -123
  672. numpy-1.9.2/numpy/lib/tests/test__iotools.py +0 -326
  673. numpy-1.9.2/numpy/lib/tests/test__version.py +0 -57
  674. numpy-1.9.2/numpy/lib/tests/test_arraypad.py +0 -560
  675. numpy-1.9.2/numpy/lib/tests/test_arraysetops.py +0 -301
  676. numpy-1.9.2/numpy/lib/tests/test_financial.py +0 -160
  677. numpy-1.9.2/numpy/lib/tests/test_format.py +0 -716
  678. numpy-1.9.2/numpy/lib/tests/test_function_base.py +0 -2145
  679. numpy-1.9.2/numpy/lib/tests/test_index_tricks.py +0 -289
  680. numpy-1.9.2/numpy/lib/tests/test_io.py +0 -1754
  681. numpy-1.9.2/numpy/lib/tests/test_nanfunctions.py +0 -774
  682. numpy-1.9.2/numpy/lib/tests/test_polynomial.py +0 -177
  683. numpy-1.9.2/numpy/lib/tests/test_recfunctions.py +0 -705
  684. numpy-1.9.2/numpy/lib/tests/test_shape_base.py +0 -368
  685. numpy-1.9.2/numpy/lib/tests/test_stride_tricks.py +0 -238
  686. numpy-1.9.2/numpy/lib/tests/test_twodim_base.py +0 -504
  687. numpy-1.9.2/numpy/lib/tests/test_type_check.py +0 -328
  688. numpy-1.9.2/numpy/lib/twodim_base.py +0 -1003
  689. numpy-1.9.2/numpy/lib/type_check.py +0 -605
  690. numpy-1.9.2/numpy/lib/utils.py +0 -1176
  691. numpy-1.9.2/numpy/linalg/lapack_lite/python_xerbla.c +0 -47
  692. numpy-1.9.2/numpy/linalg/lapack_litemodule.c +0 -362
  693. numpy-1.9.2/numpy/linalg/linalg.py +0 -2136
  694. numpy-1.9.2/numpy/linalg/tests/test_build.py +0 -53
  695. numpy-1.9.2/numpy/linalg/tests/test_linalg.py +0 -1156
  696. numpy-1.9.2/numpy/linalg/tests/test_regression.py +0 -90
  697. numpy-1.9.2/numpy/linalg/umath_linalg.c.src +0 -3210
  698. numpy-1.9.2/numpy/ma/__init__.py +0 -58
  699. numpy-1.9.2/numpy/ma/bench.py +0 -166
  700. numpy-1.9.2/numpy/ma/core.py +0 -7374
  701. numpy-1.9.2/numpy/ma/extras.py +0 -1932
  702. numpy-1.9.2/numpy/ma/mrecords.py +0 -734
  703. numpy-1.9.2/numpy/ma/setup.py +0 -20
  704. numpy-1.9.2/numpy/ma/tests/test_core.py +0 -3706
  705. numpy-1.9.2/numpy/ma/tests/test_extras.py +0 -954
  706. numpy-1.9.2/numpy/ma/tests/test_mrecords.py +0 -521
  707. numpy-1.9.2/numpy/ma/tests/test_old_ma.py +0 -869
  708. numpy-1.9.2/numpy/ma/tests/test_regression.py +0 -75
  709. numpy-1.9.2/numpy/ma/tests/test_subclassing.py +0 -236
  710. numpy-1.9.2/numpy/ma/testutils.py +0 -240
  711. numpy-1.9.2/numpy/ma/timer_comparison.py +0 -459
  712. numpy-1.9.2/numpy/matlib.py +0 -358
  713. numpy-1.9.2/numpy/matrixlib/defmatrix.py +0 -1094
  714. numpy-1.9.2/numpy/matrixlib/tests/test_defmatrix.py +0 -400
  715. numpy-1.9.2/numpy/matrixlib/tests/test_multiarray.py +0 -18
  716. numpy-1.9.2/numpy/matrixlib/tests/test_numeric.py +0 -10
  717. numpy-1.9.2/numpy/matrixlib/tests/test_regression.py +0 -34
  718. numpy-1.9.2/numpy/polynomial/_polybase.py +0 -962
  719. numpy-1.9.2/numpy/polynomial/chebyshev.py +0 -2056
  720. numpy-1.9.2/numpy/polynomial/hermite.py +0 -1789
  721. numpy-1.9.2/numpy/polynomial/hermite_e.py +0 -1786
  722. numpy-1.9.2/numpy/polynomial/laguerre.py +0 -1781
  723. numpy-1.9.2/numpy/polynomial/legendre.py +0 -1809
  724. numpy-1.9.2/numpy/polynomial/polytemplate.py +0 -927
  725. numpy-1.9.2/numpy/polynomial/polyutils.py +0 -403
  726. numpy-1.9.2/numpy/random/mtrand/distributions.c +0 -892
  727. numpy-1.9.2/numpy/random/mtrand/mtrand.c +0 -31204
  728. numpy-1.9.2/numpy/random/mtrand/mtrand.pyx +0 -4706
  729. numpy-1.9.2/numpy/random/setup.py +0 -74
  730. numpy-1.9.2/numpy/random/tests/test_random.py +0 -707
  731. numpy-1.9.2/numpy/random/tests/test_regression.py +0 -86
  732. numpy-1.9.2/numpy/setup.py +0 -27
  733. numpy-1.9.2/numpy/testing/__init__.py +0 -16
  734. numpy-1.9.2/numpy/testing/decorators.py +0 -271
  735. numpy-1.9.2/numpy/testing/noseclasses.py +0 -353
  736. numpy-1.9.2/numpy/testing/nosetester.py +0 -504
  737. numpy-1.9.2/numpy/testing/print_coercion_tables.py +0 -89
  738. numpy-1.9.2/numpy/testing/setup.py +0 -20
  739. numpy-1.9.2/numpy/testing/tests/test_decorators.py +0 -185
  740. numpy-1.9.2/numpy/testing/tests/test_utils.py +0 -558
  741. numpy-1.9.2/numpy/testing/utils.py +0 -1715
  742. numpy-1.9.2/numpy/tests/test_ctypeslib.py +0 -102
  743. numpy-1.9.2/numpy/tests/test_matlib.py +0 -55
  744. numpy-1.9.2/numpy/version.py +0 -10
  745. numpy-1.9.2/setup.py +0 -251
  746. numpy-1.9.2/site.cfg.example +0 -157
  747. numpy-1.9.2/tools/swig/README +0 -135
  748. numpy-1.9.2/tools/swig/numpy.i +0 -3085
  749. numpy-1.9.2/tools/swig/test/Array.i +0 -102
  750. numpy-1.9.2/tools/swig/test/Makefile +0 -34
  751. numpy-1.9.2/tools/swig/test/setup.py +0 -64
  752. numpy-1.9.2/tools/swig/test/testArray.py +0 -284
  753. numpy-1.9.2/tools/swig/test/testFarray.py +0 -159
  754. numpy-1.9.2/tools/swig/test/testFortran.py +0 -173
  755. numpy-1.9.2/tools/swig/test/testMatrix.py +0 -362
  756. numpy-1.9.2/tools/swig/test/testSuperTensor.py +0 -388
  757. numpy-1.9.2/tools/swig/test/testTensor.py +0 -402
  758. numpy-1.9.2/tools/swig/test/testVector.py +0 -381
  759. {numpy-1.9.2 → numpy-1.10.0.post2}/BENTO_BUILD.txt +0 -0
  760. {numpy-1.9.2 → numpy-1.10.0.post2}/COMPATIBILITY +0 -0
  761. {numpy-1.9.2 → numpy-1.10.0.post2}/DEV_README.txt +0 -0
  762. {numpy-1.9.2 → numpy-1.10.0.post2}/README.txt +0 -0
  763. {numpy-1.9.2 → numpy-1.10.0.post2}/THANKS.txt +0 -0
  764. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/Makefile +0 -0
  765. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/BUGS.txt +0 -0
  766. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/FAQ.txt +0 -0
  767. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/HISTORY.txt +0 -0
  768. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Makefile +0 -0
  769. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/OLDNEWS.txt +0 -0
  770. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/README.txt +0 -0
  771. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-1.x.txt +0 -0
  772. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-2.x.txt +0 -0
  773. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-3.x.txt +0 -0
  774. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-4.x.txt +0 -0
  775. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/TESTING.txt +0 -0
  776. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/THANKS.txt +0 -0
  777. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/TODO.txt +0 -0
  778. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/apps.tex +0 -0
  779. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/bugs.tex +0 -0
  780. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/collectinput.py +0 -0
  781. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/commands.tex +0 -0
  782. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/default.css +0 -0
  783. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/docutils.conf +0 -0
  784. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/arr.f +0 -0
  785. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/bar.f +0 -0
  786. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foo.f +0 -0
  787. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar-smart.f90 +0 -0
  788. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar.f90 +0 -0
  789. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobarmodule.tex +0 -0
  790. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/runme +0 -0
  791. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2py.1 +0 -0
  792. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2py2e.tex +0 -0
  793. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/README.txt +0 -0
  794. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/aerostructure.jpg +0 -0
  795. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/flow.jpg +0 -0
  796. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_html.sh +0 -0
  797. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_pdf.sh +0 -0
  798. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_ps.sh +0 -0
  799. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1.f +0 -0
  800. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1mess.txt +0 -0
  801. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1session.txt +0 -0
  802. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foo.pyf +0 -0
  803. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foom.pyf +0 -0
  804. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/structure.jpg +0 -0
  805. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/fortranobject.tex +0 -0
  806. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/hello.f +0 -0
  807. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/index.html +0 -0
  808. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/intro.tex +0 -0
  809. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/array_from_pyobj.c +0 -0
  810. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/bar.c +0 -0
  811. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/foo.f +0 -0
  812. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/fortran_array_from_pyobj.txt +0 -0
  813. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/fun.pyf +0 -0
  814. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/run.pyf +0 -0
  815. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/transpose.txt +0 -0
  816. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarrays.txt +0 -0
  817. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/notes.tex +0 -0
  818. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/oldnews.html +0 -0
  819. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/options.tex +0 -0
  820. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/pyforttest.pyf +0 -0
  821. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/pytest.py +0 -0
  822. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/python9.tex +0 -0
  823. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/signaturefile.tex +0 -0
  824. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/simple.f +0 -0
  825. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/simple_session.dat +0 -0
  826. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/using_F_compiler.txt +0 -0
  827. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/win32_notes.txt +0 -0
  828. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/postprocess.py +0 -0
  829. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.3.0-notes.rst +0 -0
  830. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.4.0-notes.rst +0 -0
  831. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.5.0-notes.rst +0 -0
  832. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.0-notes.rst +0 -0
  833. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.1-notes.rst +0 -0
  834. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.2-notes.rst +0 -0
  835. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.0-notes.rst +0 -0
  836. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.1-notes.rst +0 -0
  837. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.2-notes.rst +0 -0
  838. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.0-notes.rst +0 -0
  839. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.1-notes.rst +0 -0
  840. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.2-notes.rst +0 -0
  841. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.0-notes.rst +0 -0
  842. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.1-notes.rst +0 -0
  843. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.2-notes.rst +0 -0
  844. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/time_based_proposal.rst +0 -0
  845. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/.gitignore +0 -0
  846. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/Makefile +0 -0
  847. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/README.rst +0 -0
  848. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_static/scipyshiny_small.png +0 -0
  849. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/layout.html +0 -0
  850. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/searchbox.html +0 -0
  851. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/sourcelink.html +0 -0
  852. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/extend.css +0 -0
  853. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/pygments.css +0 -0
  854. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/scipy-central.css +0 -0
  855. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-bootstrap.css +0 -0
  856. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-extend.css +0 -0
  857. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/all-icons.svg +0 -0
  858. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/contents.png +0 -0
  859. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/create-new-account-icon.png +0 -0
  860. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon-shrunk.png +0 -0
  861. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.png +0 -0
  862. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.svg +0 -0
  863. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiniest.png +0 -0
  864. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiny.png +0 -0
  865. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon.png +0 -0
  866. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ad.png +0 -0
  867. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ae.png +0 -0
  868. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-af.png +0 -0
  869. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ag.png +0 -0
  870. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ai.png +0 -0
  871. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-al.png +0 -0
  872. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-am.png +0 -0
  873. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ao.png +0 -0
  874. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aq.png +0 -0
  875. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ar.png +0 -0
  876. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-as.png +0 -0
  877. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-at.png +0 -0
  878. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-au.png +0 -0
  879. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aw.png +0 -0
  880. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-az.png +0 -0
  881. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ba.png +0 -0
  882. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bb.png +0 -0
  883. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bd.png +0 -0
  884. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-be.png +0 -0
  885. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bf.png +0 -0
  886. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bg.png +0 -0
  887. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bh.png +0 -0
  888. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bi.png +0 -0
  889. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bj.png +0 -0
  890. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bl.png +0 -0
  891. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bm.png +0 -0
  892. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bn.png +0 -0
  893. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bo.png +0 -0
  894. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-br.png +0 -0
  895. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bs.png +0 -0
  896. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bt.png +0 -0
  897. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bw.png +0 -0
  898. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-by.png +0 -0
  899. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bz.png +0 -0
  900. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ca.png +0 -0
  901. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cc.png +0 -0
  902. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cd.png +0 -0
  903. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cf.png +0 -0
  904. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cg.png +0 -0
  905. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ch.png +0 -0
  906. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ci.png +0 -0
  907. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ck.png +0 -0
  908. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cl.png +0 -0
  909. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cm.png +0 -0
  910. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cn.png +0 -0
  911. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-co.png +0 -0
  912. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cr.png +0 -0
  913. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cu.png +0 -0
  914. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cv.png +0 -0
  915. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cw.png +0 -0
  916. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cx.png +0 -0
  917. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cy.png +0 -0
  918. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cz.png +0 -0
  919. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-de.png +0 -0
  920. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dj.png +0 -0
  921. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dk.png +0 -0
  922. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dm.png +0 -0
  923. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-do.png +0 -0
  924. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dz.png +0 -0
  925. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ec.png +0 -0
  926. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ee.png +0 -0
  927. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-eg.png +0 -0
  928. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-er.png +0 -0
  929. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-es.png +0 -0
  930. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-et.png +0 -0
  931. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fi.png +0 -0
  932. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fj.png +0 -0
  933. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fk.png +0 -0
  934. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fm.png +0 -0
  935. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fo.png +0 -0
  936. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fr.png +0 -0
  937. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ga.png +0 -0
  938. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gb.png +0 -0
  939. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gd.png +0 -0
  940. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ge.png +0 -0
  941. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gf.png +0 -0
  942. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gg.png +0 -0
  943. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gh.png +0 -0
  944. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gi.png +0 -0
  945. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gl.png +0 -0
  946. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gm.png +0 -0
  947. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gn.png +0 -0
  948. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gq.png +0 -0
  949. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gr.png +0 -0
  950. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gs.png +0 -0
  951. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gt.png +0 -0
  952. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gu.png +0 -0
  953. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gw.png +0 -0
  954. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gy.png +0 -0
  955. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hk.png +0 -0
  956. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hm.png +0 -0
  957. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hn.png +0 -0
  958. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hr.png +0 -0
  959. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ht.png +0 -0
  960. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hu.png +0 -0
  961. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-id.png +0 -0
  962. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ie.png +0 -0
  963. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-il.png +0 -0
  964. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-im.png +0 -0
  965. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-in.png +0 -0
  966. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-io.png +0 -0
  967. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-iq.png +0 -0
  968. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ir.png +0 -0
  969. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-is.png +0 -0
  970. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-it.png +0 -0
  971. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-je.png +0 -0
  972. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jm.png +0 -0
  973. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jo.png +0 -0
  974. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jp.png +0 -0
  975. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ke.png +0 -0
  976. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kg.png +0 -0
  977. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kh.png +0 -0
  978. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ki.png +0 -0
  979. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-km.png +0 -0
  980. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kn.png +0 -0
  981. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kp.png +0 -0
  982. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kr.png +0 -0
  983. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kw.png +0 -0
  984. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ky.png +0 -0
  985. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kz.png +0 -0
  986. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-la.png +0 -0
  987. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lb.png +0 -0
  988. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lc.png +0 -0
  989. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-li.png +0 -0
  990. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lk.png +0 -0
  991. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lr.png +0 -0
  992. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ls.png +0 -0
  993. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lt.png +0 -0
  994. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lu.png +0 -0
  995. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lv.png +0 -0
  996. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ly.png +0 -0
  997. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ma.png +0 -0
  998. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mc.png +0 -0
  999. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-md.png +0 -0
  1000. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-me.png +0 -0
  1001. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mf.png +0 -0
  1002. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mg.png +0 -0
  1003. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mh.png +0 -0
  1004. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mk.png +0 -0
  1005. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ml.png +0 -0
  1006. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mm.png +0 -0
  1007. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mn.png +0 -0
  1008. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mo.png +0 -0
  1009. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mp.png +0 -0
  1010. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mq.png +0 -0
  1011. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mr.png +0 -0
  1012. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ms.png +0 -0
  1013. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mt.png +0 -0
  1014. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mu.png +0 -0
  1015. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mv.png +0 -0
  1016. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mw.png +0 -0
  1017. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mx.png +0 -0
  1018. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-my.png +0 -0
  1019. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mz.png +0 -0
  1020. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-na.png +0 -0
  1021. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nc.png +0 -0
  1022. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ne.png +0 -0
  1023. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nf.png +0 -0
  1024. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ng.png +0 -0
  1025. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ni.png +0 -0
  1026. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nl.png +0 -0
  1027. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-no.png +0 -0
  1028. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-np.png +0 -0
  1029. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nr.png +0 -0
  1030. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nu.png +0 -0
  1031. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nz.png +0 -0
  1032. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-om.png +0 -0
  1033. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pa.png +0 -0
  1034. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pe.png +0 -0
  1035. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pf.png +0 -0
  1036. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pg.png +0 -0
  1037. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ph.png +0 -0
  1038. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pk.png +0 -0
  1039. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pl.png +0 -0
  1040. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pm.png +0 -0
  1041. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pn.png +0 -0
  1042. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pr.png +0 -0
  1043. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ps.png +0 -0
  1044. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pt.png +0 -0
  1045. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pw.png +0 -0
  1046. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-py.png +0 -0
  1047. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-qa.png +0 -0
  1048. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-re.png +0 -0
  1049. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ro.png +0 -0
  1050. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rs.png +0 -0
  1051. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ru.png +0 -0
  1052. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rw.png +0 -0
  1053. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sa.png +0 -0
  1054. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sb.png +0 -0
  1055. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sc.png +0 -0
  1056. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sd.png +0 -0
  1057. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-se.png +0 -0
  1058. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sg.png +0 -0
  1059. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sh.png +0 -0
  1060. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-si.png +0 -0
  1061. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sj.png +0 -0
  1062. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sk.png +0 -0
  1063. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sl.png +0 -0
  1064. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sm.png +0 -0
  1065. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sn.png +0 -0
  1066. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-so.png +0 -0
  1067. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sr.png +0 -0
  1068. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-st.png +0 -0
  1069. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sv.png +0 -0
  1070. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sy.png +0 -0
  1071. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sz.png +0 -0
  1072. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tc.png +0 -0
  1073. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-td.png +0 -0
  1074. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tf.png +0 -0
  1075. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tg.png +0 -0
  1076. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-th.png +0 -0
  1077. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tj.png +0 -0
  1078. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tk.png +0 -0
  1079. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tl.png +0 -0
  1080. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tm.png +0 -0
  1081. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tn.png +0 -0
  1082. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-to.png +0 -0
  1083. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tr.png +0 -0
  1084. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tt.png +0 -0
  1085. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tv.png +0 -0
  1086. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tw.png +0 -0
  1087. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tz.png +0 -0
  1088. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ua.png +0 -0
  1089. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ug.png +0 -0
  1090. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-um.png +0 -0
  1091. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-us.png +0 -0
  1092. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uy.png +0 -0
  1093. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uz.png +0 -0
  1094. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-va.png +0 -0
  1095. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vc.png +0 -0
  1096. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ve.png +0 -0
  1097. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vg.png +0 -0
  1098. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vi.png +0 -0
  1099. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vn.png +0 -0
  1100. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vu.png +0 -0
  1101. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-wf.png +0 -0
  1102. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ws.png +0 -0
  1103. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ye.png +0 -0
  1104. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-za.png +0 -0
  1105. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zm.png +0 -0
  1106. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zw.png +0 -0
  1107. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings-white.png +0 -0
  1108. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings.png +0 -0
  1109. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/important-icon.png +0 -0
  1110. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/information-icon.png +0 -0
  1111. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/internet-web-browser.png +0 -0
  1112. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon-shrunk.png +0 -0
  1113. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.png +0 -0
  1114. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.svg +0 -0
  1115. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon-tiny.png +0 -0
  1116. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon.png +0 -0
  1117. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/navigation.png +0 -0
  1118. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon-tiny.png +0 -0
  1119. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon.png +0 -0
  1120. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy-logo.png +0 -0
  1121. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy_org_logo.gif +0 -0
  1122. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipycentral_logo.png +0 -0
  1123. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipyshiny_small.png +0 -0
  1124. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/send-email-icon.png +0 -0
  1125. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon-shrunk.png +0 -0
  1126. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.png +0 -0
  1127. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.svg +0 -0
  1128. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiniest.png +0 -0
  1129. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiny.png +0 -0
  1130. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon.png +0 -0
  1131. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/transparent-pixel.gif +0 -0
  1132. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/ui-anim_basic_16x16.gif +0 -0
  1133. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/js/copybutton.js +0 -0
  1134. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/accordion.less +0 -0
  1135. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/alerts.less +0 -0
  1136. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/bootstrap.less +0 -0
  1137. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/breadcrumbs.less +0 -0
  1138. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/button-groups.less +0 -0
  1139. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/buttons.less +0 -0
  1140. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/carousel.less +0 -0
  1141. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/close.less +0 -0
  1142. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/code.less +0 -0
  1143. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/component-animations.less +0 -0
  1144. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/dropdowns.less +0 -0
  1145. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/forms.less +0 -0
  1146. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/grid.less +0 -0
  1147. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/hero-unit.less +0 -0
  1148. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/labels-badges.less +0 -0
  1149. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/layouts.less +0 -0
  1150. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/media.less +0 -0
  1151. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/mixins.less +0 -0
  1152. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/modals.less +0 -0
  1153. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navbar.less +0 -0
  1154. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navs.less +0 -0
  1155. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pager.less +0 -0
  1156. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pagination.less +0 -0
  1157. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/popovers.less +0 -0
  1158. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/progress-bars.less +0 -0
  1159. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/reset.less +0 -0
  1160. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-1200px-min.less +0 -0
  1161. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-767px-max.less +0 -0
  1162. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-768px-979px.less +0 -0
  1163. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-navbar.less +0 -0
  1164. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-utilities.less +0 -0
  1165. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive.less +0 -0
  1166. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/scaffolding.less +0 -0
  1167. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/sprites.less +0 -0
  1168. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tables.less +0 -0
  1169. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/thumbnails.less +0 -0
  1170. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tooltip.less +0 -0
  1171. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/type.less +0 -0
  1172. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/utilities.less +0 -0
  1173. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/variables.less +0 -0
  1174. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/wells.less +0 -0
  1175. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-bootstrap.less +0 -0
  1176. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-content.less +0 -0
  1177. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-extend.less +0 -0
  1178. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-footer.less +0 -0
  1179. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-header.less +0 -0
  1180. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-rightsidebar.less +0 -0
  1181. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-utils.less +0 -0
  1182. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/scipy.css_t +0 -0
  1183. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/theme.conf +0 -0
  1184. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/conf.py +0 -0
  1185. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/index.rst +0 -0
  1186. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc.rst +0 -0
  1187. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_2.rst +0 -0
  1188. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_3.rst +0 -0
  1189. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_4.rst +0 -0
  1190. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_optimize.rst +0 -0
  1191. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/autosummary/class.rst +0 -0
  1192. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/indexcontent.html +0 -0
  1193. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/indexsidebar.html +0 -0
  1194. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/layout.html +0 -0
  1195. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/about.rst +0 -0
  1196. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/bugs.rst +0 -0
  1197. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/contents.rst +0 -0
  1198. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/configure_git.rst +0 -0
  1199. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/development_setup.rst +0 -0
  1200. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/dot2_dot3.rst +0 -0
  1201. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/following_latest.rst +0 -0
  1202. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/forking_button.png +0 -0
  1203. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_development.rst +0 -0
  1204. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_intro.rst +0 -0
  1205. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_resources.rst +0 -0
  1206. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/pull_button.png +0 -0
  1207. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash_links.txt +0 -0
  1208. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/advanced.rst +0 -0
  1209. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/allocarr.f90 +0 -0
  1210. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/allocarr_session.dat +0 -0
  1211. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/array.f +0 -0
  1212. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/array_session.dat +0 -0
  1213. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/calculate.f +0 -0
  1214. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/calculate_session.dat +0 -0
  1215. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback.f +0 -0
  1216. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback2.pyf +0 -0
  1217. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback_session.dat +0 -0
  1218. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/common.f +0 -0
  1219. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/common_session.dat +0 -0
  1220. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/compile_session.dat +0 -0
  1221. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/distutils.rst +0 -0
  1222. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/extcallback.f +0 -0
  1223. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/extcallback_session.dat +0 -0
  1224. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib1.f +0 -0
  1225. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib1.pyf +0 -0
  1226. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib2.pyf +0 -0
  1227. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib3.f +0 -0
  1228. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/ftype.f +0 -0
  1229. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/ftype_session.dat +0 -0
  1230. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/getting-started.rst +0 -0
  1231. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/index.rst +0 -0
  1232. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/moddata.f90 +0 -0
  1233. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/moddata_session.dat +0 -0
  1234. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/python-usage.rst +0 -0
  1235. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/run_main_session.dat +0 -0
  1236. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/scalar.f +0 -0
  1237. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/scalar_session.dat +0 -0
  1238. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/setup_example.py +0 -0
  1239. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/signature-file.rst +0 -0
  1240. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/spam.pyf +0 -0
  1241. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/spam_session.dat +0 -0
  1242. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/string.f +0 -0
  1243. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/string_session.dat +0 -0
  1244. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/usage.rst +0 -0
  1245. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/var.pyf +0 -0
  1246. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/var_session.dat +0 -0
  1247. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/glossary.rst +0 -0
  1248. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/license.rst +0 -0
  1249. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal.rst +0 -0
  1250. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal3.rst +0 -0
  1251. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/deferred-ufunc-evaluation.rst +0 -0
  1252. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/generalized-ufuncs.rst +0 -0
  1253. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/groupby_additions.rst +0 -0
  1254. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/index.rst +0 -0
  1255. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/math_config_clean.rst +0 -0
  1256. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/missing-data.rst +0 -0
  1257. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/new-iterator-ufunc.rst +0 -0
  1258. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/newbugtracker.rst +0 -0
  1259. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/npy-format.rst +0 -0
  1260. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/structured_array_extensions.rst +0 -0
  1261. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/ufunc-overrides.rst +0 -0
  1262. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/warnfix.rst +0 -0
  1263. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.datetime.rst +0 -0
  1264. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.nditer.rst +0 -0
  1265. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.rst +0 -0
  1266. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/c-api.deprecations.rst +0 -0
  1267. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/c-api.rst +0 -0
  1268. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/distutils.rst +0 -0
  1269. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.dia +0 -0
  1270. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.pdf +0 -0
  1271. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.png +0 -0
  1272. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.fig +0 -0
  1273. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.pdf +0 -0
  1274. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.png +0 -0
  1275. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/internals.rst +0 -0
  1276. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.baseclass.rst +0 -0
  1277. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.generic.rst +0 -0
  1278. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.rst +0 -0
  1279. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.array-creation.rst +0 -0
  1280. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.bitwise.rst +0 -0
  1281. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.char.rst +0 -0
  1282. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.ctypeslib.rst +0 -0
  1283. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.datetime.rst +0 -0
  1284. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.dtype.rst +0 -0
  1285. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.dual.rst +0 -0
  1286. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.emath.rst +0 -0
  1287. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.err.rst +0 -0
  1288. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.fft.rst +0 -0
  1289. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.financial.rst +0 -0
  1290. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.functional.rst +0 -0
  1291. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.help.rst +0 -0
  1292. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.indexing.rst +0 -0
  1293. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.logic.rst +0 -0
  1294. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.math.rst +0 -0
  1295. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.matlib.rst +0 -0
  1296. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.numarray.rst +0 -0
  1297. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.oldnumeric.rst +0 -0
  1298. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.other.rst +0 -0
  1299. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.padding.rst +0 -0
  1300. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.chebyshev.rst +0 -0
  1301. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.classes.rst +0 -0
  1302. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite.rst +0 -0
  1303. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite_e.rst +0 -0
  1304. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.laguerre.rst +0 -0
  1305. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.legendre.rst +0 -0
  1306. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.package.rst +0 -0
  1307. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.poly1d.rst +0 -0
  1308. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.polynomial.rst +0 -0
  1309. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.rst +0 -0
  1310. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.random.rst +0 -0
  1311. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.rst +0 -0
  1312. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.set.rst +0 -0
  1313. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.testing.rst +0 -0
  1314. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.window.rst +0 -0
  1315. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/swig.rst +0 -0
  1316. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.broadcasting.rst +0 -0
  1317. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.byteswapping.rst +0 -0
  1318. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.creation.rst +0 -0
  1319. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.indexing.rst +0 -0
  1320. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.io.rst +0 -0
  1321. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.rst +0 -0
  1322. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.subclassing.rst +0 -0
  1323. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.types.rst +0 -0
  1324. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/c-info.rst +0 -0
  1325. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/howtofind.rst +0 -0
  1326. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/index.rst +0 -0
  1327. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/introduction.rst +0 -0
  1328. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/misc.rst +0 -0
  1329. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/performance.rst +0 -0
  1330. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/whatisnumpy.rst +0 -0
  1331. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/.gitignore +0 -0
  1332. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/.travis.yml +0 -0
  1333. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/LICENSE.txt +0 -0
  1334. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/MANIFEST.in +0 -0
  1335. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/README.rst +0 -0
  1336. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/__init__.py +0 -0
  1337. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/comment_eater.py +0 -0
  1338. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/compiler_unparse.py +0 -0
  1339. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape.py +0 -0
  1340. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape_sphinx.py +0 -0
  1341. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/linkcode.py +0 -0
  1342. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/numpydoc.py +0 -0
  1343. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/phantom_import.py +0 -0
  1344. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/plot_directive.py +0 -0
  1345. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_docscrape.py +0 -0
  1346. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_linkcode.py +0 -0
  1347. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_phantom_import.py +0 -0
  1348. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_plot_directive.py +0 -0
  1349. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_traitsdoc.py +0 -0
  1350. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/traitsdoc.py +0 -0
  1351. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/setup.py +0 -0
  1352. {numpy-1.9.2/numpy/core/code_generators → numpy-1.10.0.post2/numpy/_build_utils}/__init__.py +0 -0
  1353. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/compat/__init__.py +0 -0
  1354. {numpy-1.9.2/numpy/distutils/tests/f2py_ext → numpy-1.10.0.post2/numpy/core/code_generators}/__init__.py +0 -0
  1355. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/code_generators/genapi.py +0 -0
  1356. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/code_generators/generate_numpy_api.py +0 -0
  1357. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/cversions.py +0 -0
  1358. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/_neighborhood_iterator_imp.h +0 -0
  1359. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/_numpyconfig.h.in +0 -0
  1360. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayobject.h +0 -0
  1361. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayscalars.h +0 -0
  1362. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/halffloat.h +0 -0
  1363. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/noprefix.h +0 -0
  1364. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_1_7_deprecated_api.h +0 -0
  1365. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_interrupt.h +0 -0
  1366. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_no_deprecated_api.h +0 -0
  1367. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_os.h +0 -0
  1368. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/old_defines.h +0 -0
  1369. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/oldnumeric.h +0 -0
  1370. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/ufuncobject.h +0 -0
  1371. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/utils.h +0 -0
  1372. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/info.py +0 -0
  1373. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/mlib.ini.in +0 -0
  1374. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/npymath.ini.in +0 -0
  1375. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/dummymodule.c +0 -0
  1376. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/_datetime.h +0 -0
  1377. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/alloc.h +0 -0
  1378. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.c +0 -0
  1379. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.h +0 -0
  1380. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_array.c +0 -0
  1381. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_scalar.c +0 -0
  1382. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/arrayobject.h +0 -0
  1383. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/buffer.h +0 -0
  1384. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/calculation.h +0 -0
  1385. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/conversion_utils.h +0 -0
  1386. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert.h +0 -0
  1387. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert_datatype.h +0 -0
  1388. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ctors.h +0 -0
  1389. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busday.h +0 -0
  1390. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busdaycal.h +0 -0
  1391. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_strings.h +0 -0
  1392. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/descriptor.h +0 -0
  1393. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/flagsobject.c +0 -0
  1394. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/getset.h +0 -0
  1395. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/hashdescr.h +0 -0
  1396. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/item_selection.h +0 -0
  1397. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/iterators.h +0 -0
  1398. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/methods.h +0 -0
  1399. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_impl.h +0 -0
  1400. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_pywrap.h +0 -0
  1401. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_templ.c.src +0 -0
  1402. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpymemoryview.h +0 -0
  1403. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpyos.h +0 -0
  1404. {numpy-1.9.2/numpy/core/blasdot → numpy-1.10.0.post2/numpy/core/src/multiarray}/python_xerbla.c +0 -0
  1405. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.c +0 -0
  1406. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.h +0 -0
  1407. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.c +0 -0
  1408. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.h +0 -0
  1409. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/shape.h +0 -0
  1410. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ucsnarrow.h +0 -0
  1411. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.c +0 -0
  1412. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.h +0 -0
  1413. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/_signbit.c +0 -0
  1414. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/halffloat.c +0 -0
  1415. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/npy_math_common.h +0 -0
  1416. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npysort/binsearch.c.src +0 -0
  1417. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/lowlevel_strided_loops.h +0 -0
  1418. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_binsearch.h.src +0 -0
  1419. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_fpmath.h +0 -0
  1420. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_pycompat.h +0 -0
  1421. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.c +0 -0
  1422. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.h +0 -0
  1423. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/struct_ufunc_test.c.src +0 -0
  1424. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_object.h +0 -0
  1425. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_type_resolution.h +0 -0
  1426. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/data/astype_copy.pkl +0 -0
  1427. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/data/recarray_from_file.fits +0 -0
  1428. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/test_scalarprint.py +0 -0
  1429. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/ctypeslib.py +0 -0
  1430. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/__version__.py +0 -0
  1431. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/__init__.py +0 -0
  1432. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/bdist_rpm.py +0 -0
  1433. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_py.py +0 -0
  1434. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_scripts.py +0 -0
  1435. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_src.py +0 -0
  1436. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/config_compiler.py +0 -0
  1437. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/develop.py +0 -0
  1438. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/egg_info.py +0 -0
  1439. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install.py +0 -0
  1440. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_clib.py +0 -0
  1441. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_data.py +0 -0
  1442. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_headers.py +0 -0
  1443. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/sdist.py +0 -0
  1444. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/compat.py +0 -0
  1445. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/conv_template.py +0 -0
  1446. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/core.py +0 -0
  1447. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/cpuinfo.py +0 -0
  1448. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/environment.py +0 -0
  1449. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/extension.py +0 -0
  1450. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/__init__.py +0 -0
  1451. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/absoft.py +0 -0
  1452. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/g95.py +0 -0
  1453. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/hpux.py +0 -0
  1454. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/ibm.py +0 -0
  1455. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/lahey.py +0 -0
  1456. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/mips.py +0 -0
  1457. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/nag.py +0 -0
  1458. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/none.py +0 -0
  1459. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/pathf95.py +0 -0
  1460. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/vast.py +0 -0
  1461. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/from_template.py +0 -0
  1462. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/info.py +0 -0
  1463. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/line_endings.py +0 -0
  1464. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/log.py +0 -0
  1465. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/mingw/gfortran_vs2003_hack.c +0 -0
  1466. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/numpy_distribution.py +0 -0
  1467. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/pathccompiler.py +0 -0
  1468. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/setup.py +0 -0
  1469. {numpy-1.9.2/numpy/distutils/tests/f2py_f90_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext}/__init__.py +0 -0
  1470. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/setup.py +0 -0
  1471. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib1.f +0 -0
  1472. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib2.pyf +0 -0
  1473. {numpy-1.9.2/numpy/distutils/tests/gen_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext}/__init__.py +0 -0
  1474. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/include/body.f90 +0 -0
  1475. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/setup.py +0 -0
  1476. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/src/foo_free.f90 +0 -0
  1477. {numpy-1.9.2/numpy/distutils/tests/pyrex_ext → numpy-1.10.0.post2/numpy/distutils/tests/gen_ext}/__init__.py +0 -0
  1478. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/gen_ext/setup.py +0 -0
  1479. {numpy-1.9.2/numpy/distutils/tests/swig_ext → numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext}/__init__.py +0 -0
  1480. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/primes.pyx +0 -0
  1481. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/setup.py +0 -0
  1482. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/setup.py +0 -0
  1483. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/setup.py +0 -0
  1484. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.c +0 -0
  1485. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.i +0 -0
  1486. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.cc +0 -0
  1487. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.h +0 -0
  1488. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.i +0 -0
  1489. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/test_exec_command.py +0 -0
  1490. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/__init__.py +0 -0
  1491. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/basics.py +0 -0
  1492. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/broadcasting.py +0 -0
  1493. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/constants.py +0 -0
  1494. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/howtofind.py +0 -0
  1495. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/internals.py +0 -0
  1496. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/io.py +0 -0
  1497. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/jargon.py +0 -0
  1498. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/methods_vs_functions.py +0 -0
  1499. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/misc.py +0 -0
  1500. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/performance.py +0 -0
  1501. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/subclassing.py +0 -0
  1502. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/ufuncs.py +0 -0
  1503. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/dual.py +0 -0
  1504. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/__version__.py +0 -0
  1505. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/info.py +0 -0
  1506. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap +0 -0
  1507. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_free.f90 +0 -0
  1508. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_mod.f90 +0 -0
  1509. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_use.f90 +0 -0
  1510. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/precision.f90 +0 -0
  1511. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/kind/foo.f90 +0 -0
  1512. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo.f +0 -0
  1513. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_fixed.f90 +0 -0
  1514. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_free.f90 +0 -0
  1515. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/regression/inout.f90 +0 -0
  1516. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/size/foo.f90 +0 -0
  1517. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/fft/__init__.py +0 -0
  1518. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/fft/helper.py +0 -0
  1519. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/__init__.py +0 -0
  1520. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/_datasource.py +0 -0
  1521. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/_version.py +0 -0
  1522. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/scimath.py +0 -0
  1523. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/data/python3.npy +0 -0
  1524. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/data/win64python2.npy +0 -0
  1525. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test__datasource.py +0 -0
  1526. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_arrayterator.py +0 -0
  1527. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_regression.py +0 -0
  1528. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_ufunclike.py +0 -0
  1529. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_utils.py +0 -0
  1530. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/ufunclike.py +0 -0
  1531. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/user_array.py +0 -0
  1532. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/__init__.py +0 -0
  1533. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/info.py +0 -0
  1534. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/blas_lite.c +0 -0
  1535. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlamch.c +0 -0
  1536. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlapack_lite.c +0 -0
  1537. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c.h +0 -0
  1538. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c_lite.c +0 -0
  1539. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/zlapack_lite.c +0 -0
  1540. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/setup.py +0 -0
  1541. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/tests/test_deprecations.py +0 -0
  1542. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/ma/version.py +0 -0
  1543. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/matrixlib/__init__.py +0 -0
  1544. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/matrixlib/setup.py +0 -0
  1545. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/__init__.py +0 -0
  1546. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/polynomial.py +0 -0
  1547. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/setup.py +0 -0
  1548. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_chebyshev.py +0 -0
  1549. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_classes.py +0 -0
  1550. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite.py +0 -0
  1551. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite_e.py +0 -0
  1552. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_laguerre.py +0 -0
  1553. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_legendre.py +0 -0
  1554. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polynomial.py +0 -0
  1555. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polyutils.py +0 -0
  1556. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_printing.py +0 -0
  1557. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/__init__.py +0 -0
  1558. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/info.py +0 -0
  1559. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/Python.pxi +0 -0
  1560. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/distributions.h +0 -0
  1561. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/generate_mtrand_c.py +0 -0
  1562. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.c +0 -0
  1563. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.h +0 -0
  1564. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/mtrand_py_helper.h +0 -0
  1565. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/numpy.pxd +0 -0
  1566. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.c +0 -0
  1567. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.h +0 -0
  1568. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/testing/tests/test_doctesting.py +0 -0
  1569. {numpy-1.9.2 → numpy-1.10.0.post2}/setupegg.py +0 -0
  1570. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/Makefile +0 -0
  1571. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/pyfragments.swg +0 -0
  1572. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array1.cxx +0 -0
  1573. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array1.h +0 -0
  1574. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array2.cxx +0 -0
  1575. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array2.h +0 -0
  1576. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.cxx +0 -0
  1577. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.h +0 -0
  1578. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.i +0 -0
  1579. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.cxx +0 -0
  1580. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.h +0 -0
  1581. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.i +0 -0
  1582. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.cxx +0 -0
  1583. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.h +0 -0
  1584. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.i +0 -0
  1585. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.cxx +0 -0
  1586. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.h +0 -0
  1587. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.i +0 -0
  1588. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.cxx +0 -0
  1589. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.h +0 -0
  1590. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.i +0 -0
  1591. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.cxx +0 -0
  1592. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.h +0 -0
  1593. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.i +0 -0
@@ -1,4270 +0,0 @@
1
- /* -*- c -*- */
2
- #define PY_SSIZE_T_CLEAN
3
- #include "Python.h"
4
- #include "structmember.h"
5
-
6
- #define NPY_NO_DEPRECATED_API NPY_API_VERSION
7
- #ifndef _MULTIARRAYMODULE
8
- #define _MULTIARRAYMODULE
9
- #endif
10
-
11
- #include "numpy/arrayobject.h"
12
- #include "numpy/npy_math.h"
13
- #include "numpy/halffloat.h"
14
- #include "numpy/arrayscalars.h"
15
-
16
- #include "npy_pycompat.h"
17
-
18
- #include "npy_config.h"
19
- #include "mapping.h"
20
- #include "ctors.h"
21
- #include "usertypes.h"
22
- #include "numpyos.h"
23
- #include "common.h"
24
- #include "scalartypes.h"
25
- #include "_datetime.h"
26
- #include "datetime_strings.h"
27
-
28
- NPY_NO_EXPORT PyBoolScalarObject _PyArrayScalar_BoolValues[] = {
29
- {PyObject_HEAD_INIT(&PyBoolArrType_Type) 0},
30
- {PyObject_HEAD_INIT(&PyBoolArrType_Type) 1},
31
- };
32
-
33
- /* TimeInteger is deleted, but still here to fill the API slot */
34
- NPY_NO_EXPORT PyTypeObject PyTimeIntegerArrType_Type;
35
-
36
- /*
37
- * Inheritance is established later when tp_bases is set (or tp_base for
38
- * single inheritance)
39
- */
40
-
41
- /**begin repeat
42
- * #name = number, integer, signedinteger, unsignedinteger, inexact,
43
- * floating, complexfloating, flexible, character#
44
- * #NAME = Number, Integer, SignedInteger, UnsignedInteger, Inexact,
45
- * Floating, ComplexFloating, Flexible, Character#
46
- */
47
- NPY_NO_EXPORT PyTypeObject Py@NAME@ArrType_Type = {
48
- #if defined(NPY_PY3K)
49
- PyVarObject_HEAD_INIT(NULL, 0)
50
- #else
51
- PyObject_HEAD_INIT(NULL)
52
- 0, /* ob_size */
53
- #endif
54
- "numpy.@name@", /* tp_name*/
55
- sizeof(PyObject), /* tp_basicsize*/
56
- 0, /* tp_itemsize */
57
- /* methods */
58
- 0, /* tp_dealloc */
59
- 0, /* tp_print */
60
- 0, /* tp_getattr */
61
- 0, /* tp_setattr */
62
- #if defined(NPY_PY3K)
63
- 0, /* tp_reserved */
64
- #else
65
- 0, /* tp_compare */
66
- #endif
67
- 0, /* tp_repr */
68
- 0, /* tp_as_number */
69
- 0, /* tp_as_sequence */
70
- 0, /* tp_as_mapping */
71
- 0, /* tp_hash */
72
- 0, /* tp_call */
73
- 0, /* tp_str */
74
- 0, /* tp_getattro */
75
- 0, /* tp_setattro */
76
- 0, /* tp_as_buffer */
77
- 0, /* tp_flags */
78
- 0, /* tp_doc */
79
- 0, /* tp_traverse */
80
- 0, /* tp_clear */
81
- 0, /* tp_richcompare */
82
- 0, /* tp_weaklistoffset */
83
- 0, /* tp_iter */
84
- 0, /* tp_iternext */
85
- 0, /* tp_methods */
86
- 0, /* tp_members */
87
- 0, /* tp_getset */
88
- 0, /* tp_base */
89
- 0, /* tp_dict */
90
- 0, /* tp_descr_get */
91
- 0, /* tp_descr_set */
92
- 0, /* tp_dictoffset */
93
- 0, /* tp_init */
94
- 0, /* tp_alloc */
95
- 0, /* tp_new */
96
- 0, /* tp_free */
97
- 0, /* tp_is_gc */
98
- 0, /* tp_bases */
99
- 0, /* tp_mro */
100
- 0, /* tp_cache */
101
- 0, /* tp_subclasses */
102
- 0, /* tp_weaklist */
103
- 0, /* tp_del */
104
- 0, /* tp_version_tag */
105
- };
106
- /**end repeat**/
107
-
108
- static PyObject *
109
- gentype_alloc(PyTypeObject *type, Py_ssize_t nitems)
110
- {
111
- PyObject *obj;
112
- const size_t size = _PyObject_VAR_SIZE(type, nitems + 1);
113
-
114
- obj = (PyObject *)PyObject_Malloc(size);
115
- memset(obj, 0, size);
116
- if (type->tp_itemsize == 0) {
117
- PyObject_INIT(obj, type);
118
- }
119
- else {
120
- (void) PyObject_INIT_VAR((PyVarObject *)obj, type, nitems);
121
- }
122
- return obj;
123
- }
124
-
125
- static void
126
- gentype_dealloc(PyObject *v)
127
- {
128
- Py_TYPE(v)->tp_free(v);
129
- }
130
-
131
- static void
132
- gentype_free(PyObject *v)
133
- {
134
- /*
135
- * have an explicit tp_free to enforce inheritance from it.
136
- * PyObject_Free is also the tp_free of PyBaseObject so python does not
137
- * COPYSLOT it, instead it takes the next parent PyInt which has a
138
- * different allocator
139
- */
140
- PyObject_Free(v);
141
- }
142
-
143
-
144
- static PyObject *
145
- gentype_power(PyObject *m1, PyObject *m2, PyObject *NPY_UNUSED(m3))
146
- {
147
- PyObject *arr, *ret, *arg2;
148
- char *msg="unsupported operand type(s) for ** or pow()";
149
-
150
- if (!PyArray_IsScalar(m1, Generic)) {
151
- if (PyArray_Check(m1)) {
152
- ret = Py_TYPE(m1)->tp_as_number->nb_power(m1,m2, Py_None);
153
- }
154
- else {
155
- if (!PyArray_IsScalar(m2, Generic)) {
156
- PyErr_SetString(PyExc_TypeError, msg);
157
- return NULL;
158
- }
159
- arr = PyArray_FromScalar(m2, NULL);
160
- if (arr == NULL) {
161
- return NULL;
162
- }
163
- ret = Py_TYPE(arr)->tp_as_number->nb_power(m1, arr, Py_None);
164
- Py_DECREF(arr);
165
- }
166
- return ret;
167
- }
168
- if (!PyArray_IsScalar(m2, Generic)) {
169
- if (PyArray_Check(m2)) {
170
- ret = Py_TYPE(m2)->tp_as_number->nb_power(m1,m2, Py_None);
171
- }
172
- else {
173
- if (!PyArray_IsScalar(m1, Generic)) {
174
- PyErr_SetString(PyExc_TypeError, msg);
175
- return NULL;
176
- }
177
- arr = PyArray_FromScalar(m1, NULL);
178
- if (arr == NULL) {
179
- return NULL;
180
- }
181
- ret = Py_TYPE(arr)->tp_as_number->nb_power(arr, m2, Py_None);
182
- Py_DECREF(arr);
183
- }
184
- return ret;
185
- }
186
- arr = arg2 = NULL;
187
- arr = PyArray_FromScalar(m1, NULL);
188
- arg2 = PyArray_FromScalar(m2, NULL);
189
- if (arr == NULL || arg2 == NULL) {
190
- Py_XDECREF(arr);
191
- Py_XDECREF(arg2);
192
- return NULL;
193
- }
194
- ret = Py_TYPE(arr)->tp_as_number->nb_power(arr, arg2, Py_None);
195
- Py_DECREF(arr);
196
- Py_DECREF(arg2);
197
- return ret;
198
- }
199
-
200
- static PyObject *
201
- gentype_generic_method(PyObject *self, PyObject *args, PyObject *kwds,
202
- char *str)
203
- {
204
- PyObject *arr, *meth, *ret;
205
-
206
- arr = PyArray_FromScalar(self, NULL);
207
- if (arr == NULL) {
208
- return NULL;
209
- }
210
- meth = PyObject_GetAttrString(arr, str);
211
- if (meth == NULL) {
212
- Py_DECREF(arr);
213
- return NULL;
214
- }
215
- if (kwds == NULL) {
216
- ret = PyObject_CallObject(meth, args);
217
- }
218
- else {
219
- ret = PyObject_Call(meth, args, kwds);
220
- }
221
- Py_DECREF(meth);
222
- Py_DECREF(arr);
223
- if (ret && PyArray_Check(ret)) {
224
- return PyArray_Return((PyArrayObject *)ret);
225
- }
226
- else {
227
- return ret;
228
- }
229
- }
230
-
231
- /**begin repeat
232
- *
233
- * #name = add, subtract, remainder, divmod, lshift, rshift,
234
- * and, xor, or, floor_divide, true_divide#
235
- */
236
- static PyObject *
237
- gentype_@name@(PyObject *m1, PyObject *m2)
238
- {
239
- return PyArray_Type.tp_as_number->nb_@name@(m1, m2);
240
- }
241
-
242
- /**end repeat**/
243
-
244
- #if !defined(NPY_PY3K)
245
- /**begin repeat
246
- *
247
- * #name = divide#
248
- */
249
- static PyObject *
250
- gentype_@name@(PyObject *m1, PyObject *m2)
251
- {
252
- return PyArray_Type.tp_as_number->nb_@name@(m1, m2);
253
- }
254
- /**end repeat**/
255
- #endif
256
-
257
- static PyObject *
258
- gentype_multiply(PyObject *m1, PyObject *m2)
259
- {
260
- PyObject *ret = NULL;
261
- npy_intp repeat;
262
-
263
- if (!PyArray_IsScalar(m1, Generic) &&
264
- ((Py_TYPE(m1)->tp_as_number == NULL) ||
265
- (Py_TYPE(m1)->tp_as_number->nb_multiply == NULL))) {
266
- /* Try to convert m2 to an int and try sequence repeat */
267
- repeat = PyArray_PyIntAsIntp(m2);
268
- if (repeat == -1 && PyErr_Occurred()) {
269
- return NULL;
270
- }
271
- /* Note that npy_intp is compatible to Py_Ssize_t */
272
- ret = PySequence_Repeat(m1, repeat);
273
- }
274
- else if (!PyArray_IsScalar(m2, Generic) &&
275
- ((Py_TYPE(m2)->tp_as_number == NULL) ||
276
- (Py_TYPE(m2)->tp_as_number->nb_multiply == NULL))) {
277
- /* Try to convert m1 to an int and try sequence repeat */
278
- repeat = PyArray_PyIntAsIntp(m1);
279
- if (repeat == -1 && PyErr_Occurred()) {
280
- return NULL;
281
- }
282
- ret = PySequence_Repeat(m2, repeat);
283
- }
284
- if (ret == NULL) {
285
- PyErr_Clear(); /* no effect if not set */
286
- ret = PyArray_Type.tp_as_number->nb_multiply(m1, m2);
287
- }
288
- return ret;
289
- }
290
-
291
- /**begin repeat
292
- *
293
- * #name = positive, negative, absolute, invert, int, float#
294
- */
295
- static PyObject *
296
- gentype_@name@(PyObject *m1)
297
- {
298
- PyObject *arr, *ret;
299
-
300
- arr = PyArray_FromScalar(m1, NULL);
301
- if (arr == NULL) {
302
- return NULL;
303
- }
304
- ret = Py_TYPE(arr)->tp_as_number->nb_@name@(arr);
305
- Py_DECREF(arr);
306
- return ret;
307
- }
308
- /**end repeat**/
309
-
310
- #if !defined(NPY_PY3K)
311
- /**begin repeat
312
- *
313
- * #name = long, oct, hex#
314
- */
315
- static PyObject *
316
- gentype_@name@(PyObject *m1)
317
- {
318
- PyObject *arr, *ret;
319
-
320
- arr = PyArray_FromScalar(m1, NULL);
321
- if (arr == NULL) {
322
- return NULL;
323
- }
324
- ret = Py_TYPE(arr)->tp_as_number->nb_@name@(arr);
325
- Py_DECREF(arr);
326
- return ret;
327
- }
328
- /**end repeat**/
329
- #endif
330
-
331
- static int
332
- gentype_nonzero_number(PyObject *m1)
333
- {
334
- PyObject *arr;
335
- int ret;
336
-
337
- arr = PyArray_FromScalar(m1, NULL);
338
- if (arr == NULL) {
339
- return -1;
340
- }
341
- #if defined(NPY_PY3K)
342
- ret = Py_TYPE(arr)->tp_as_number->nb_bool(arr);
343
- #else
344
- ret = Py_TYPE(arr)->tp_as_number->nb_nonzero(arr);
345
- #endif
346
- Py_DECREF(arr);
347
- return ret;
348
- }
349
-
350
- static PyObject *
351
- gentype_str(PyObject *self)
352
- {
353
- PyObject *arr, *ret = NULL;
354
-
355
- arr = PyArray_FromScalar(self, NULL);
356
- if (arr != NULL) {
357
- ret = PyObject_Str((PyObject *)arr);
358
- Py_DECREF(arr);
359
- }
360
- return ret;
361
- }
362
-
363
-
364
- static PyObject *
365
- gentype_repr(PyObject *self)
366
- {
367
- PyObject *arr, *ret = NULL;
368
-
369
- arr = PyArray_FromScalar(self, NULL);
370
- if (arr != NULL) {
371
- /* XXX: Why are we using str here? */
372
- ret = PyObject_Str((PyObject *)arr);
373
- Py_DECREF(arr);
374
- }
375
- return ret;
376
- }
377
-
378
- /*
379
- * The __format__ method for PEP 3101.
380
- */
381
- static PyObject *
382
- gentype_format(PyObject *self, PyObject *args)
383
- {
384
- PyObject *format_spec;
385
- PyObject *obj, *ret;
386
-
387
- #if defined(NPY_PY3K)
388
- if (!PyArg_ParseTuple(args, "U:__format__", &format_spec)) {
389
- return NULL;
390
- }
391
- #else
392
- if (!PyArg_ParseTuple(args, "O:__format__", &format_spec)) {
393
- return NULL;
394
- }
395
-
396
- if (!PyUnicode_Check(format_spec) && !PyString_Check(format_spec)) {
397
- PyErr_SetString(PyExc_TypeError,
398
- "format must be a string");
399
- return NULL;
400
- }
401
- #endif
402
-
403
- /*
404
- * Convert to an appropriate Python type and call its format.
405
- * TODO: For some types, like long double, this isn't right,
406
- * because it throws away precision.
407
- */
408
- if (Py_TYPE(self) == &PyBoolArrType_Type) {
409
- obj = PyBool_FromLong(((PyBoolScalarObject *)self)->obval);
410
- }
411
- else if (PyArray_IsScalar(self, Integer)) {
412
- #if defined(NPY_PY3K)
413
- obj = Py_TYPE(self)->tp_as_number->nb_int(self);
414
- #else
415
- obj = Py_TYPE(self)->tp_as_number->nb_long(self);
416
- #endif
417
- }
418
- else if (PyArray_IsScalar(self, Floating)) {
419
- obj = Py_TYPE(self)->tp_as_number->nb_float(self);
420
- }
421
- else if (PyArray_IsScalar(self, ComplexFloating)) {
422
- double val[2];
423
- PyArray_Descr *dtype = PyArray_DescrFromScalar(self);
424
-
425
- if (dtype == NULL) {
426
- return NULL;
427
- }
428
- if (PyArray_CastScalarDirect(self, dtype, &val[0], NPY_CDOUBLE) < 0) {
429
- Py_DECREF(dtype);
430
- return NULL;
431
- }
432
- obj = PyComplex_FromDoubles(val[0], val[1]);
433
- Py_DECREF(dtype);
434
- }
435
- else {
436
- obj = PyObject_Str(self);
437
- }
438
-
439
- if (obj == NULL) {
440
- return NULL;
441
- }
442
-
443
- ret = PyObject_Format(obj, format_spec);
444
- Py_DECREF(obj);
445
- return ret;
446
- }
447
-
448
- #ifdef FORCE_NO_LONG_DOUBLE_FORMATTING
449
- #undef NPY_LONGDOUBLE_FMT
450
- #define NPY_LONGDOUBLE_FMT NPY_DOUBLE_FMT
451
- #endif
452
-
453
- /**begin repeat
454
- * #name = float, double, longdouble#
455
- * #NAME = FLOAT, DOUBLE, LONGDOUBLE#
456
- * #type = npy_float, npy_double, npy_longdouble#
457
- * #suff = f, d, l#
458
- */
459
-
460
- #define _FMT1 "%%.%i" NPY_@NAME@_FMT
461
- #define _FMT2 "%%+.%i" NPY_@NAME@_FMT
462
-
463
- NPY_NO_EXPORT void
464
- format_@name@(char *buf, size_t buflen, @type@ val, unsigned int prec)
465
- {
466
- /* XXX: Find a correct size here for format string */
467
- char format[64], *res;
468
- size_t i, cnt;
469
-
470
- PyOS_snprintf(format, sizeof(format), _FMT1, prec);
471
- res = NumPyOS_ascii_format@suff@(buf, buflen, format, val, 0);
472
- if (res == NULL) {
473
- fprintf(stderr, "Error while formatting\n");
474
- return;
475
- }
476
-
477
- /* If nothing but digits after sign, append ".0" */
478
- cnt = strlen(buf);
479
- for (i = (buf[0] == '-') ? 1 : 0; i < cnt; ++i) {
480
- if (!isdigit(Py_CHARMASK(buf[i]))) {
481
- break;
482
- }
483
- }
484
- if (i == cnt && buflen >= cnt + 3) {
485
- strcpy(&buf[cnt],".0");
486
- }
487
- }
488
-
489
- #undef _FMT1
490
- #undef _FMT2
491
-
492
- /**end repeat**/
493
-
494
- /**begin repeat
495
- * #name = cfloat, cdouble, clongdouble#
496
- * #NAME = FLOAT, DOUBLE, LONGDOUBLE#
497
- * #type = npy_cfloat, npy_cdouble, npy_clongdouble#
498
- * #suff = f, d, l#
499
- */
500
-
501
- #define _FMT1 "%%.%i" NPY_@NAME@_FMT
502
- #define _FMT2 "%%+.%i" NPY_@NAME@_FMT
503
-
504
- static void
505
- format_@name@(char *buf, size_t buflen, @type@ val, unsigned int prec)
506
- {
507
- /* XXX: Find a correct size here for format string */
508
- char format[64];
509
- char *res;
510
-
511
- /*
512
- * Ideally, we should handle this nan/inf stuff in NumpyOS_ascii_format*
513
- */
514
- #if PY_VERSION_HEX >= 0x02070000
515
- if (val.real == 0.0 && npy_signbit(val.real) == 0) {
516
- #else
517
- if (val.real == 0.0) {
518
- #endif
519
- PyOS_snprintf(format, sizeof(format), _FMT1, prec);
520
- res = NumPyOS_ascii_format@suff@(buf, buflen - 1, format, val.imag, 0);
521
- if (res == NULL) {
522
- /* FIXME
523
- * We need a better way to handle the error message
524
- */
525
- fprintf(stderr, "Error while formatting\n");
526
- return;
527
- }
528
- if (!npy_isfinite(val.imag)) {
529
- strncat(buf, "*", 1);
530
- }
531
- strncat(buf, "j", 1);
532
- }
533
- else {
534
- char re[64], im[64];
535
- if (npy_isfinite(val.real)) {
536
- PyOS_snprintf(format, sizeof(format), _FMT1, prec);
537
- res = NumPyOS_ascii_format@suff@(re, sizeof(re), format,
538
- val.real, 0);
539
- if (res == NULL) {
540
- /* FIXME
541
- * We need a better way to handle the error message
542
- */
543
- fprintf(stderr, "Error while formatting\n");
544
- return;
545
- }
546
- }
547
- else {
548
- if (npy_isnan(val.real)) {
549
- strcpy(re, "nan");
550
- }
551
- else if (val.real > 0){
552
- strcpy(re, "inf");
553
- }
554
- else {
555
- strcpy(re, "-inf");
556
- }
557
- }
558
-
559
-
560
- if (npy_isfinite(val.imag)) {
561
- PyOS_snprintf(format, sizeof(format), _FMT2, prec);
562
- res = NumPyOS_ascii_format@suff@(im, sizeof(im), format,
563
- val.imag, 0);
564
- if (res == NULL) {
565
- fprintf(stderr, "Error while formatting\n");
566
- return;
567
- }
568
- }
569
- else {
570
- if (npy_isnan(val.imag)) {
571
- strcpy(im, "+nan");
572
- }
573
- else if (val.imag > 0){
574
- strcpy(im, "+inf");
575
- }
576
- else {
577
- strcpy(im, "-inf");
578
- }
579
- if (!npy_isfinite(val.imag)) {
580
- strncat(im, "*", 1);
581
- }
582
- }
583
- PyOS_snprintf(buf, buflen, "(%s%sj)", re, im);
584
- }
585
- }
586
-
587
- #undef _FMT1
588
- #undef _FMT2
589
-
590
- /**end repeat**/
591
-
592
- NPY_NO_EXPORT void
593
- format_half(char *buf, size_t buflen, npy_half val, unsigned int prec)
594
- {
595
- format_float(buf, buflen, npy_half_to_float(val), prec);
596
- }
597
-
598
- /*
599
- * over-ride repr and str of array-scalar strings and unicode to
600
- * remove NULL bytes and then call the corresponding functions
601
- * of string and unicode.
602
- */
603
-
604
- /**begin repeat
605
- * #name = string*2,unicode*2#
606
- * #form = (repr,str)*2#
607
- * #Name = String*2,Unicode*2#
608
- * #NAME = STRING*2,UNICODE*2#
609
- * #extra = AndSize*2,,#
610
- * #type = npy_char*2, Py_UNICODE*2#
611
- */
612
- static PyObject *
613
- @name@type_@form@(PyObject *self)
614
- {
615
- const @type@ *dptr, *ip;
616
- int len;
617
- PyObject *new;
618
- PyObject *ret;
619
-
620
- ip = dptr = Py@Name@_AS_@NAME@(self);
621
- len = Py@Name@_GET_SIZE(self);
622
- dptr += len-1;
623
- while(len > 0 && *dptr-- == 0) {
624
- len--;
625
- }
626
- new = Py@Name@_From@Name@@extra@(ip, len);
627
- if (new == NULL) {
628
- return PyUString_FromString("");
629
- }
630
- ret = Py@Name@_Type.tp_@form@(new);
631
- Py_DECREF(new);
632
- return ret;
633
- }
634
- /**end repeat**/
635
-
636
- static PyObject *
637
- datetimetype_repr(PyObject *self)
638
- {
639
- PyDatetimeScalarObject *scal;
640
- npy_datetimestruct dts;
641
- PyObject *ret;
642
- char iso[NPY_DATETIME_MAX_ISO8601_STRLEN];
643
- int local;
644
- NPY_DATETIMEUNIT unit;
645
-
646
- if (!PyArray_IsScalar(self, Datetime)) {
647
- PyErr_SetString(PyExc_RuntimeError,
648
- "Called NumPy datetime repr on a non-datetime type");
649
- return NULL;
650
- }
651
-
652
- scal = (PyDatetimeScalarObject *)self;
653
-
654
- if (convert_datetime_to_datetimestruct(&scal->obmeta,
655
- scal->obval, &dts) < 0) {
656
- return NULL;
657
- }
658
-
659
- local = (scal->obmeta.base > NPY_FR_D);
660
- /*
661
- * Because we're defaulting to local time, display hours with
662
- * minutes precision, so that 30-minute timezone offsets can work.
663
- */
664
- unit = scal->obmeta.base;
665
- if (unit == NPY_FR_h) {
666
- unit = NPY_FR_m;
667
- }
668
- if (make_iso_8601_datetime(&dts, iso, sizeof(iso), local,
669
- unit, -1, NPY_SAFE_CASTING) < 0) {
670
- return NULL;
671
- }
672
-
673
- /*
674
- * For straight units or generic units, the unit will be deduced
675
- * from the string, so it's not necessary to specify it.
676
- */
677
- if ((scal->obmeta.num == 1 && scal->obmeta.base != NPY_FR_h) ||
678
- scal->obmeta.base == NPY_FR_GENERIC) {
679
- ret = PyUString_FromString("numpy.datetime64('");
680
- PyUString_ConcatAndDel(&ret,
681
- PyUString_FromString(iso));
682
- PyUString_ConcatAndDel(&ret,
683
- PyUString_FromString("')"));
684
- }
685
- else {
686
- ret = PyUString_FromString("numpy.datetime64('");
687
- PyUString_ConcatAndDel(&ret,
688
- PyUString_FromString(iso));
689
- PyUString_ConcatAndDel(&ret,
690
- PyUString_FromString("','"));
691
- ret = append_metastr_to_string(&scal->obmeta, 1, ret);
692
- PyUString_ConcatAndDel(&ret,
693
- PyUString_FromString("')"));
694
- }
695
-
696
- return ret;
697
- }
698
-
699
- static PyObject *
700
- timedeltatype_repr(PyObject *self)
701
- {
702
- PyTimedeltaScalarObject *scal;
703
- PyObject *ret;
704
-
705
- if (!PyArray_IsScalar(self, Timedelta)) {
706
- PyErr_SetString(PyExc_RuntimeError,
707
- "Called NumPy timedelta repr on a non-datetime type");
708
- return NULL;
709
- }
710
-
711
- scal = (PyTimedeltaScalarObject *)self;
712
-
713
- /* The value */
714
- if (scal->obval == NPY_DATETIME_NAT) {
715
- ret = PyUString_FromString("numpy.timedelta64('NaT'");
716
- }
717
- else {
718
- /*
719
- * Can't use "%lld" in Python < 2.7, Python3 < 3.2,
720
- * or if HAVE_LONG_LONG is not defined
721
- */
722
- #if defined(HAVE_LONG_LONG) && \
723
- ((PY_VERSION_HEX >= 0x02070000 && PY_VERSION_HEX < 0x03000000) || \
724
- (PY_VERSION_HEX >= 0x03020000))
725
- ret = PyUString_FromFormat("numpy.timedelta64(%lld",
726
- (long long)scal->obval);
727
- #else
728
- ret = PyUString_FromFormat("numpy.timedelta64(%ld",
729
- (long)scal->obval);
730
- #endif
731
- }
732
- /* The metadata unit */
733
- if (scal->obmeta.base == NPY_FR_GENERIC) {
734
- PyUString_ConcatAndDel(&ret,
735
- PyUString_FromString(")"));
736
- }
737
- else {
738
- PyUString_ConcatAndDel(&ret,
739
- PyUString_FromString(",'"));
740
- ret = append_metastr_to_string(&scal->obmeta, 1, ret);
741
- PyUString_ConcatAndDel(&ret,
742
- PyUString_FromString("')"));
743
- }
744
-
745
- return ret;
746
- }
747
-
748
- static PyObject *
749
- datetimetype_str(PyObject *self)
750
- {
751
- PyDatetimeScalarObject *scal;
752
- npy_datetimestruct dts;
753
- char iso[NPY_DATETIME_MAX_ISO8601_STRLEN];
754
- int local;
755
- NPY_DATETIMEUNIT unit;
756
-
757
- if (!PyArray_IsScalar(self, Datetime)) {
758
- PyErr_SetString(PyExc_RuntimeError,
759
- "Called NumPy datetime str on a non-datetime type");
760
- return NULL;
761
- }
762
-
763
- scal = (PyDatetimeScalarObject *)self;
764
-
765
- if (convert_datetime_to_datetimestruct(&scal->obmeta, scal->obval,
766
- &dts) < 0) {
767
- return NULL;
768
- }
769
-
770
- local = (scal->obmeta.base > NPY_FR_D);
771
- /*
772
- * Because we're defaulting to local time, display hours with
773
- * minutes precision, so that 30-minute timezone offsets can work.
774
- */
775
- unit = scal->obmeta.base;
776
- if (unit == NPY_FR_h) {
777
- unit = NPY_FR_m;
778
- }
779
- if (make_iso_8601_datetime(&dts, iso, sizeof(iso), local,
780
- unit, -1, NPY_SAFE_CASTING) < 0) {
781
- return NULL;
782
- }
783
-
784
- return PyUString_FromString(iso);
785
- }
786
-
787
- static char *_datetime_verbose_strings[NPY_DATETIME_NUMUNITS] = {
788
- "years",
789
- "months",
790
- "weeks",
791
- "<invalid>",
792
- "days",
793
- "hours",
794
- "minutes",
795
- "seconds",
796
- "milliseconds",
797
- "microseconds",
798
- "nanoseconds",
799
- "picoseconds",
800
- "femtoseconds",
801
- "attoseconds",
802
- "generic time units"
803
- };
804
-
805
- static PyObject *
806
- timedeltatype_str(PyObject *self)
807
- {
808
- PyTimedeltaScalarObject *scal;
809
- PyObject *ret;
810
- char *basestr = "invalid";
811
-
812
- if (!PyArray_IsScalar(self, Timedelta)) {
813
- PyErr_SetString(PyExc_RuntimeError,
814
- "Called NumPy timedelta str on a non-datetime type");
815
- return NULL;
816
- }
817
-
818
- scal = (PyTimedeltaScalarObject *)self;
819
-
820
- if (scal->obmeta.base >= 0 && scal->obmeta.base < NPY_DATETIME_NUMUNITS) {
821
- basestr = _datetime_verbose_strings[scal->obmeta.base];
822
- }
823
- else {
824
- PyErr_SetString(PyExc_RuntimeError,
825
- "NumPy datetime metadata is corrupted");
826
- return NULL;
827
- }
828
-
829
- if (scal->obval == NPY_DATETIME_NAT) {
830
- ret = PyUString_FromString("NaT");
831
- }
832
- else {
833
- /*
834
- * Can't use "%lld" in Python < 2.7, Python3 < 3.2,
835
- * or if HAVE_LONG_LONG is not defined
836
- */
837
- #if defined(HAVE_LONG_LONG) && \
838
- ((PY_VERSION_HEX >= 0x02070000 && PY_VERSION_HEX < 0x03000000) || \
839
- (PY_VERSION_HEX >= 0x03020000))
840
- ret = PyUString_FromFormat("%lld ",
841
- (long long)(scal->obval * scal->obmeta.num));
842
- #else
843
- ret = PyUString_FromFormat("%ld ",
844
- (long)(scal->obval * scal->obmeta.num));
845
- #endif
846
- PyUString_ConcatAndDel(&ret,
847
- PyUString_FromString(basestr));
848
- }
849
-
850
- return ret;
851
- }
852
-
853
- /* The REPR values are finfo.precision + 2 */
854
- #define HALFPREC_REPR 5
855
- #define HALFPREC_STR 5
856
- #define FLOATPREC_REPR 8
857
- #define FLOATPREC_STR 6
858
- #define DOUBLEPREC_REPR 17
859
- #define DOUBLEPREC_STR 12
860
- #if NPY_SIZEOF_LONGDOUBLE == NPY_SIZEOF_DOUBLE
861
- #define LONGDOUBLEPREC_REPR DOUBLEPREC_REPR
862
- #define LONGDOUBLEPREC_STR DOUBLEPREC_STR
863
- #else /* More than probably needed on Intel FP */
864
- #define LONGDOUBLEPREC_REPR 20
865
- #define LONGDOUBLEPREC_STR 12
866
- #endif
867
-
868
- /*
869
- * float type str and repr
870
- *
871
- * These functions will return NULL if PyString creation fails.
872
- */
873
-
874
- /**begin repeat
875
- * #name = half, float, double, longdouble#
876
- * #Name = Half, Float, Double, LongDouble#
877
- * #NAME = HALF, FLOAT, DOUBLE, LONGDOUBLE#
878
- * #hascomplex = 0, 1, 1, 1#
879
- */
880
- /**begin repeat1
881
- * #kind = str, repr#
882
- * #KIND = STR, REPR#
883
- */
884
-
885
- #define PREC @NAME@PREC_@KIND@
886
-
887
- static PyObject *
888
- @name@type_@kind@(PyObject *self)
889
- {
890
- char buf[100];
891
- npy_@name@ val = ((Py@Name@ScalarObject *)self)->obval;
892
-
893
- format_@name@(buf, sizeof(buf), val, PREC);
894
- return PyUString_FromString(buf);
895
- }
896
-
897
- #if @hascomplex@
898
- static PyObject *
899
- c@name@type_@kind@(PyObject *self)
900
- {
901
- char buf[202];
902
- npy_c@name@ val = ((PyC@Name@ScalarObject *)self)->obval;
903
-
904
- format_c@name@(buf, sizeof(buf), val, PREC);
905
- return PyUString_FromString(buf);
906
- }
907
- #endif
908
-
909
- #undef PREC
910
-
911
- /**end repeat1**/
912
- /**end repeat**/
913
-
914
- /*
915
- * float type print (control print a, where a is a float type instance)
916
- */
917
- /**begin repeat
918
- * #name = half, float, double, longdouble#
919
- * #Name = Half, Float, Double, LongDouble#
920
- * #NAME = HALF, FLOAT, DOUBLE, LONGDOUBLE#
921
- * #hascomplex = 0, 1, 1, 1#
922
- */
923
-
924
- static int
925
- @name@type_print(PyObject *v, FILE *fp, int flags)
926
- {
927
- char buf[100];
928
- npy_@name@ val = ((Py@Name@ScalarObject *)v)->obval;
929
-
930
- format_@name@(buf, sizeof(buf), val,
931
- (flags & Py_PRINT_RAW) ? @NAME@PREC_STR : @NAME@PREC_REPR);
932
- Py_BEGIN_ALLOW_THREADS
933
- fputs(buf, fp);
934
- Py_END_ALLOW_THREADS
935
- return 0;
936
- }
937
-
938
- #if @hascomplex@
939
- static int
940
- c@name@type_print(PyObject *v, FILE *fp, int flags)
941
- {
942
- /* Size of buf: twice sizeof(real) + 2 (for the parenthesis) */
943
- char buf[202];
944
- npy_c@name@ val = ((PyC@Name@ScalarObject *)v)->obval;
945
-
946
- format_c@name@(buf, sizeof(buf), val,
947
- (flags & Py_PRINT_RAW) ? @NAME@PREC_STR : @NAME@PREC_REPR);
948
- Py_BEGIN_ALLOW_THREADS
949
- fputs(buf, fp);
950
- Py_END_ALLOW_THREADS
951
- return 0;
952
- }
953
- #endif
954
-
955
- /**end repeat**/
956
-
957
-
958
- /*
959
- * Could improve this with a PyLong_FromLongDouble(longdouble ldval)
960
- * but this would need some more work...
961
- */
962
-
963
- /**begin repeat
964
- *
965
- * #name = (int, float)*2#
966
- * #KIND = (Long, Float)*2#
967
- * #char = ,,c*2#
968
- * #CHAR = ,,C*2#
969
- * #POST = ,,.real*2#
970
- */
971
- static PyObject *
972
- @char@longdoubletype_@name@(PyObject *self)
973
- {
974
- double dval;
975
- PyObject *obj, *ret;
976
-
977
- dval = (double)(((Py@CHAR@LongDoubleScalarObject *)self)->obval)@POST@;
978
- obj = Py@KIND@_FromDouble(dval);
979
- if (obj == NULL) {
980
- return NULL;
981
- }
982
- ret = Py_TYPE(obj)->tp_as_number->nb_@name@(obj);
983
- Py_DECREF(obj);
984
- return ret;
985
- }
986
- /**end repeat**/
987
-
988
- #if !defined(NPY_PY3K)
989
-
990
- /**begin repeat
991
- *
992
- * #name = (long, hex, oct)*2#
993
- * #KIND = (Long*3)*2#
994
- * #char = ,,,c*3#
995
- * #CHAR = ,,,C*3#
996
- * #POST = ,,,.real*3#
997
- */
998
- static PyObject *
999
- @char@longdoubletype_@name@(PyObject *self)
1000
- {
1001
- double dval;
1002
- PyObject *obj, *ret;
1003
-
1004
- dval = (double)(((Py@CHAR@LongDoubleScalarObject *)self)->obval)@POST@;
1005
- obj = Py@KIND@_FromDouble(dval);
1006
- if (obj == NULL) {
1007
- return NULL;
1008
- }
1009
- ret = Py_TYPE(obj)->tp_as_number->nb_@name@(obj);
1010
- Py_DECREF(obj);
1011
- return ret;
1012
- }
1013
- /**end repeat**/
1014
-
1015
- #endif /* !defined(NPY_PY3K) */
1016
-
1017
- static PyNumberMethods gentype_as_number = {
1018
- (binaryfunc)gentype_add, /*nb_add*/
1019
- (binaryfunc)gentype_subtract, /*nb_subtract*/
1020
- (binaryfunc)gentype_multiply, /*nb_multiply*/
1021
- #if defined(NPY_PY3K)
1022
- #else
1023
- (binaryfunc)gentype_divide, /*nb_divide*/
1024
- #endif
1025
- (binaryfunc)gentype_remainder, /*nb_remainder*/
1026
- (binaryfunc)gentype_divmod, /*nb_divmod*/
1027
- (ternaryfunc)gentype_power, /*nb_power*/
1028
- (unaryfunc)gentype_negative,
1029
- (unaryfunc)gentype_positive, /*nb_pos*/
1030
- (unaryfunc)gentype_absolute, /*(unaryfunc)gentype_abs,*/
1031
- (inquiry)gentype_nonzero_number, /*nb_nonzero*/
1032
- (unaryfunc)gentype_invert, /*nb_invert*/
1033
- (binaryfunc)gentype_lshift, /*nb_lshift*/
1034
- (binaryfunc)gentype_rshift, /*nb_rshift*/
1035
- (binaryfunc)gentype_and, /*nb_and*/
1036
- (binaryfunc)gentype_xor, /*nb_xor*/
1037
- (binaryfunc)gentype_or, /*nb_or*/
1038
- #if defined(NPY_PY3K)
1039
- #else
1040
- 0, /*nb_coerce*/
1041
- #endif
1042
- (unaryfunc)gentype_int, /*nb_int*/
1043
- #if defined(NPY_PY3K)
1044
- 0, /*nb_reserved*/
1045
- #else
1046
- (unaryfunc)gentype_long, /*nb_long*/
1047
- #endif
1048
- (unaryfunc)gentype_float, /*nb_float*/
1049
- #if defined(NPY_PY3K)
1050
- #else
1051
- (unaryfunc)gentype_oct, /*nb_oct*/
1052
- (unaryfunc)gentype_hex, /*nb_hex*/
1053
- #endif
1054
- 0, /*inplace_add*/
1055
- 0, /*inplace_subtract*/
1056
- 0, /*inplace_multiply*/
1057
- #if defined(NPY_PY3K)
1058
- #else
1059
- 0, /*inplace_divide*/
1060
- #endif
1061
- 0, /*inplace_remainder*/
1062
- 0, /*inplace_power*/
1063
- 0, /*inplace_lshift*/
1064
- 0, /*inplace_rshift*/
1065
- 0, /*inplace_and*/
1066
- 0, /*inplace_xor*/
1067
- 0, /*inplace_or*/
1068
- (binaryfunc)gentype_floor_divide, /*nb_floor_divide*/
1069
- (binaryfunc)gentype_true_divide, /*nb_true_divide*/
1070
- 0, /*nb_inplace_floor_divide*/
1071
- 0, /*nb_inplace_true_divide*/
1072
- (unaryfunc)NULL, /*nb_index*/
1073
- };
1074
-
1075
-
1076
- static PyObject *
1077
- gentype_richcompare(PyObject *self, PyObject *other, int cmp_op)
1078
- {
1079
- PyObject *arr, *ret;
1080
-
1081
- /*
1082
- * If the other object is None, False is always right. This avoids
1083
- * the array None comparison, at least until deprecation it is fixed.
1084
- * After that, this may be removed and numpy false would be returned.
1085
- *
1086
- * NOTE: np.equal(NaT, None) evaluates to TRUE! This is an
1087
- * an inconsistency, which may has to be considered
1088
- * when the deprecation is finished.
1089
- */
1090
- if (other == Py_None) {
1091
- if (cmp_op == Py_EQ) {
1092
- Py_RETURN_FALSE;
1093
- }
1094
- if (cmp_op == Py_NE) {
1095
- Py_RETURN_TRUE;
1096
- }
1097
- }
1098
-
1099
- arr = PyArray_FromScalar(self, NULL);
1100
- if (arr == NULL) {
1101
- return NULL;
1102
- }
1103
- /*
1104
- * Call via PyObject_RichCompare to ensure that other.__eq__
1105
- * has a chance to run when necessary
1106
- */
1107
- ret = PyObject_RichCompare(arr, other, cmp_op);
1108
- Py_DECREF(arr);
1109
- return ret;
1110
- }
1111
-
1112
- static PyObject *
1113
- gentype_ndim_get(PyObject *NPY_UNUSED(self))
1114
- {
1115
- return PyInt_FromLong(0);
1116
- }
1117
-
1118
- static PyObject *
1119
- gentype_flags_get(PyObject *NPY_UNUSED(self))
1120
- {
1121
- return PyArray_NewFlagsObject(NULL);
1122
- }
1123
-
1124
- static PyObject *
1125
- voidtype_flags_get(PyVoidScalarObject *self)
1126
- {
1127
- PyObject *flagobj;
1128
- flagobj = PyArrayFlags_Type.tp_alloc(&PyArrayFlags_Type, 0);
1129
- if (flagobj == NULL) {
1130
- return NULL;
1131
- }
1132
- ((PyArrayFlagsObject *)flagobj)->arr = NULL;
1133
- ((PyArrayFlagsObject *)flagobj)->flags = self->flags;
1134
- return flagobj;
1135
- }
1136
-
1137
- static PyObject *
1138
- voidtype_dtypedescr_get(PyVoidScalarObject *self)
1139
- {
1140
- Py_INCREF(self->descr);
1141
- return (PyObject *)self->descr;
1142
- }
1143
-
1144
-
1145
- static PyObject *
1146
- inttype_numerator_get(PyObject *self)
1147
- {
1148
- Py_INCREF(self);
1149
- return self;
1150
- }
1151
-
1152
-
1153
- static PyObject *
1154
- inttype_denominator_get(PyObject *self)
1155
- {
1156
- return PyInt_FromLong(1);
1157
- }
1158
-
1159
-
1160
- static PyObject *
1161
- gentype_data_get(PyObject *self)
1162
- {
1163
- #if defined(NPY_PY3K)
1164
- return PyMemoryView_FromObject(self);
1165
- #else
1166
- return PyBuffer_FromObject(self, 0, Py_END_OF_BUFFER);
1167
- #endif
1168
- }
1169
-
1170
-
1171
- static PyObject *
1172
- gentype_itemsize_get(PyObject *self)
1173
- {
1174
- PyArray_Descr *typecode;
1175
- PyObject *ret;
1176
- int elsize;
1177
-
1178
- typecode = PyArray_DescrFromScalar(self);
1179
- elsize = typecode->elsize;
1180
- #ifndef Py_UNICODE_WIDE
1181
- if (typecode->type_num == NPY_UNICODE) {
1182
- elsize >>= 1;
1183
- }
1184
- #endif
1185
- ret = PyInt_FromLong((long) elsize);
1186
- Py_DECREF(typecode);
1187
- return ret;
1188
- }
1189
-
1190
- static PyObject *
1191
- gentype_size_get(PyObject *NPY_UNUSED(self))
1192
- {
1193
- return PyInt_FromLong(1);
1194
- }
1195
-
1196
- #if PY_VERSION_HEX >= 0x03000000
1197
- NPY_NO_EXPORT void
1198
- gentype_struct_free(PyObject *ptr)
1199
- {
1200
- PyArrayInterface *arrif;
1201
- PyObject *context;
1202
-
1203
- arrif = (PyArrayInterface*)PyCapsule_GetPointer(ptr, NULL);
1204
- context = (PyObject *)PyCapsule_GetContext(ptr);
1205
- Py_DECREF(context);
1206
- Py_XDECREF(arrif->descr);
1207
- PyArray_free(arrif->shape);
1208
- PyArray_free(arrif);
1209
- }
1210
- #else
1211
- NPY_NO_EXPORT void
1212
- gentype_struct_free(void *ptr, void *arg)
1213
- {
1214
- PyArrayInterface *arrif = (PyArrayInterface *)ptr;
1215
- Py_DECREF((PyObject *)arg);
1216
- Py_XDECREF(arrif->descr);
1217
- PyArray_free(arrif->shape);
1218
- PyArray_free(arrif);
1219
- }
1220
- #endif
1221
-
1222
- static PyObject *
1223
- gentype_struct_get(PyObject *self)
1224
- {
1225
- PyArrayObject *arr;
1226
- PyArrayInterface *inter;
1227
- PyObject *ret;
1228
-
1229
- arr = (PyArrayObject *)PyArray_FromScalar(self, NULL);
1230
- inter = (PyArrayInterface *)PyArray_malloc(sizeof(PyArrayInterface));
1231
- inter->two = 2;
1232
- inter->nd = 0;
1233
- inter->flags = PyArray_FLAGS(arr);
1234
- inter->flags &= ~(NPY_ARRAY_UPDATEIFCOPY | NPY_ARRAY_OWNDATA);
1235
- inter->flags |= NPY_ARRAY_NOTSWAPPED;
1236
- inter->typekind = PyArray_DESCR(arr)->kind;
1237
- inter->itemsize = PyArray_DESCR(arr)->elsize;
1238
- inter->strides = NULL;
1239
- inter->shape = NULL;
1240
- inter->data = PyArray_DATA(arr);
1241
- inter->descr = NULL;
1242
-
1243
- ret = NpyCapsule_FromVoidPtrAndDesc(inter, arr, gentype_struct_free);
1244
- return ret;
1245
- }
1246
-
1247
- static PyObject *
1248
- gentype_priority_get(PyObject *NPY_UNUSED(self))
1249
- {
1250
- return PyFloat_FromDouble(NPY_SCALAR_PRIORITY);
1251
- }
1252
-
1253
- static PyObject *
1254
- gentype_shape_get(PyObject *NPY_UNUSED(self))
1255
- {
1256
- return PyTuple_New(0);
1257
- }
1258
-
1259
-
1260
- static PyObject *
1261
- gentype_interface_get(PyObject *self)
1262
- {
1263
- PyArrayObject *arr;
1264
- PyObject *inter;
1265
-
1266
- arr = (PyArrayObject *)PyArray_FromScalar(self, NULL);
1267
- if (arr == NULL) {
1268
- return NULL;
1269
- }
1270
- inter = PyObject_GetAttrString((PyObject *)arr, "__array_interface__");
1271
- if (inter != NULL) {
1272
- PyDict_SetItemString(inter, "__ref", (PyObject *)arr);
1273
- }
1274
- Py_DECREF(arr);
1275
- return inter;
1276
- }
1277
-
1278
-
1279
-
1280
- static PyObject *
1281
- gentype_typedescr_get(PyObject *self)
1282
- {
1283
- return (PyObject *)PyArray_DescrFromScalar(self);
1284
- }
1285
-
1286
-
1287
- static PyObject *
1288
- gentype_base_get(PyObject *NPY_UNUSED(self))
1289
- {
1290
- Py_INCREF(Py_None);
1291
- return Py_None;
1292
- }
1293
-
1294
-
1295
- static PyArray_Descr *
1296
- _realdescr_fromcomplexscalar(PyObject *self, int *typenum)
1297
- {
1298
- if (PyArray_IsScalar(self, CDouble)) {
1299
- *typenum = NPY_CDOUBLE;
1300
- return PyArray_DescrFromType(NPY_DOUBLE);
1301
- }
1302
- if (PyArray_IsScalar(self, CFloat)) {
1303
- *typenum = NPY_CFLOAT;
1304
- return PyArray_DescrFromType(NPY_FLOAT);
1305
- }
1306
- if (PyArray_IsScalar(self, CLongDouble)) {
1307
- *typenum = NPY_CLONGDOUBLE;
1308
- return PyArray_DescrFromType(NPY_LONGDOUBLE);
1309
- }
1310
- return NULL;
1311
- }
1312
-
1313
- static PyObject *
1314
- gentype_real_get(PyObject *self)
1315
- {
1316
- PyArray_Descr *typecode;
1317
- PyObject *ret;
1318
- int typenum;
1319
-
1320
- if (PyArray_IsScalar(self, ComplexFloating)) {
1321
- void *ptr;
1322
- typecode = _realdescr_fromcomplexscalar(self, &typenum);
1323
- ptr = scalar_value(self, NULL);
1324
- ret = PyArray_Scalar(ptr, typecode, NULL);
1325
- Py_DECREF(typecode);
1326
- return ret;
1327
- }
1328
- else if (PyArray_IsScalar(self, Object)) {
1329
- PyObject *obj = ((PyObjectScalarObject *)self)->obval;
1330
- ret = PyObject_GetAttrString(obj, "real");
1331
- if (ret != NULL) {
1332
- return ret;
1333
- }
1334
- PyErr_Clear();
1335
- }
1336
- Py_INCREF(self);
1337
- return (PyObject *)self;
1338
- }
1339
-
1340
- static PyObject *
1341
- gentype_imag_get(PyObject *self)
1342
- {
1343
- PyArray_Descr *typecode=NULL;
1344
- PyObject *ret;
1345
- int typenum;
1346
-
1347
- if (PyArray_IsScalar(self, ComplexFloating)) {
1348
- char *ptr;
1349
- typecode = _realdescr_fromcomplexscalar(self, &typenum);
1350
- ptr = (char *)scalar_value(self, NULL);
1351
- ret = PyArray_Scalar(ptr + typecode->elsize, typecode, NULL);
1352
- }
1353
- else if (PyArray_IsScalar(self, Object)) {
1354
- PyObject *obj = ((PyObjectScalarObject *)self)->obval;
1355
- PyArray_Descr *newtype;
1356
- ret = PyObject_GetAttrString(obj, "imag");
1357
- if (ret == NULL) {
1358
- PyErr_Clear();
1359
- obj = PyInt_FromLong(0);
1360
- newtype = PyArray_DescrFromType(NPY_OBJECT);
1361
- ret = PyArray_Scalar((char *)&obj, newtype, NULL);
1362
- Py_DECREF(newtype);
1363
- Py_DECREF(obj);
1364
- }
1365
- }
1366
- else {
1367
- char *temp;
1368
- int elsize;
1369
- typecode = PyArray_DescrFromScalar(self);
1370
- elsize = typecode->elsize;
1371
- temp = PyDataMem_NEW(elsize);
1372
- memset(temp, '\0', elsize);
1373
- ret = PyArray_Scalar(temp, typecode, NULL);
1374
- PyDataMem_FREE(temp);
1375
- }
1376
-
1377
- Py_XDECREF(typecode);
1378
- return ret;
1379
- }
1380
-
1381
- static PyObject *
1382
- gentype_flat_get(PyObject *self)
1383
- {
1384
- PyObject *ret, *arr;
1385
-
1386
- arr = PyArray_FromScalar(self, NULL);
1387
- if (arr == NULL) {
1388
- return NULL;
1389
- }
1390
- ret = PyArray_IterNew(arr);
1391
- Py_DECREF(arr);
1392
- return ret;
1393
- }
1394
-
1395
-
1396
- static PyObject *
1397
- gentype_transpose_get(PyObject *self)
1398
- {
1399
- Py_INCREF(self);
1400
- return self;
1401
- }
1402
-
1403
-
1404
- static PyGetSetDef gentype_getsets[] = {
1405
- {"ndim",
1406
- (getter)gentype_ndim_get,
1407
- (setter) 0,
1408
- "number of array dimensions",
1409
- NULL},
1410
- {"flags",
1411
- (getter)gentype_flags_get,
1412
- (setter)0,
1413
- "integer value of flags",
1414
- NULL},
1415
- {"shape",
1416
- (getter)gentype_shape_get,
1417
- (setter)0,
1418
- "tuple of array dimensions",
1419
- NULL},
1420
- {"strides",
1421
- (getter)gentype_shape_get,
1422
- (setter) 0,
1423
- "tuple of bytes steps in each dimension",
1424
- NULL},
1425
- {"data",
1426
- (getter)gentype_data_get,
1427
- (setter) 0,
1428
- "pointer to start of data",
1429
- NULL},
1430
- {"itemsize",
1431
- (getter)gentype_itemsize_get,
1432
- (setter)0,
1433
- "length of one element in bytes",
1434
- NULL},
1435
- {"size",
1436
- (getter)gentype_size_get,
1437
- (setter)0,
1438
- "number of elements in the gentype",
1439
- NULL},
1440
- {"nbytes",
1441
- (getter)gentype_itemsize_get,
1442
- (setter)0,
1443
- "length of item in bytes",
1444
- NULL},
1445
- {"base",
1446
- (getter)gentype_base_get,
1447
- (setter)0,
1448
- "base object",
1449
- NULL},
1450
- {"dtype",
1451
- (getter)gentype_typedescr_get,
1452
- NULL,
1453
- "get array data-descriptor",
1454
- NULL},
1455
- {"real",
1456
- (getter)gentype_real_get,
1457
- (setter)0,
1458
- "real part of scalar",
1459
- NULL},
1460
- {"imag",
1461
- (getter)gentype_imag_get,
1462
- (setter)0,
1463
- "imaginary part of scalar",
1464
- NULL},
1465
- {"flat",
1466
- (getter)gentype_flat_get,
1467
- (setter)0,
1468
- "a 1-d view of scalar",
1469
- NULL},
1470
- {"T",
1471
- (getter)gentype_transpose_get,
1472
- (setter)0,
1473
- "transpose",
1474
- NULL},
1475
- {"__array_interface__",
1476
- (getter)gentype_interface_get,
1477
- NULL,
1478
- "Array protocol: Python side",
1479
- NULL},
1480
- {"__array_struct__",
1481
- (getter)gentype_struct_get,
1482
- NULL,
1483
- "Array protocol: struct",
1484
- NULL},
1485
- {"__array_priority__",
1486
- (getter)gentype_priority_get,
1487
- NULL,
1488
- "Array priority.",
1489
- NULL},
1490
- {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
1491
- };
1492
-
1493
-
1494
- /* 0-dim array from scalar object */
1495
-
1496
- static char doc_getarray[] = "sc.__array__(|type) return 0-dim array";
1497
-
1498
- static PyObject *
1499
- gentype_getarray(PyObject *scalar, PyObject *args)
1500
- {
1501
- PyArray_Descr *outcode=NULL;
1502
- PyObject *ret;
1503
-
1504
- if (!PyArg_ParseTuple(args, "|O&", &PyArray_DescrConverter,
1505
- &outcode)) {
1506
- Py_XDECREF(outcode);
1507
- return NULL;
1508
- }
1509
- ret = PyArray_FromScalar(scalar, outcode);
1510
- return ret;
1511
- }
1512
-
1513
- static char doc_sc_wraparray[] = "sc.__array_wrap__(obj) return scalar from array";
1514
-
1515
- static PyObject *
1516
- gentype_wraparray(PyObject *NPY_UNUSED(scalar), PyObject *args)
1517
- {
1518
- PyObject *obj;
1519
- PyArrayObject *arr;
1520
-
1521
- if (PyTuple_Size(args) < 1) {
1522
- PyErr_SetString(PyExc_TypeError,
1523
- "only accepts 1 argument.");
1524
- return NULL;
1525
- }
1526
- obj = PyTuple_GET_ITEM(args, 0);
1527
- if (!PyArray_Check(obj)) {
1528
- PyErr_SetString(PyExc_TypeError,
1529
- "can only be called with ndarray object");
1530
- return NULL;
1531
- }
1532
- arr = (PyArrayObject *)obj;
1533
-
1534
- return PyArray_Scalar(PyArray_DATA(arr),
1535
- PyArray_DESCR(arr), (PyObject *)arr);
1536
- }
1537
-
1538
- /*
1539
- * These gentype_* functions do not take keyword arguments.
1540
- * The proper flag is METH_VARARGS.
1541
- */
1542
- /**begin repeat
1543
- *
1544
- * #name = tolist, item, tostring, tobytes, astype, copy, __deepcopy__,
1545
- * searchsorted, view, swapaxes, conj, conjugate, nonzero, flatten,
1546
- * ravel, fill, transpose, newbyteorder#
1547
- */
1548
- static PyObject *
1549
- gentype_@name@(PyObject *self, PyObject *args)
1550
- {
1551
- return gentype_generic_method(self, args, NULL, "@name@");
1552
- }
1553
- /**end repeat**/
1554
-
1555
- static PyObject *
1556
- gentype_itemset(PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args))
1557
- {
1558
- PyErr_SetString(PyExc_ValueError, "array-scalars are immutable");
1559
- return NULL;
1560
- }
1561
-
1562
- static PyObject *
1563
- gentype_squeeze(PyObject *self, PyObject *args)
1564
- {
1565
- if (!PyArg_ParseTuple(args, "")) {
1566
- return NULL;
1567
- }
1568
- Py_INCREF(self);
1569
- return self;
1570
- }
1571
-
1572
- static Py_ssize_t
1573
- gentype_getreadbuf(PyObject *, Py_ssize_t, void **);
1574
-
1575
- static PyObject *
1576
- gentype_byteswap(PyObject *self, PyObject *args)
1577
- {
1578
- npy_bool inplace = NPY_FALSE;
1579
-
1580
- if (!PyArg_ParseTuple(args, "|O&", PyArray_BoolConverter, &inplace)) {
1581
- return NULL;
1582
- }
1583
- if (inplace) {
1584
- PyErr_SetString(PyExc_ValueError,
1585
- "cannot byteswap a scalar in-place");
1586
- return NULL;
1587
- }
1588
- else {
1589
- /* get the data, copyswap it and pass it to a new Array scalar */
1590
- char *data;
1591
- PyArray_Descr *descr;
1592
- PyObject *new;
1593
- char *newmem;
1594
-
1595
- gentype_getreadbuf(self, 0, (void **)&data);
1596
- descr = PyArray_DescrFromScalar(self);
1597
- newmem = PyObject_Malloc(descr->elsize);
1598
- if (newmem == NULL) {
1599
- Py_DECREF(descr);
1600
- return PyErr_NoMemory();
1601
- }
1602
- else {
1603
- descr->f->copyswap(newmem, data, 1, NULL);
1604
- }
1605
- new = PyArray_Scalar(newmem, descr, NULL);
1606
- PyObject_Free(newmem);
1607
- Py_DECREF(descr);
1608
- return new;
1609
- }
1610
- }
1611
-
1612
-
1613
- /*
1614
- * These gentype_* functions take keyword arguments.
1615
- * The proper flag is METH_VARARGS | METH_KEYWORDS.
1616
- */
1617
- /**begin repeat
1618
- *
1619
- * #name = take, getfield, put, repeat, tofile, mean, trace, diagonal, clip,
1620
- * std, var, sum, cumsum, prod, cumprod, compress, sort, argsort,
1621
- * round, argmax, argmin, max, min, ptp, any, all, resize, reshape,
1622
- * choose#
1623
- */
1624
- static PyObject *
1625
- gentype_@name@(PyObject *self, PyObject *args, PyObject *kwds)
1626
- {
1627
- return gentype_generic_method(self, args, kwds, "@name@");
1628
- }
1629
- /**end repeat**/
1630
-
1631
- static PyObject *
1632
- voidtype_getfield(PyVoidScalarObject *self, PyObject *args, PyObject *kwds)
1633
- {
1634
- PyObject *ret, *newargs;
1635
-
1636
- newargs = PyTuple_GetSlice(args, 0, 2);
1637
- if (newargs == NULL) {
1638
- return NULL;
1639
- }
1640
- ret = gentype_generic_method((PyObject *)self, newargs, kwds, "getfield");
1641
- Py_DECREF(newargs);
1642
- if (!ret) {
1643
- return ret;
1644
- }
1645
- if (PyArray_IsScalar(ret, Generic) && \
1646
- (!PyArray_IsScalar(ret, Void))) {
1647
- PyArray_Descr *new;
1648
- void *ptr;
1649
- if (!PyArray_ISNBO(self->descr->byteorder)) {
1650
- new = PyArray_DescrFromScalar(ret);
1651
- ptr = scalar_value(ret, new);
1652
- byte_swap_vector(ptr, 1, new->elsize);
1653
- Py_DECREF(new);
1654
- }
1655
- }
1656
- return ret;
1657
- }
1658
-
1659
- static PyObject *
1660
- gentype_setfield(PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args), PyObject *NPY_UNUSED(kwds))
1661
- {
1662
- PyErr_SetString(PyExc_TypeError,
1663
- "Can't set fields in a non-void array scalar.");
1664
- return NULL;
1665
- }
1666
-
1667
- static PyObject *
1668
- voidtype_setfield(PyVoidScalarObject *self, PyObject *args, PyObject *kwds)
1669
- {
1670
- PyArray_Descr *typecode = NULL;
1671
- int offset = 0;
1672
- PyObject *value;
1673
- PyArrayObject *src;
1674
- int mysize;
1675
- char *dptr;
1676
- static char *kwlist[] = {"value", "dtype", "offset", 0};
1677
-
1678
- if ((self->flags & NPY_ARRAY_WRITEABLE) != NPY_ARRAY_WRITEABLE) {
1679
- PyErr_SetString(PyExc_RuntimeError, "Can't write to memory");
1680
- return NULL;
1681
- }
1682
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "OO&|i", kwlist,
1683
- &value,
1684
- PyArray_DescrConverter,
1685
- &typecode, &offset)) {
1686
- Py_XDECREF(typecode);
1687
- return NULL;
1688
- }
1689
-
1690
- mysize = Py_SIZE(self);
1691
-
1692
- if (offset < 0 || (offset + typecode->elsize) > mysize) {
1693
- PyErr_Format(PyExc_ValueError,
1694
- "Need 0 <= offset <= %d for requested type " \
1695
- "but received offset = %d",
1696
- mysize-typecode->elsize, offset);
1697
- Py_DECREF(typecode);
1698
- return NULL;
1699
- }
1700
-
1701
- dptr = self->obval + offset;
1702
-
1703
- if (typecode->type_num == NPY_OBJECT) {
1704
- PyObject *temp;
1705
- Py_INCREF(value);
1706
- NPY_COPY_PYOBJECT_PTR(&temp, dptr);
1707
- Py_XDECREF(temp);
1708
- NPY_COPY_PYOBJECT_PTR(dptr, &value);
1709
- Py_DECREF(typecode);
1710
- }
1711
- else {
1712
- /* Copy data from value to correct place in dptr */
1713
- src = (PyArrayObject *)PyArray_FromAny(value, typecode,
1714
- 0, 0, NPY_ARRAY_CARRAY, NULL);
1715
- if (src == NULL) {
1716
- return NULL;
1717
- }
1718
- typecode->f->copyswap(dptr, PyArray_DATA(src),
1719
- !PyArray_ISNBO(self->descr->byteorder),
1720
- src);
1721
- Py_DECREF(src);
1722
- }
1723
- Py_INCREF(Py_None);
1724
- return Py_None;
1725
- }
1726
-
1727
-
1728
- static PyObject *
1729
- gentype_reduce(PyObject *self, PyObject *NPY_UNUSED(args))
1730
- {
1731
- PyObject *ret = NULL, *obj = NULL, *mod = NULL;
1732
- const char *buffer;
1733
- Py_ssize_t buflen;
1734
-
1735
- /* Return a tuple of (callable object, arguments) */
1736
- ret = PyTuple_New(2);
1737
- if (ret == NULL) {
1738
- return NULL;
1739
- }
1740
- #if defined(NPY_PY3K)
1741
- if (PyArray_IsScalar(self, Unicode)) {
1742
- /* Unicode on Python 3 does not expose the buffer interface */
1743
- buffer = PyUnicode_AS_DATA(self);
1744
- buflen = PyUnicode_GET_DATA_SIZE(self);
1745
- }
1746
- else
1747
- #endif
1748
- if (PyObject_AsReadBuffer(self, (const void **)&buffer, &buflen)<0) {
1749
- Py_DECREF(ret);
1750
- return NULL;
1751
- }
1752
- mod = PyImport_ImportModule("numpy.core.multiarray");
1753
- if (mod == NULL) {
1754
- return NULL;
1755
- }
1756
- obj = PyObject_GetAttrString(mod, "scalar");
1757
- Py_DECREF(mod);
1758
- if (obj == NULL) {
1759
- return NULL;
1760
- }
1761
- PyTuple_SET_ITEM(ret, 0, obj);
1762
- obj = PyObject_GetAttrString((PyObject *)self, "dtype");
1763
- if (PyArray_IsScalar(self, Object)) {
1764
- mod = ((PyObjectScalarObject *)self)->obval;
1765
- PyTuple_SET_ITEM(ret, 1, Py_BuildValue("NO", obj, mod));
1766
- }
1767
- else {
1768
- #ifndef Py_UNICODE_WIDE
1769
- /*
1770
- * We need to expand the buffer so that we always write
1771
- * UCS4 to disk for pickle of unicode scalars.
1772
- *
1773
- * This could be in a unicode_reduce function, but
1774
- * that would require re-factoring.
1775
- */
1776
- int alloc = 0;
1777
- char *tmp;
1778
- int newlen;
1779
-
1780
- if (PyArray_IsScalar(self, Unicode)) {
1781
- tmp = PyArray_malloc(buflen*2);
1782
- if (tmp == NULL) {
1783
- Py_DECREF(ret);
1784
- return PyErr_NoMemory();
1785
- }
1786
- alloc = 1;
1787
- newlen = PyUCS2Buffer_AsUCS4((Py_UNICODE *)buffer,
1788
- (npy_ucs4 *)tmp,
1789
- buflen / 2, buflen / 2);
1790
- buflen = newlen*4;
1791
- buffer = tmp;
1792
- }
1793
- #endif
1794
- mod = PyBytes_FromStringAndSize(buffer, buflen);
1795
- if (mod == NULL) {
1796
- Py_DECREF(ret);
1797
- #ifndef Py_UNICODE_WIDE
1798
- ret = NULL;
1799
- goto fail;
1800
- #else
1801
- return NULL;
1802
- #endif
1803
- }
1804
- PyTuple_SET_ITEM(ret, 1,
1805
- Py_BuildValue("NN", obj, mod));
1806
- #ifndef Py_UNICODE_WIDE
1807
- fail:
1808
- if (alloc) PyArray_free((char *)buffer);
1809
- #endif
1810
- }
1811
- return ret;
1812
- }
1813
-
1814
- /* ignores everything */
1815
- static PyObject *
1816
- gentype_setstate(PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args))
1817
- {
1818
- Py_INCREF(Py_None);
1819
- return (Py_None);
1820
- }
1821
-
1822
- static PyObject *
1823
- gentype_dump(PyObject *self, PyObject *args)
1824
- {
1825
- PyObject *file = NULL;
1826
- int ret;
1827
-
1828
- if (!PyArg_ParseTuple(args, "O", &file)) {
1829
- return NULL;
1830
- }
1831
- ret = PyArray_Dump(self, file, 2);
1832
- if (ret < 0) {
1833
- return NULL;
1834
- }
1835
- Py_INCREF(Py_None);
1836
- return Py_None;
1837
- }
1838
-
1839
- static PyObject *
1840
- gentype_dumps(PyObject *self, PyObject *args)
1841
- {
1842
- if (!PyArg_ParseTuple(args, "")) {
1843
- return NULL;
1844
- }
1845
- return PyArray_Dumps(self, 2);
1846
- }
1847
-
1848
-
1849
- /* setting flags cannot be done for scalars */
1850
- static PyObject *
1851
- gentype_setflags(PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED(args),
1852
- PyObject *NPY_UNUSED(kwds))
1853
- {
1854
- Py_INCREF(Py_None);
1855
- return Py_None;
1856
- }
1857
-
1858
- /*
1859
- * casting complex numbers (that don't inherit from Python complex)
1860
- * to Python complex
1861
- */
1862
-
1863
- /**begin repeat
1864
- * #name = cfloat, clongdouble#
1865
- * #Name = CFloat, CLongDouble#
1866
- */
1867
- static PyObject *
1868
- @name@_complex(PyObject *self, PyObject *NPY_UNUSED(args),
1869
- PyObject *NPY_UNUSED(kwds))
1870
- {
1871
- return PyComplex_FromDoubles(PyArrayScalar_VAL(self, @Name@).real,
1872
- PyArrayScalar_VAL(self, @Name@).imag);
1873
- }
1874
- /**end repeat**/
1875
-
1876
- /*
1877
- * need to fill in doc-strings for these methods on import -- copy from
1878
- * array docstrings
1879
- */
1880
- static PyMethodDef gentype_methods[] = {
1881
- {"tolist",
1882
- (PyCFunction)gentype_tolist,
1883
- METH_VARARGS, NULL},
1884
- {"item",
1885
- (PyCFunction)gentype_item,
1886
- METH_VARARGS, NULL},
1887
- {"itemset",
1888
- (PyCFunction)gentype_itemset,
1889
- METH_VARARGS, NULL},
1890
- {"tobytes",
1891
- (PyCFunction)gentype_tobytes,
1892
- METH_VARARGS, NULL},
1893
- {"tofile",
1894
- (PyCFunction)gentype_tofile,
1895
- METH_VARARGS | METH_KEYWORDS, NULL},
1896
- {"tostring",
1897
- (PyCFunction)gentype_tostring,
1898
- METH_VARARGS, NULL},
1899
- {"byteswap",
1900
- (PyCFunction)gentype_byteswap,
1901
- METH_VARARGS, NULL},
1902
- {"astype",
1903
- (PyCFunction)gentype_astype,
1904
- METH_VARARGS, NULL},
1905
- {"getfield",
1906
- (PyCFunction)gentype_getfield,
1907
- METH_VARARGS | METH_KEYWORDS, NULL},
1908
- {"setfield",
1909
- (PyCFunction)gentype_setfield,
1910
- METH_VARARGS | METH_KEYWORDS, NULL},
1911
- {"copy",
1912
- (PyCFunction)gentype_copy,
1913
- METH_VARARGS, NULL},
1914
- {"resize",
1915
- (PyCFunction)gentype_resize,
1916
- METH_VARARGS | METH_KEYWORDS, NULL},
1917
- {"__array__",
1918
- (PyCFunction)gentype_getarray,
1919
- METH_VARARGS, doc_getarray},
1920
- {"__array_wrap__",
1921
- (PyCFunction)gentype_wraparray,
1922
- METH_VARARGS, doc_sc_wraparray},
1923
-
1924
- /* for the copy module */
1925
- {"__copy__",
1926
- (PyCFunction)gentype_copy,
1927
- METH_VARARGS, NULL},
1928
- {"__deepcopy__",
1929
- (PyCFunction)gentype___deepcopy__,
1930
- METH_VARARGS, NULL},
1931
-
1932
- {"__reduce__",
1933
- (PyCFunction) gentype_reduce,
1934
- METH_VARARGS, NULL},
1935
- /* For consistency does nothing */
1936
- {"__setstate__",
1937
- (PyCFunction) gentype_setstate,
1938
- METH_VARARGS, NULL},
1939
-
1940
- {"dumps",
1941
- (PyCFunction) gentype_dumps,
1942
- METH_VARARGS, NULL},
1943
- {"dump",
1944
- (PyCFunction) gentype_dump,
1945
- METH_VARARGS, NULL},
1946
-
1947
- /* Methods for array */
1948
- {"fill",
1949
- (PyCFunction)gentype_fill,
1950
- METH_VARARGS, NULL},
1951
- {"transpose",
1952
- (PyCFunction)gentype_transpose,
1953
- METH_VARARGS, NULL},
1954
- {"take",
1955
- (PyCFunction)gentype_take,
1956
- METH_VARARGS | METH_KEYWORDS, NULL},
1957
- {"put",
1958
- (PyCFunction)gentype_put,
1959
- METH_VARARGS | METH_KEYWORDS, NULL},
1960
- {"repeat",
1961
- (PyCFunction)gentype_repeat,
1962
- METH_VARARGS | METH_KEYWORDS, NULL},
1963
- {"choose",
1964
- (PyCFunction)gentype_choose,
1965
- METH_VARARGS | METH_KEYWORDS, NULL},
1966
- {"sort",
1967
- (PyCFunction)gentype_sort,
1968
- METH_VARARGS | METH_KEYWORDS, NULL},
1969
- {"argsort",
1970
- (PyCFunction)gentype_argsort,
1971
- METH_VARARGS | METH_KEYWORDS, NULL},
1972
- {"searchsorted",
1973
- (PyCFunction)gentype_searchsorted,
1974
- METH_VARARGS, NULL},
1975
- {"argmax",
1976
- (PyCFunction)gentype_argmax,
1977
- METH_VARARGS | METH_KEYWORDS, NULL},
1978
- {"argmin",
1979
- (PyCFunction)gentype_argmin,
1980
- METH_VARARGS | METH_KEYWORDS, NULL},
1981
- {"reshape",
1982
- (PyCFunction)gentype_reshape,
1983
- METH_VARARGS | METH_KEYWORDS, NULL},
1984
- {"squeeze",
1985
- (PyCFunction)gentype_squeeze,
1986
- METH_VARARGS, NULL},
1987
- {"view",
1988
- (PyCFunction)gentype_view,
1989
- METH_VARARGS, NULL},
1990
- {"swapaxes",
1991
- (PyCFunction)gentype_swapaxes,
1992
- METH_VARARGS, NULL},
1993
- {"max",
1994
- (PyCFunction)gentype_max,
1995
- METH_VARARGS | METH_KEYWORDS, NULL},
1996
- {"min",
1997
- (PyCFunction)gentype_min,
1998
- METH_VARARGS | METH_KEYWORDS, NULL},
1999
- {"ptp",
2000
- (PyCFunction)gentype_ptp,
2001
- METH_VARARGS | METH_KEYWORDS, NULL},
2002
- {"mean",
2003
- (PyCFunction)gentype_mean,
2004
- METH_VARARGS | METH_KEYWORDS, NULL},
2005
- {"trace",
2006
- (PyCFunction)gentype_trace,
2007
- METH_VARARGS | METH_KEYWORDS, NULL},
2008
- {"diagonal",
2009
- (PyCFunction)gentype_diagonal,
2010
- METH_VARARGS | METH_KEYWORDS, NULL},
2011
- {"clip",
2012
- (PyCFunction)gentype_clip,
2013
- METH_VARARGS | METH_KEYWORDS, NULL},
2014
- {"conj",
2015
- (PyCFunction)gentype_conj,
2016
- METH_VARARGS, NULL},
2017
- {"conjugate",
2018
- (PyCFunction)gentype_conjugate,
2019
- METH_VARARGS, NULL},
2020
- {"nonzero",
2021
- (PyCFunction)gentype_nonzero,
2022
- METH_VARARGS, NULL},
2023
- {"std",
2024
- (PyCFunction)gentype_std,
2025
- METH_VARARGS | METH_KEYWORDS, NULL},
2026
- {"var",
2027
- (PyCFunction)gentype_var,
2028
- METH_VARARGS | METH_KEYWORDS, NULL},
2029
- {"sum",
2030
- (PyCFunction)gentype_sum,
2031
- METH_VARARGS | METH_KEYWORDS, NULL},
2032
- {"cumsum",
2033
- (PyCFunction)gentype_cumsum,
2034
- METH_VARARGS | METH_KEYWORDS, NULL},
2035
- {"prod",
2036
- (PyCFunction)gentype_prod,
2037
- METH_VARARGS | METH_KEYWORDS, NULL},
2038
- {"cumprod",
2039
- (PyCFunction)gentype_cumprod,
2040
- METH_VARARGS | METH_KEYWORDS, NULL},
2041
- {"all",
2042
- (PyCFunction)gentype_all,
2043
- METH_VARARGS | METH_KEYWORDS, NULL},
2044
- {"any",
2045
- (PyCFunction)gentype_any,
2046
- METH_VARARGS | METH_KEYWORDS, NULL},
2047
- {"compress",
2048
- (PyCFunction)gentype_compress,
2049
- METH_VARARGS | METH_KEYWORDS, NULL},
2050
- {"flatten",
2051
- (PyCFunction)gentype_flatten,
2052
- METH_VARARGS, NULL},
2053
- {"ravel",
2054
- (PyCFunction)gentype_ravel,
2055
- METH_VARARGS, NULL},
2056
- {"round",
2057
- (PyCFunction)gentype_round,
2058
- METH_VARARGS | METH_KEYWORDS, NULL},
2059
- #if defined(NPY_PY3K)
2060
- /* Hook for the round() builtin */
2061
- {"__round__",
2062
- (PyCFunction)gentype_round,
2063
- METH_VARARGS | METH_KEYWORDS, NULL},
2064
- #endif
2065
- /* For the format function */
2066
- {"__format__",
2067
- gentype_format,
2068
- METH_VARARGS,
2069
- "NumPy array scalar formatter"},
2070
- {"setflags",
2071
- (PyCFunction)gentype_setflags,
2072
- METH_VARARGS | METH_KEYWORDS, NULL},
2073
- {"newbyteorder",
2074
- (PyCFunction)gentype_newbyteorder,
2075
- METH_VARARGS, NULL},
2076
- {NULL, NULL, 0, NULL} /* sentinel */
2077
- };
2078
-
2079
-
2080
- static PyGetSetDef voidtype_getsets[] = {
2081
- {"flags",
2082
- (getter)voidtype_flags_get,
2083
- (setter)0,
2084
- "integer value of flags",
2085
- NULL},
2086
- {"dtype",
2087
- (getter)voidtype_dtypedescr_get,
2088
- (setter)0,
2089
- "dtype object",
2090
- NULL},
2091
- {NULL, NULL, NULL, NULL, NULL}
2092
- };
2093
-
2094
- static PyMethodDef voidtype_methods[] = {
2095
- {"getfield",
2096
- (PyCFunction)voidtype_getfield,
2097
- METH_VARARGS | METH_KEYWORDS, NULL},
2098
- {"setfield",
2099
- (PyCFunction)voidtype_setfield,
2100
- METH_VARARGS | METH_KEYWORDS, NULL},
2101
- {NULL, NULL, 0, NULL}
2102
- };
2103
-
2104
- static PyGetSetDef inttype_getsets[] = {
2105
- {"numerator",
2106
- (getter)inttype_numerator_get,
2107
- (setter)0,
2108
- "numerator of value (the value itself)",
2109
- NULL},
2110
- {"denominator",
2111
- (getter)inttype_denominator_get,
2112
- (setter)0,
2113
- "denominator of value (1)",
2114
- NULL},
2115
- {NULL, NULL, NULL, NULL, NULL}
2116
- };
2117
-
2118
- /**begin repeat
2119
- * #name = cfloat,clongdouble#
2120
- */
2121
- static PyMethodDef @name@type_methods[] = {
2122
- {"__complex__",
2123
- (PyCFunction)@name@_complex,
2124
- METH_VARARGS | METH_KEYWORDS, NULL},
2125
- {NULL, NULL, 0, NULL}
2126
- };
2127
- /**end repeat**/
2128
-
2129
- /************* As_mapping functions for void array scalar ************/
2130
-
2131
- static Py_ssize_t
2132
- voidtype_length(PyVoidScalarObject *self)
2133
- {
2134
- if (!PyDataType_HASFIELDS(self->descr)) {
2135
- return 0;
2136
- }
2137
- else {
2138
- /* return the number of fields */
2139
- return (Py_ssize_t) PyTuple_GET_SIZE(self->descr->names);
2140
- }
2141
- }
2142
-
2143
- static PyObject *
2144
- voidtype_item(PyVoidScalarObject *self, Py_ssize_t n)
2145
- {
2146
- npy_intp m;
2147
- PyObject *flist=NULL, *fieldinfo;
2148
-
2149
- if (!(PyDataType_HASFIELDS(self->descr))) {
2150
- PyErr_SetString(PyExc_IndexError,
2151
- "can't index void scalar without fields");
2152
- return NULL;
2153
- }
2154
- flist = self->descr->names;
2155
- m = PyTuple_GET_SIZE(flist);
2156
- if (n < 0) {
2157
- n += m;
2158
- }
2159
- if (n < 0 || n >= m) {
2160
- PyErr_Format(PyExc_IndexError, "invalid index (%d)", (int) n);
2161
- return NULL;
2162
- }
2163
- fieldinfo = PyDict_GetItem(self->descr->fields,
2164
- PyTuple_GET_ITEM(flist, n));
2165
- return voidtype_getfield(self, fieldinfo, NULL);
2166
- }
2167
-
2168
-
2169
- /* get field by name or number */
2170
- static PyObject *
2171
- voidtype_subscript(PyVoidScalarObject *self, PyObject *ind)
2172
- {
2173
- npy_intp n;
2174
- PyObject *fieldinfo;
2175
-
2176
- if (!(PyDataType_HASFIELDS(self->descr))) {
2177
- PyErr_SetString(PyExc_IndexError,
2178
- "can't index void scalar without fields");
2179
- return NULL;
2180
- }
2181
-
2182
- #if defined(NPY_PY3K)
2183
- if (PyUString_Check(ind)) {
2184
- #else
2185
- if (PyBytes_Check(ind) || PyUnicode_Check(ind)) {
2186
- #endif
2187
- /* look up in fields */
2188
- fieldinfo = PyDict_GetItem(self->descr->fields, ind);
2189
- if (!fieldinfo) {
2190
- goto fail;
2191
- }
2192
- return voidtype_getfield(self, fieldinfo, NULL);
2193
- }
2194
-
2195
- /* try to convert it to a number */
2196
- n = PyArray_PyIntAsIntp(ind);
2197
- if (error_converting(n)) {
2198
- goto fail;
2199
- }
2200
- return voidtype_item(self, (Py_ssize_t)n);
2201
-
2202
- fail:
2203
- PyErr_SetString(PyExc_IndexError, "invalid index");
2204
- return NULL;
2205
- }
2206
-
2207
- static int
2208
- voidtype_ass_item(PyVoidScalarObject *self, Py_ssize_t n, PyObject *val)
2209
- {
2210
- npy_intp m;
2211
- PyObject *flist=NULL, *fieldinfo, *newtup;
2212
- PyObject *res;
2213
-
2214
- if (!(PyDataType_HASFIELDS(self->descr))) {
2215
- PyErr_SetString(PyExc_IndexError,
2216
- "can't index void scalar without fields");
2217
- return -1;
2218
- }
2219
-
2220
- flist = self->descr->names;
2221
- m = PyTuple_GET_SIZE(flist);
2222
- if (n < 0) {
2223
- n += m;
2224
- }
2225
- if (n < 0 || n >= m) {
2226
- goto fail;
2227
- }
2228
- fieldinfo = PyDict_GetItem(self->descr->fields,
2229
- PyTuple_GET_ITEM(flist, n));
2230
- newtup = Py_BuildValue("(OOO)", val,
2231
- PyTuple_GET_ITEM(fieldinfo, 0),
2232
- PyTuple_GET_ITEM(fieldinfo, 1));
2233
- res = voidtype_setfield(self, newtup, NULL);
2234
- Py_DECREF(newtup);
2235
- if (!res) {
2236
- return -1;
2237
- }
2238
- Py_DECREF(res);
2239
- return 0;
2240
-
2241
- fail:
2242
- PyErr_Format(PyExc_IndexError, "invalid index (%d)", (int) n);
2243
- return -1;
2244
- }
2245
-
2246
- static int
2247
- voidtype_ass_subscript(PyVoidScalarObject *self, PyObject *ind, PyObject *val)
2248
- {
2249
- npy_intp n;
2250
- char *msg = "invalid index";
2251
- PyObject *fieldinfo, *newtup;
2252
- PyObject *res;
2253
-
2254
- if (!PyDataType_HASFIELDS(self->descr)) {
2255
- PyErr_SetString(PyExc_IndexError,
2256
- "can't index void scalar without fields");
2257
- return -1;
2258
- }
2259
-
2260
- if (!val) {
2261
- PyErr_SetString(PyExc_ValueError,
2262
- "cannot delete scalar field");
2263
- return -1;
2264
- }
2265
-
2266
- #if defined(NPY_PY3K)
2267
- if (PyUString_Check(ind)) {
2268
- #else
2269
- if (PyBytes_Check(ind) || PyUnicode_Check(ind)) {
2270
- #endif
2271
- /* look up in fields */
2272
- fieldinfo = PyDict_GetItem(self->descr->fields, ind);
2273
- if (!fieldinfo) {
2274
- goto fail;
2275
- }
2276
- newtup = Py_BuildValue("(OOO)", val,
2277
- PyTuple_GET_ITEM(fieldinfo, 0),
2278
- PyTuple_GET_ITEM(fieldinfo, 1));
2279
- res = voidtype_setfield(self, newtup, NULL);
2280
- Py_DECREF(newtup);
2281
- if (!res) {
2282
- return -1;
2283
- }
2284
- Py_DECREF(res);
2285
- return 0;
2286
- }
2287
-
2288
- /* try to convert it to a number */
2289
- n = PyArray_PyIntAsIntp(ind);
2290
- if (error_converting(n)) {
2291
- goto fail;
2292
- }
2293
- return voidtype_ass_item(self, (Py_ssize_t)n, val);
2294
-
2295
- fail:
2296
- PyErr_SetString(PyExc_IndexError, msg);
2297
- return -1;
2298
- }
2299
-
2300
- static PyMappingMethods voidtype_as_mapping = {
2301
- (lenfunc)voidtype_length, /*mp_length*/
2302
- (binaryfunc)voidtype_subscript, /*mp_subscript*/
2303
- (objobjargproc)voidtype_ass_subscript, /*mp_ass_subscript*/
2304
- };
2305
-
2306
-
2307
- static PySequenceMethods voidtype_as_sequence = {
2308
- (lenfunc)voidtype_length, /*sq_length*/
2309
- 0, /*sq_concat*/
2310
- 0, /*sq_repeat*/
2311
- (ssizeargfunc)voidtype_item, /*sq_item*/
2312
- 0, /*sq_slice*/
2313
- (ssizeobjargproc)voidtype_ass_item, /*sq_ass_item*/
2314
- 0, /* ssq_ass_slice */
2315
- 0, /* sq_contains */
2316
- 0, /* sq_inplace_concat */
2317
- 0, /* sq_inplace_repeat */
2318
- };
2319
-
2320
-
2321
- static Py_ssize_t
2322
- gentype_getreadbuf(PyObject *self, Py_ssize_t segment, void **ptrptr)
2323
- {
2324
- int numbytes;
2325
- PyArray_Descr *outcode;
2326
-
2327
- if (segment != 0) {
2328
- PyErr_SetString(PyExc_SystemError,
2329
- "Accessing non-existent array segment");
2330
- return -1;
2331
- }
2332
-
2333
- outcode = PyArray_DescrFromScalar(self);
2334
- numbytes = outcode->elsize;
2335
- *ptrptr = (void *)scalar_value(self, outcode);
2336
-
2337
- #ifndef Py_UNICODE_WIDE
2338
- if (outcode->type_num == NPY_UNICODE) {
2339
- numbytes >>= 1;
2340
- }
2341
- #endif
2342
- Py_DECREF(outcode);
2343
- return numbytes;
2344
- }
2345
-
2346
- #if !defined(NPY_PY3K)
2347
- static Py_ssize_t
2348
- gentype_getsegcount(PyObject *self, Py_ssize_t *lenp)
2349
- {
2350
- PyArray_Descr *outcode;
2351
-
2352
- outcode = PyArray_DescrFromScalar(self);
2353
- if (lenp) {
2354
- *lenp = outcode->elsize;
2355
- #ifndef Py_UNICODE_WIDE
2356
- if (outcode->type_num == NPY_UNICODE) {
2357
- *lenp >>= 1;
2358
- }
2359
- #endif
2360
- }
2361
- Py_DECREF(outcode);
2362
- return 1;
2363
- }
2364
-
2365
- static Py_ssize_t
2366
- gentype_getcharbuf(PyObject *self, Py_ssize_t segment, constchar **ptrptr)
2367
- {
2368
- if (PyArray_IsScalar(self, String) ||
2369
- PyArray_IsScalar(self, Unicode)) {
2370
- return gentype_getreadbuf(self, segment, (void **)ptrptr);
2371
- }
2372
- else {
2373
- PyErr_SetString(PyExc_TypeError,
2374
- "Non-character array cannot be interpreted "\
2375
- "as character buffer.");
2376
- return -1;
2377
- }
2378
- }
2379
- #endif /* !defined(NPY_PY3K) */
2380
-
2381
-
2382
- static int
2383
- gentype_getbuffer(PyObject *self, Py_buffer *view, int flags)
2384
- {
2385
- Py_ssize_t len;
2386
- void *buf;
2387
-
2388
- /* FIXME: XXX: the format is not implemented! -- this needs more work */
2389
-
2390
- len = gentype_getreadbuf(self, 0, &buf);
2391
- return PyBuffer_FillInfo(view, self, buf, len, 1, flags);
2392
- }
2393
-
2394
- /* releasebuffer is not needed */
2395
-
2396
-
2397
- static PyBufferProcs gentype_as_buffer = {
2398
- #if !defined(NPY_PY3K)
2399
- gentype_getreadbuf, /* bf_getreadbuffer*/
2400
- NULL, /* bf_getwritebuffer*/
2401
- gentype_getsegcount, /* bf_getsegcount*/
2402
- gentype_getcharbuf, /* bf_getcharbuffer*/
2403
- #endif
2404
- gentype_getbuffer, /* bf_getbuffer */
2405
- NULL, /* bf_releasebuffer */
2406
- };
2407
-
2408
-
2409
- #if defined(NPY_PY3K)
2410
- #define BASEFLAGS Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE
2411
- #define LEAFFLAGS Py_TPFLAGS_DEFAULT
2412
- #else
2413
- #define BASEFLAGS Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_CHECKTYPES
2414
- #define LEAFFLAGS Py_TPFLAGS_DEFAULT | Py_TPFLAGS_CHECKTYPES
2415
- #endif
2416
-
2417
- NPY_NO_EXPORT PyTypeObject PyGenericArrType_Type = {
2418
- #if defined(NPY_PY3K)
2419
- PyVarObject_HEAD_INIT(NULL, 0)
2420
- #else
2421
- PyObject_HEAD_INIT(NULL)
2422
- 0, /* ob_size */
2423
- #endif
2424
- "numpy.generic", /* tp_name*/
2425
- sizeof(PyObject), /* tp_basicsize*/
2426
- 0, /* tp_itemsize */
2427
- /* methods */
2428
- 0, /* tp_dealloc */
2429
- 0, /* tp_print */
2430
- 0, /* tp_getattr */
2431
- 0, /* tp_setattr */
2432
- #if defined(NPY_PY3K)
2433
- 0, /* tp_reserved */
2434
- #else
2435
- 0, /* tp_compare */
2436
- #endif
2437
- 0, /* tp_repr */
2438
- 0, /* tp_as_number */
2439
- 0, /* tp_as_sequence */
2440
- 0, /* tp_as_mapping */
2441
- 0, /* tp_hash */
2442
- 0, /* tp_call */
2443
- 0, /* tp_str */
2444
- 0, /* tp_getattro */
2445
- 0, /* tp_setattro */
2446
- 0, /* tp_as_buffer */
2447
- 0, /* tp_flags */
2448
- 0, /* tp_doc */
2449
- 0, /* tp_traverse */
2450
- 0, /* tp_clear */
2451
- 0, /* tp_richcompare */
2452
- 0, /* tp_weaklistoffset */
2453
- 0, /* tp_iter */
2454
- 0, /* tp_iternext */
2455
- 0, /* tp_methods */
2456
- 0, /* tp_members */
2457
- 0, /* tp_getset */
2458
- 0, /* tp_base */
2459
- 0, /* tp_dict */
2460
- 0, /* tp_descr_get */
2461
- 0, /* tp_descr_set */
2462
- 0, /* tp_dictoffset */
2463
- 0, /* tp_init */
2464
- 0, /* tp_alloc */
2465
- 0, /* tp_new */
2466
- 0, /* tp_free */
2467
- 0, /* tp_is_gc */
2468
- 0, /* tp_bases */
2469
- 0, /* tp_mro */
2470
- 0, /* tp_cache */
2471
- 0, /* tp_subclasses */
2472
- 0, /* tp_weaklist */
2473
- 0, /* tp_del */
2474
- 0, /* tp_version_tag */
2475
- };
2476
-
2477
- static void
2478
- void_dealloc(PyVoidScalarObject *v)
2479
- {
2480
- if (v->flags & NPY_ARRAY_OWNDATA) {
2481
- PyDataMem_FREE(v->obval);
2482
- }
2483
- Py_XDECREF(v->descr);
2484
- Py_XDECREF(v->base);
2485
- Py_TYPE(v)->tp_free(v);
2486
- }
2487
-
2488
- static void
2489
- object_arrtype_dealloc(PyObject *v)
2490
- {
2491
- Py_XDECREF(((PyObjectScalarObject *)v)->obval);
2492
- Py_TYPE(v)->tp_free(v);
2493
- }
2494
-
2495
- /*
2496
- * string and unicode inherit from Python Type first and so GET_ITEM
2497
- * is different to get to the Python Type.
2498
- *
2499
- * ok is a work-around for a bug in complex_new that doesn't allocate
2500
- * memory from the sub-types memory allocator.
2501
- */
2502
-
2503
- #define _WORK(num) \
2504
- if (type->tp_bases && (PyTuple_GET_SIZE(type->tp_bases)==2)) { \
2505
- PyTypeObject *sup; \
2506
- /* We are inheriting from a Python type as well so \
2507
- give it first dibs on conversion */ \
2508
- sup = (PyTypeObject *)PyTuple_GET_ITEM(type->tp_bases, num); \
2509
- /* Prevent recursion */ \
2510
- if (thisfunc != sup->tp_new) { \
2511
- robj = sup->tp_new(type, args, kwds); \
2512
- if (robj != NULL) goto finish; \
2513
- if (PyTuple_GET_SIZE(args)!=1) return NULL; \
2514
- PyErr_Clear(); \
2515
- } \
2516
- /* now do default conversion */ \
2517
- }
2518
-
2519
- #define _WORK1 _WORK(1)
2520
- #define _WORKz _WORK(0)
2521
- #define _WORK0
2522
-
2523
- /**begin repeat
2524
- * #name = byte, short, int, long, longlong, ubyte, ushort, uint, ulong,
2525
- * ulonglong, half, float, double, longdouble, cfloat, cdouble,
2526
- * clongdouble, string, unicode, object#
2527
- * #Name = Byte, Short, Int, Long, LongLong, UByte, UShort, UInt, ULong,
2528
- * ULongLong, Half, Float, Double, LongDouble, CFloat, CDouble,
2529
- * CLongDouble, String, Unicode, Object#
2530
- * #TYPE = BYTE, SHORT, INT, LONG, LONGLONG, UBYTE, USHORT, UINT, ULONG,
2531
- * ULONGLONG, HALF, FLOAT, DOUBLE, LONGDOUBLE, CFLOAT, CDOUBLE,
2532
- * CLONGDOUBLE, STRING, UNICODE, OBJECT#
2533
- * #work = 0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,z,z,0#
2534
- * #default = 0*17,1*2,2#
2535
- */
2536
-
2537
- #define _NPY_UNUSED2_1
2538
- #define _NPY_UNUSED2_z
2539
- #define _NPY_UNUSED2_0 NPY_UNUSED
2540
- #define _NPY_UNUSED1_0
2541
- #define _NPY_UNUSED1_1
2542
- #define _NPY_UNUSED1_2 NPY_UNUSED
2543
-
2544
- static PyObject *
2545
- @name@_arrtype_new(PyTypeObject *_NPY_UNUSED1_@default@(type), PyObject *args, PyObject *_NPY_UNUSED2_@work@(kwds))
2546
- {
2547
- PyObject *obj = NULL;
2548
- PyObject *robj;
2549
- PyArrayObject *arr;
2550
- PyArray_Descr *typecode = NULL;
2551
- #if (@work@ != 0) || (@default@ == 1)
2552
- void *thisfunc = (void *)@name@_arrtype_new;
2553
- #endif
2554
- #if !(@default@ == 2)
2555
- int itemsize;
2556
- void *dest, *src;
2557
- #endif
2558
-
2559
- /*
2560
- * allow base-class (if any) to do conversion
2561
- * If successful, this will jump to finish:
2562
- */
2563
- _WORK@work@
2564
-
2565
- if (!PyArg_ParseTuple(args, "|O", &obj)) {
2566
- return NULL;
2567
- }
2568
- typecode = PyArray_DescrFromType(NPY_@TYPE@);
2569
- if (typecode == NULL) {
2570
- return NULL;
2571
- }
2572
- /*
2573
- * typecode is new reference and stolen by
2574
- * PyArray_FromAny but not PyArray_Scalar
2575
- */
2576
- if (obj == NULL) {
2577
- #if @default@ == 0
2578
- robj = PyArray_Scalar(NULL, typecode, NULL);
2579
- if (robj == NULL) {
2580
- Py_DECREF(typecode);
2581
- return NULL;
2582
- }
2583
- memset(&((Py@Name@ScalarObject *)robj)->obval, 0, sizeof(npy_@name@));
2584
- #elif @default@ == 1
2585
- robj = PyArray_Scalar(NULL, typecode, NULL);
2586
- #elif @default@ == 2
2587
- Py_INCREF(Py_None);
2588
- robj = Py_None;
2589
- #endif
2590
- Py_DECREF(typecode);
2591
- goto finish;
2592
- }
2593
-
2594
- /*
2595
- * It is expected at this point that robj is a PyArrayScalar
2596
- * (even for Object Data Type)
2597
- */
2598
- arr = (PyArrayObject *)PyArray_FromAny(obj, typecode,
2599
- 0, 0, NPY_ARRAY_FORCECAST, NULL);
2600
- if ((arr == NULL) || (PyArray_NDIM(arr) > 0)) {
2601
- return (PyObject *)arr;
2602
- }
2603
- /* 0-d array */
2604
- robj = PyArray_ToScalar(PyArray_DATA(arr), arr);
2605
- Py_DECREF(arr);
2606
-
2607
- finish:
2608
- /*
2609
- * In OBJECT case, robj is no longer a
2610
- * PyArrayScalar at this point but the
2611
- * remaining code assumes it is
2612
- */
2613
- #if @default@ == 2
2614
- return robj;
2615
- #else
2616
- /* Normal return */
2617
- if ((robj == NULL) || (Py_TYPE(robj) == type)) {
2618
- return robj;
2619
- }
2620
-
2621
- /*
2622
- * This return path occurs when the requested type is not created
2623
- * but another scalar object is created instead (i.e. when
2624
- * the base-class does the conversion in _WORK macro)
2625
- */
2626
-
2627
- /* Need to allocate new type and copy data-area over */
2628
- if (type->tp_itemsize) {
2629
- itemsize = PyBytes_GET_SIZE(robj);
2630
- }
2631
- else {
2632
- itemsize = 0;
2633
- }
2634
- obj = type->tp_alloc(type, itemsize);
2635
- if (obj == NULL) {
2636
- Py_DECREF(robj);
2637
- return NULL;
2638
- }
2639
- /* typecode will be NULL */
2640
- typecode = PyArray_DescrFromType(NPY_@TYPE@);
2641
- dest = scalar_value(obj, typecode);
2642
- src = scalar_value(robj, typecode);
2643
- Py_DECREF(typecode);
2644
- #if @default@ == 0
2645
- *((npy_@name@ *)dest) = *((npy_@name@ *)src);
2646
- #elif @default@ == 1 /* unicode and strings */
2647
- if (itemsize == 0) { /* unicode */
2648
- #if PY_VERSION_HEX >= 0x03030000
2649
- itemsize = PyUnicode_GetLength(robj) * PyUnicode_KIND(robj);
2650
- #else
2651
- itemsize = ((PyUnicodeObject *)robj)->length * sizeof(Py_UNICODE);
2652
- #endif
2653
- }
2654
- memcpy(dest, src, itemsize);
2655
- /* @default@ == 2 won't get here */
2656
- #endif
2657
- Py_DECREF(robj);
2658
- return obj;
2659
- #endif
2660
- }
2661
- /**end repeat**/
2662
-
2663
- #undef _WORK1
2664
- #undef _WORKz
2665
- #undef _WORK0
2666
- #undef _WORK
2667
-
2668
- /**begin repeat
2669
- * #name = datetime, timedelta#
2670
- * #Name = Datetime, Timedelta#
2671
- * #NAME = DATETIME, TIMEDELTA#
2672
- * #is_datetime = 1, 0#
2673
- */
2674
-
2675
- static PyObject *
2676
- @name@_arrtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
2677
- {
2678
- PyObject *obj = NULL, *meta_obj = NULL;
2679
- Py@Name@ScalarObject *ret;
2680
-
2681
- if (!PyArg_ParseTuple(args, "|OO", &obj, &meta_obj)) {
2682
- return NULL;
2683
- }
2684
-
2685
- /* Allocate the return scalar */
2686
- ret = (Py@Name@ScalarObject *)Py@Name@ArrType_Type.tp_alloc(
2687
- &Py@Name@ArrType_Type, 0);
2688
- if (ret == NULL) {
2689
- return NULL;
2690
- }
2691
-
2692
- /* Incorporate the metadata if its provided */
2693
- if (meta_obj != NULL) {
2694
- /* Parse the provided metadata input */
2695
- if (convert_pyobject_to_datetime_metadata(meta_obj, &ret->obmeta)
2696
- < 0) {
2697
- Py_DECREF(ret);
2698
- return NULL;
2699
- }
2700
- }
2701
- else {
2702
- /*
2703
- * A unit of -1 signals that convert_pyobject_to_datetime
2704
- * should populate.
2705
- */
2706
- ret->obmeta.base = -1;
2707
- }
2708
-
2709
- if (obj == NULL) {
2710
- if (ret->obmeta.base == -1) {
2711
- ret->obmeta.base = NPY_DATETIME_DEFAULTUNIT;
2712
- ret->obmeta.num = 1;
2713
- }
2714
-
2715
- /* Make datetime default to NaT, timedelta default to zero */
2716
- #if @is_datetime@
2717
- ret->obval = NPY_DATETIME_NAT;
2718
- #else
2719
- ret->obval = 0;
2720
- #endif
2721
- }
2722
- else if (convert_pyobject_to_@name@(&ret->obmeta, obj,
2723
- NPY_SAME_KIND_CASTING, &ret->obval) < 0) {
2724
- Py_DECREF(ret);
2725
- return NULL;
2726
- }
2727
-
2728
- return (PyObject *)ret;
2729
- }
2730
- /**end repeat**/
2731
-
2732
- /* bool->tp_new only returns Py_True or Py_False */
2733
- static PyObject *
2734
- bool_arrtype_new(PyTypeObject *NPY_UNUSED(type), PyObject *args, PyObject *NPY_UNUSED(kwds))
2735
- {
2736
- PyObject *obj = NULL;
2737
- PyArrayObject *arr;
2738
-
2739
- if (!PyArg_ParseTuple(args, "|O", &obj)) {
2740
- return NULL;
2741
- }
2742
- if (obj == NULL) {
2743
- PyArrayScalar_RETURN_FALSE;
2744
- }
2745
- if (obj == Py_False) {
2746
- PyArrayScalar_RETURN_FALSE;
2747
- }
2748
- if (obj == Py_True) {
2749
- PyArrayScalar_RETURN_TRUE;
2750
- }
2751
- arr = (PyArrayObject *)PyArray_FROM_OTF(obj,
2752
- NPY_BOOL, NPY_ARRAY_FORCECAST);
2753
- if (arr && 0 == PyArray_NDIM(arr)) {
2754
- npy_bool val = *((npy_bool *)PyArray_DATA(arr));
2755
- Py_DECREF(arr);
2756
- PyArrayScalar_RETURN_BOOL_FROM_LONG(val);
2757
- }
2758
- return PyArray_Return((PyArrayObject *)arr);
2759
- }
2760
-
2761
- static PyObject *
2762
- bool_arrtype_and(PyObject *a, PyObject *b)
2763
- {
2764
- if (PyArray_IsScalar(a, Bool) && PyArray_IsScalar(b, Bool)) {
2765
- PyArrayScalar_RETURN_BOOL_FROM_LONG
2766
- ((a == PyArrayScalar_True) & (b == PyArrayScalar_True));
2767
- }
2768
- return PyGenericArrType_Type.tp_as_number->nb_and(a, b);
2769
- }
2770
-
2771
- static PyObject *
2772
- bool_arrtype_or(PyObject *a, PyObject *b)
2773
- {
2774
- if (PyArray_IsScalar(a, Bool) && PyArray_IsScalar(b, Bool)) {
2775
- PyArrayScalar_RETURN_BOOL_FROM_LONG
2776
- ((a == PyArrayScalar_True)|(b == PyArrayScalar_True));
2777
- }
2778
- return PyGenericArrType_Type.tp_as_number->nb_or(a, b);
2779
- }
2780
-
2781
- static PyObject *
2782
- bool_arrtype_xor(PyObject *a, PyObject *b)
2783
- {
2784
- if (PyArray_IsScalar(a, Bool) && PyArray_IsScalar(b, Bool)) {
2785
- PyArrayScalar_RETURN_BOOL_FROM_LONG
2786
- ((a == PyArrayScalar_True)^(b == PyArrayScalar_True));
2787
- }
2788
- return PyGenericArrType_Type.tp_as_number->nb_xor(a, b);
2789
- }
2790
-
2791
- static int
2792
- bool_arrtype_nonzero(PyObject *a)
2793
- {
2794
- return a == PyArrayScalar_True;
2795
- }
2796
-
2797
- /**begin repeat
2798
- * #name = byte, short, int, long, ubyte, ushort, longlong, uint,
2799
- * ulong, ulonglong#
2800
- * #Name = Byte, Short, Int, Long, UByte, UShort, LongLong, UInt,
2801
- * ULong, ULongLong#
2802
- * #type = PyInt_FromLong*6, PyLong_FromLongLong*1,
2803
- * PyLong_FromUnsignedLong*2, PyLong_FromUnsignedLongLong#
2804
- */
2805
- static PyNumberMethods @name@_arrtype_as_number;
2806
- static PyObject *
2807
- @name@_index(PyObject *self)
2808
- {
2809
- return @type@(PyArrayScalar_VAL(self, @Name@));
2810
- }
2811
- /**end repeat**/
2812
-
2813
- static PyObject *
2814
- bool_index(PyObject *a)
2815
- {
2816
- return PyInt_FromLong(PyArrayScalar_VAL(a, Bool));
2817
- }
2818
-
2819
- /* Arithmetic methods -- only so we can override &, |, ^. */
2820
- NPY_NO_EXPORT PyNumberMethods bool_arrtype_as_number = {
2821
- 0, /* nb_add */
2822
- 0, /* nb_subtract */
2823
- 0, /* nb_multiply */
2824
- #if defined(NPY_PY3K)
2825
- #else
2826
- 0, /* nb_divide */
2827
- #endif
2828
- 0, /* nb_remainder */
2829
- 0, /* nb_divmod */
2830
- 0, /* nb_power */
2831
- 0, /* nb_negative */
2832
- 0, /* nb_positive */
2833
- 0, /* nb_absolute */
2834
- (inquiry)bool_arrtype_nonzero, /* nb_nonzero / nb_bool */
2835
- 0, /* nb_invert */
2836
- 0, /* nb_lshift */
2837
- 0, /* nb_rshift */
2838
- (binaryfunc)bool_arrtype_and, /* nb_and */
2839
- (binaryfunc)bool_arrtype_xor, /* nb_xor */
2840
- (binaryfunc)bool_arrtype_or, /* nb_or */
2841
- #if defined(NPY_PY3K)
2842
- #else
2843
- 0, /* nb_coerce */
2844
- #endif
2845
- 0, /* nb_int */
2846
- #if defined(NPY_PY3K)
2847
- 0, /* nb_reserved */
2848
- #else
2849
- 0, /* nb_long */
2850
- #endif
2851
- 0, /* nb_float */
2852
- #if defined(NPY_PY3K)
2853
- #else
2854
- 0, /* nb_oct */
2855
- 0, /* nb_hex */
2856
- #endif
2857
- /* Added in release 2.0 */
2858
- 0, /* nb_inplace_add */
2859
- 0, /* nb_inplace_subtract */
2860
- 0, /* nb_inplace_multiply */
2861
- #if defined(NPY_PY3K)
2862
- #else
2863
- 0, /* nb_inplace_divide */
2864
- #endif
2865
- 0, /* nb_inplace_remainder */
2866
- 0, /* nb_inplace_power */
2867
- 0, /* nb_inplace_lshift */
2868
- 0, /* nb_inplace_rshift */
2869
- 0, /* nb_inplace_and */
2870
- 0, /* nb_inplace_xor */
2871
- 0, /* nb_inplace_or */
2872
- /* Added in release 2.2 */
2873
- /* The following require the Py_TPFLAGS_HAVE_CLASS flag */
2874
- 0, /* nb_floor_divide */
2875
- 0, /* nb_true_divide */
2876
- 0, /* nb_inplace_floor_divide */
2877
- 0, /* nb_inplace_true_divide */
2878
- /* Added in release 2.5 */
2879
- 0, /* nb_index */
2880
- };
2881
-
2882
- static PyObject *
2883
- void_arrtype_new(PyTypeObject *type, PyObject *args, PyObject *NPY_UNUSED(kwds))
2884
- {
2885
- PyObject *obj, *arr;
2886
- npy_ulonglong memu = 1;
2887
- PyObject *new = NULL;
2888
- char *destptr;
2889
-
2890
- if (!PyArg_ParseTuple(args, "O", &obj)) {
2891
- return NULL;
2892
- }
2893
- /*
2894
- * For a VOID scalar first see if obj is an integer or long
2895
- * and create new memory of that size (filled with 0) for the scalar
2896
- */
2897
- if (PyLong_Check(obj) || PyInt_Check(obj) ||
2898
- PyArray_IsScalar(obj, Integer) ||
2899
- (PyArray_Check(obj) &&
2900
- PyArray_NDIM((PyArrayObject *)obj)==0 &&
2901
- PyArray_ISINTEGER((PyArrayObject *)obj))) {
2902
- #if defined(NPY_PY3K)
2903
- new = Py_TYPE(obj)->tp_as_number->nb_int(obj);
2904
- #else
2905
- new = Py_TYPE(obj)->tp_as_number->nb_long(obj);
2906
- #endif
2907
- }
2908
- if (new && PyLong_Check(new)) {
2909
- PyObject *ret;
2910
- memu = PyLong_AsUnsignedLongLong(new);
2911
- Py_DECREF(new);
2912
- if (PyErr_Occurred() || (memu > NPY_MAX_INT)) {
2913
- PyErr_Clear();
2914
- PyErr_Format(PyExc_OverflowError,
2915
- "size must be smaller than %d",
2916
- (int) NPY_MAX_INT);
2917
- return NULL;
2918
- }
2919
- destptr = PyDataMem_NEW((int) memu);
2920
- if (destptr == NULL) {
2921
- return PyErr_NoMemory();
2922
- }
2923
- ret = type->tp_alloc(type, 0);
2924
- if (ret == NULL) {
2925
- PyDataMem_FREE(destptr);
2926
- return PyErr_NoMemory();
2927
- }
2928
- ((PyVoidScalarObject *)ret)->obval = destptr;
2929
- Py_SIZE((PyVoidScalarObject *)ret) = (int) memu;
2930
- ((PyVoidScalarObject *)ret)->descr =
2931
- PyArray_DescrNewFromType(NPY_VOID);
2932
- ((PyVoidScalarObject *)ret)->descr->elsize = (int) memu;
2933
- ((PyVoidScalarObject *)ret)->flags = NPY_ARRAY_BEHAVED |
2934
- NPY_ARRAY_OWNDATA;
2935
- ((PyVoidScalarObject *)ret)->base = NULL;
2936
- memset(destptr, '\0', (size_t) memu);
2937
- return ret;
2938
- }
2939
-
2940
- arr = PyArray_FROM_OTF(obj, NPY_VOID, NPY_ARRAY_FORCECAST);
2941
- return PyArray_Return((PyArrayObject *)arr);
2942
- }
2943
-
2944
-
2945
- /**************** Define Hash functions ********************/
2946
-
2947
- /**begin repeat
2948
- * #lname = bool, ubyte, ushort#
2949
- * #name = Bool,UByte, UShort#
2950
- */
2951
- static npy_hash_t
2952
- @lname@_arrtype_hash(PyObject *obj)
2953
- {
2954
- return (npy_hash_t)(((Py@name@ScalarObject *)obj)->obval);
2955
- }
2956
- /**end repeat**/
2957
-
2958
- /**begin repeat
2959
- * #lname = byte, short, uint#
2960
- * #name = Byte, Short, UInt#
2961
- */
2962
- static npy_hash_t
2963
- @lname@_arrtype_hash(PyObject *obj)
2964
- {
2965
- npy_hash_t x = (npy_hash_t)(((Py@name@ScalarObject *)obj)->obval);
2966
- if (x == -1) {
2967
- x = -2;
2968
- }
2969
- return x;
2970
- }
2971
- /**end repeat**/
2972
-
2973
- static npy_hash_t
2974
- ulong_arrtype_hash(PyObject *obj)
2975
- {
2976
- PyObject * l = PyLong_FromUnsignedLong(((PyULongScalarObject*)obj)->obval);
2977
- npy_hash_t x = PyObject_Hash(l);
2978
- Py_DECREF(l);
2979
- return x;
2980
- }
2981
-
2982
- #if (NPY_SIZEOF_INT != NPY_SIZEOF_LONG) || defined(NPY_PY3K)
2983
- static npy_hash_t
2984
- int_arrtype_hash(PyObject *obj)
2985
- {
2986
- npy_hash_t x = (npy_hash_t)(((PyIntScalarObject *)obj)->obval);
2987
- if (x == -1) {
2988
- x = -2;
2989
- }
2990
- return x;
2991
- }
2992
- #endif
2993
-
2994
- #if defined(NPY_PY3K)
2995
- static npy_hash_t
2996
- long_arrtype_hash(PyObject *obj)
2997
- {
2998
- PyObject * l = PyLong_FromLong(((PyLongScalarObject*)obj)->obval);
2999
- npy_hash_t x = PyObject_Hash(l);
3000
- Py_DECREF(l);
3001
- return x;
3002
- }
3003
- #endif
3004
-
3005
- /**begin repeat
3006
- * #char = ,u#
3007
- * #Char = ,U#
3008
- * #Word = ,Unsigned#
3009
- */
3010
- static NPY_INLINE npy_hash_t
3011
- @char@longlong_arrtype_hash(PyObject *obj)
3012
- {
3013
- PyObject * l = PyLong_From@Word@LongLong(
3014
- ((Py@Char@LongLongScalarObject*)obj)->obval);
3015
- npy_hash_t x = PyObject_Hash(l);
3016
- Py_DECREF(l);
3017
- return x;
3018
- }
3019
- /**end repeat**/
3020
-
3021
-
3022
- /**begin repeat
3023
- * #lname = datetime, timedelta#
3024
- * #name = Datetime, Timedelta#
3025
- */
3026
- #if NPY_SIZEOF_HASH_T==NPY_SIZEOF_DATETIME
3027
- static npy_hash_t
3028
- @lname@_arrtype_hash(PyObject *obj)
3029
- {
3030
- npy_hash_t x = (npy_hash_t)(((Py@name@ScalarObject *)obj)->obval);
3031
- if (x == -1) {
3032
- x = -2;
3033
- }
3034
- return x;
3035
- }
3036
- #elif NPY_SIZEOF_LONGLONG==NPY_SIZEOF_DATETIME
3037
- static npy_hash_t
3038
- @lname@_arrtype_hash(PyObject *obj)
3039
- {
3040
- npy_hash_t y;
3041
- npy_longlong x = (((Py@name@ScalarObject *)obj)->obval);
3042
-
3043
- if ((x <= LONG_MAX)) {
3044
- y = (npy_hash_t) x;
3045
- }
3046
- else {
3047
- union Mask {
3048
- long hashvals[2];
3049
- npy_longlong v;
3050
- } both;
3051
-
3052
- both.v = x;
3053
- y = both.hashvals[0] + (1000003)*both.hashvals[1];
3054
- }
3055
- if (y == -1) {
3056
- y = -2;
3057
- }
3058
- return y;
3059
- }
3060
- #endif
3061
- /**end repeat**/
3062
-
3063
-
3064
-
3065
- /* Wrong thing to do for longdouble, but....*/
3066
-
3067
- /**begin repeat
3068
- * #lname = float, longdouble#
3069
- * #name = Float, LongDouble#
3070
- */
3071
- static npy_hash_t
3072
- @lname@_arrtype_hash(PyObject *obj)
3073
- {
3074
- return _Py_HashDouble((double) ((Py@name@ScalarObject *)obj)->obval);
3075
- }
3076
-
3077
- /* borrowed from complex_hash */
3078
- static npy_hash_t
3079
- c@lname@_arrtype_hash(PyObject *obj)
3080
- {
3081
- npy_hash_t hashreal, hashimag, combined;
3082
- hashreal = _Py_HashDouble((double)
3083
- (((PyC@name@ScalarObject *)obj)->obval).real);
3084
-
3085
- if (hashreal == -1) {
3086
- return -1;
3087
- }
3088
- hashimag = _Py_HashDouble((double)
3089
- (((PyC@name@ScalarObject *)obj)->obval).imag);
3090
- if (hashimag == -1) {
3091
- return -1;
3092
- }
3093
- combined = hashreal + 1000003 * hashimag;
3094
- if (combined == -1) {
3095
- combined = -2;
3096
- }
3097
- return combined;
3098
- }
3099
- /**end repeat**/
3100
-
3101
- static npy_hash_t
3102
- half_arrtype_hash(PyObject *obj)
3103
- {
3104
- return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
3105
- }
3106
-
3107
- static npy_hash_t
3108
- object_arrtype_hash(PyObject *obj)
3109
- {
3110
- return PyObject_Hash(((PyObjectScalarObject *)obj)->obval);
3111
- }
3112
-
3113
- /* we used to just hash the pointer */
3114
- /* now use tuplehash algorithm using voidtype_item to get the object
3115
- */
3116
- static npy_hash_t
3117
- void_arrtype_hash(PyObject *obj)
3118
- {
3119
- npy_hash_t x, y;
3120
- Py_ssize_t len, n;
3121
- PyVoidScalarObject *p;
3122
- PyObject *element;
3123
- npy_hash_t mult = 1000003L;
3124
- x = 0x345678L;
3125
- p = (PyVoidScalarObject *)obj;
3126
- /* Cannot hash mutable void scalars */
3127
- if (p->flags & NPY_ARRAY_WRITEABLE) {
3128
- PyErr_SetString(PyExc_TypeError, "unhashable type: 'writeable void-scalar'");
3129
- return -1;
3130
- }
3131
- len = voidtype_length(p);
3132
- for (n=0; n < len; n++) {
3133
- element = voidtype_item(p, n);
3134
- y = PyObject_Hash(element);
3135
- Py_DECREF(element);
3136
- if (y == -1)
3137
- return -1;
3138
- x = (x ^ y) * mult;
3139
- mult += (npy_hash_t)(82520L + len + len);
3140
- }
3141
- x += 97531L;
3142
- if (x == -1)
3143
- x = -2;
3144
- return x;
3145
- }
3146
-
3147
- /*object arrtype getattro and setattro */
3148
- static PyObject *
3149
- object_arrtype_getattro(PyObjectScalarObject *obj, PyObject *attr) {
3150
- PyObject *res;
3151
-
3152
- /* first look in object and then hand off to generic type */
3153
-
3154
- res = PyObject_GenericGetAttr(obj->obval, attr);
3155
- if (res) {
3156
- return res;
3157
- }
3158
- PyErr_Clear();
3159
- return PyObject_GenericGetAttr((PyObject *)obj, attr);
3160
- }
3161
-
3162
- static int
3163
- object_arrtype_setattro(PyObjectScalarObject *obj, PyObject *attr, PyObject *val) {
3164
- int res;
3165
- /* first look in object and then hand off to generic type */
3166
-
3167
- res = PyObject_GenericSetAttr(obj->obval, attr, val);
3168
- if (res >= 0) {
3169
- return res;
3170
- }
3171
- PyErr_Clear();
3172
- return PyObject_GenericSetAttr((PyObject *)obj, attr, val);
3173
- }
3174
-
3175
- static PyObject *
3176
- object_arrtype_concat(PyObjectScalarObject *self, PyObject *other)
3177
- {
3178
- return PySequence_Concat(self->obval, other);
3179
- }
3180
-
3181
- static Py_ssize_t
3182
- object_arrtype_length(PyObjectScalarObject *self)
3183
- {
3184
- return PyObject_Length(self->obval);
3185
- }
3186
-
3187
- static PyObject *
3188
- object_arrtype_repeat(PyObjectScalarObject *self, Py_ssize_t count)
3189
- {
3190
- return PySequence_Repeat(self->obval, count);
3191
- }
3192
-
3193
- static PyObject *
3194
- object_arrtype_subscript(PyObjectScalarObject *self, PyObject *key)
3195
- {
3196
- return PyObject_GetItem(self->obval, key);
3197
- }
3198
-
3199
- static int
3200
- object_arrtype_ass_subscript(PyObjectScalarObject *self, PyObject *key,
3201
- PyObject *value)
3202
- {
3203
- return PyObject_SetItem(self->obval, key, value);
3204
- }
3205
-
3206
- static int
3207
- object_arrtype_contains(PyObjectScalarObject *self, PyObject *ob)
3208
- {
3209
- return PySequence_Contains(self->obval, ob);
3210
- }
3211
-
3212
- static PyObject *
3213
- object_arrtype_inplace_concat(PyObjectScalarObject *self, PyObject *o)
3214
- {
3215
- return PySequence_InPlaceConcat(self->obval, o);
3216
- }
3217
-
3218
- static PyObject *
3219
- object_arrtype_inplace_repeat(PyObjectScalarObject *self, Py_ssize_t count)
3220
- {
3221
- return PySequence_InPlaceRepeat(self->obval, count);
3222
- }
3223
-
3224
- static PySequenceMethods object_arrtype_as_sequence = {
3225
- (lenfunc)object_arrtype_length, /*sq_length*/
3226
- (binaryfunc)object_arrtype_concat, /*sq_concat*/
3227
- (ssizeargfunc)object_arrtype_repeat, /*sq_repeat*/
3228
- 0, /*sq_item*/
3229
- 0, /*sq_slice*/
3230
- 0, /* sq_ass_item */
3231
- 0, /* sq_ass_slice */
3232
- (objobjproc)object_arrtype_contains, /* sq_contains */
3233
- (binaryfunc)object_arrtype_inplace_concat, /* sq_inplace_concat */
3234
- (ssizeargfunc)object_arrtype_inplace_repeat, /* sq_inplace_repeat */
3235
- };
3236
-
3237
- static PyMappingMethods object_arrtype_as_mapping = {
3238
- (lenfunc)object_arrtype_length,
3239
- (binaryfunc)object_arrtype_subscript,
3240
- (objobjargproc)object_arrtype_ass_subscript,
3241
- };
3242
-
3243
- #if !defined(NPY_PY3K)
3244
- static Py_ssize_t
3245
- object_arrtype_getsegcount(PyObjectScalarObject *self, Py_ssize_t *lenp)
3246
- {
3247
- Py_ssize_t newlen;
3248
- int cnt;
3249
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3250
-
3251
- if (pb == NULL ||
3252
- pb->bf_getsegcount == NULL ||
3253
- (cnt = (*pb->bf_getsegcount)(self->obval, &newlen)) != 1) {
3254
- return 0;
3255
- }
3256
- if (lenp) {
3257
- *lenp = newlen;
3258
- }
3259
- return cnt;
3260
- }
3261
-
3262
- static Py_ssize_t
3263
- object_arrtype_getreadbuf(PyObjectScalarObject *self, Py_ssize_t segment, void **ptrptr)
3264
- {
3265
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3266
-
3267
- if (pb == NULL ||
3268
- pb->bf_getreadbuffer == NULL ||
3269
- pb->bf_getsegcount == NULL) {
3270
- PyErr_SetString(PyExc_TypeError,
3271
- "expected a readable buffer object");
3272
- return -1;
3273
- }
3274
- return (*pb->bf_getreadbuffer)(self->obval, segment, ptrptr);
3275
- }
3276
-
3277
- static Py_ssize_t
3278
- object_arrtype_getwritebuf(PyObjectScalarObject *self, Py_ssize_t segment, void **ptrptr)
3279
- {
3280
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3281
-
3282
- if (pb == NULL ||
3283
- pb->bf_getwritebuffer == NULL ||
3284
- pb->bf_getsegcount == NULL) {
3285
- PyErr_SetString(PyExc_TypeError,
3286
- "expected a writeable buffer object");
3287
- return -1;
3288
- }
3289
- return (*pb->bf_getwritebuffer)(self->obval, segment, ptrptr);
3290
- }
3291
-
3292
- static Py_ssize_t
3293
- object_arrtype_getcharbuf(PyObjectScalarObject *self, Py_ssize_t segment,
3294
- constchar **ptrptr)
3295
- {
3296
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3297
-
3298
- if (pb == NULL ||
3299
- pb->bf_getcharbuffer == NULL ||
3300
- pb->bf_getsegcount == NULL) {
3301
- PyErr_SetString(PyExc_TypeError,
3302
- "expected a character buffer object");
3303
- return -1;
3304
- }
3305
- return (*pb->bf_getcharbuffer)(self->obval, segment, ptrptr);
3306
- }
3307
- #endif
3308
-
3309
- static int
3310
- object_arrtype_getbuffer(PyObjectScalarObject *self, Py_buffer *view, int flags)
3311
- {
3312
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3313
- if (pb == NULL || pb->bf_getbuffer == NULL) {
3314
- PyErr_SetString(PyExc_TypeError,
3315
- "expected a readable buffer object");
3316
- return -1;
3317
- }
3318
- return (*pb->bf_getbuffer)(self->obval, view, flags);
3319
- }
3320
-
3321
- static void
3322
- object_arrtype_releasebuffer(PyObjectScalarObject *self, Py_buffer *view)
3323
- {
3324
- PyBufferProcs *pb = Py_TYPE(self->obval)->tp_as_buffer;
3325
- if (pb == NULL) {
3326
- PyErr_SetString(PyExc_TypeError,
3327
- "expected a readable buffer object");
3328
- return;
3329
- }
3330
- if (pb->bf_releasebuffer != NULL) {
3331
- (*pb->bf_releasebuffer)(self->obval, view);
3332
- }
3333
- }
3334
-
3335
- static PyBufferProcs object_arrtype_as_buffer = {
3336
- #if !defined(NPY_PY3K)
3337
- (readbufferproc)object_arrtype_getreadbuf,
3338
- (writebufferproc)object_arrtype_getwritebuf,
3339
- (segcountproc)object_arrtype_getsegcount,
3340
- (charbufferproc)object_arrtype_getcharbuf,
3341
- #endif
3342
- (getbufferproc)object_arrtype_getbuffer,
3343
- (releasebufferproc)object_arrtype_releasebuffer,
3344
- };
3345
-
3346
- static PyObject *
3347
- object_arrtype_call(PyObjectScalarObject *obj, PyObject *args, PyObject *kwds)
3348
- {
3349
- return PyObject_Call(obj->obval, args, kwds);
3350
- }
3351
-
3352
- NPY_NO_EXPORT PyTypeObject PyObjectArrType_Type = {
3353
- #if defined(NPY_PY3K)
3354
- PyVarObject_HEAD_INIT(NULL, 0)
3355
- #else
3356
- PyObject_HEAD_INIT(NULL)
3357
- 0, /* ob_size */
3358
- #endif
3359
- "numpy.object_", /* tp_name*/
3360
- sizeof(PyObjectScalarObject), /* tp_basicsize*/
3361
- 0, /* tp_itemsize */
3362
- (destructor)object_arrtype_dealloc, /* tp_dealloc */
3363
- 0, /* tp_print */
3364
- 0, /* tp_getattr */
3365
- 0, /* tp_setattr */
3366
- #if defined(NPY_PY3K)
3367
- 0, /* tp_reserved */
3368
- #else
3369
- 0, /* tp_compare */
3370
- #endif
3371
- 0, /* tp_repr */
3372
- 0, /* tp_as_number */
3373
- &object_arrtype_as_sequence, /* tp_as_sequence */
3374
- &object_arrtype_as_mapping, /* tp_as_mapping */
3375
- 0, /* tp_hash */
3376
- (ternaryfunc)object_arrtype_call, /* tp_call */
3377
- 0, /* tp_str */
3378
- (getattrofunc)object_arrtype_getattro, /* tp_getattro */
3379
- (setattrofunc)object_arrtype_setattro, /* tp_setattro */
3380
- &object_arrtype_as_buffer, /* tp_as_buffer */
3381
- 0, /* tp_flags */
3382
- 0, /* tp_doc */
3383
- 0, /* tp_traverse */
3384
- 0, /* tp_clear */
3385
- 0, /* tp_richcompare */
3386
- 0, /* tp_weaklistoffset */
3387
- 0, /* tp_iter */
3388
- 0, /* tp_iternext */
3389
- 0, /* tp_methods */
3390
- 0, /* tp_members */
3391
- 0, /* tp_getset */
3392
- 0, /* tp_base */
3393
- 0, /* tp_dict */
3394
- 0, /* tp_descr_get */
3395
- 0, /* tp_descr_set */
3396
- 0, /* tp_dictoffset */
3397
- 0, /* tp_init */
3398
- 0, /* tp_alloc */
3399
- 0, /* tp_new */
3400
- 0, /* tp_free */
3401
- 0, /* tp_is_gc */
3402
- 0, /* tp_bases */
3403
- 0, /* tp_mro */
3404
- 0, /* tp_cache */
3405
- 0, /* tp_subclasses */
3406
- 0, /* tp_weaklist */
3407
- 0, /* tp_del */
3408
- 0, /* tp_version_tag */
3409
- };
3410
-
3411
- static PyObject *
3412
- gen_arrtype_subscript(PyObject *self, PyObject *key)
3413
- {
3414
- /*
3415
- * Only [...], [...,<???>], [<???>, ...],
3416
- * is allowed for indexing a scalar
3417
- *
3418
- * These return a new N-d array with a copy of
3419
- * the data where N is the number of None's in <???>.
3420
- */
3421
- PyObject *res, *ret;
3422
-
3423
- res = PyArray_FromScalar(self, NULL);
3424
-
3425
- ret = array_subscript((PyArrayObject *)res, key);
3426
- Py_DECREF(res);
3427
- if (ret == NULL) {
3428
- PyErr_SetString(PyExc_IndexError,
3429
- "invalid index to scalar variable.");
3430
- }
3431
- return ret;
3432
- }
3433
-
3434
-
3435
- #define NAME_bool "bool"
3436
- #define NAME_void "void"
3437
- #if defined(NPY_PY3K)
3438
- #define NAME_string "bytes"
3439
- #define NAME_unicode "str"
3440
- #else
3441
- #define NAME_string "string"
3442
- #define NAME_unicode "unicode"
3443
- #endif
3444
-
3445
- /**begin repeat
3446
- * #name = bool, string, unicode, void#
3447
- * #NAME = Bool, String, Unicode, Void#
3448
- * #ex = _,_,_,#
3449
- */
3450
- NPY_NO_EXPORT PyTypeObject Py@NAME@ArrType_Type = {
3451
- #if defined(NPY_PY3K)
3452
- PyVarObject_HEAD_INIT(NULL, 0)
3453
- #else
3454
- PyObject_HEAD_INIT(NULL)
3455
- 0, /* ob_size */
3456
- #endif
3457
- "numpy." NAME_@name@ "@ex@", /* tp_name*/
3458
- sizeof(Py@NAME@ScalarObject), /* tp_basicsize*/
3459
- 0, /* tp_itemsize */
3460
- 0, /* tp_dealloc */
3461
- 0, /* tp_print */
3462
- 0, /* tp_getattr */
3463
- 0, /* tp_setattr */
3464
- #if defined(NPY_PY3K)
3465
- 0, /* tp_reserved */
3466
- #else
3467
- 0, /* tp_compare */
3468
- #endif
3469
- 0, /* tp_repr */
3470
- 0, /* tp_as_number */
3471
- 0, /* tp_as_sequence */
3472
- 0, /* tp_as_mapping */
3473
- 0, /* tp_hash */
3474
- 0, /* tp_call */
3475
- 0, /* tp_str */
3476
- 0, /* tp_getattro */
3477
- 0, /* tp_setattro */
3478
- 0, /* tp_as_buffer */
3479
- 0, /* tp_flags */
3480
- 0, /* tp_doc */
3481
- 0, /* tp_traverse */
3482
- 0, /* tp_clear */
3483
- 0, /* tp_richcompare */
3484
- 0, /* tp_weaklistoffset */
3485
- 0, /* tp_iter */
3486
- 0, /* tp_iternext */
3487
- 0, /* tp_methods */
3488
- 0, /* tp_members */
3489
- 0, /* tp_getset */
3490
- 0, /* tp_base */
3491
- 0, /* tp_dict */
3492
- 0, /* tp_descr_get */
3493
- 0, /* tp_descr_set */
3494
- 0, /* tp_dictoffset */
3495
- 0, /* tp_init */
3496
- 0, /* tp_alloc */
3497
- 0, /* tp_new */
3498
- 0, /* tp_free */
3499
- 0, /* tp_is_gc */
3500
- 0, /* tp_bases */
3501
- 0, /* tp_mro */
3502
- 0, /* tp_cache */
3503
- 0, /* tp_subclasses */
3504
- 0, /* tp_weaklist */
3505
- 0, /* tp_del */
3506
- 0, /* tp_version_tag */
3507
- };
3508
- /**end repeat**/
3509
-
3510
- #undef NAME_bool
3511
- #undef NAME_void
3512
- #undef NAME_string
3513
- #undef NAME_unicode
3514
-
3515
- /**begin repeat
3516
- * #NAME = Byte, Short, Int, Long, LongLong, UByte, UShort, UInt, ULong,
3517
- * ULongLong, Half, Float, Double, LongDouble, Datetime, Timedelta#
3518
- * #name = int*5, uint*5, float*4, datetime, timedelta#
3519
- * #CNAME = (CHAR, SHORT, INT, LONG, LONGLONG)*2, HALF, FLOAT, DOUBLE,
3520
- * LONGDOUBLE, DATETIME, TIMEDELTA#
3521
- */
3522
- #if NPY_BITSOF_@CNAME@ == 8
3523
- #define _THIS_SIZE "8"
3524
- #elif NPY_BITSOF_@CNAME@ == 16
3525
- #define _THIS_SIZE "16"
3526
- #elif NPY_BITSOF_@CNAME@ == 32
3527
- #define _THIS_SIZE "32"
3528
- #elif NPY_BITSOF_@CNAME@ == 64
3529
- #define _THIS_SIZE "64"
3530
- #elif NPY_BITSOF_@CNAME@ == 80
3531
- #define _THIS_SIZE "80"
3532
- #elif NPY_BITSOF_@CNAME@ == 96
3533
- #define _THIS_SIZE "96"
3534
- #elif NPY_BITSOF_@CNAME@ == 128
3535
- #define _THIS_SIZE "128"
3536
- #elif NPY_BITSOF_@CNAME@ == 256
3537
- #define _THIS_SIZE "256"
3538
- #endif
3539
- NPY_NO_EXPORT PyTypeObject Py@NAME@ArrType_Type = {
3540
- #if defined(NPY_PY3K)
3541
- PyVarObject_HEAD_INIT(NULL, 0)
3542
- #else
3543
- PyObject_HEAD_INIT(NULL)
3544
- 0, /* ob_size */
3545
- #endif
3546
- "numpy.@name@" _THIS_SIZE, /* tp_name*/
3547
- sizeof(Py@NAME@ScalarObject), /* tp_basicsize*/
3548
- 0, /* tp_itemsize */
3549
- 0, /* tp_dealloc */
3550
- 0, /* tp_print */
3551
- 0, /* tp_getattr */
3552
- 0, /* tp_setattr */
3553
- #if defined(NPY_PY3K)
3554
- 0, /* tp_reserved */
3555
- #else
3556
- 0, /* tp_compare */
3557
- #endif
3558
- 0, /* tp_repr */
3559
- 0, /* tp_as_number */
3560
- 0, /* tp_as_sequence */
3561
- 0, /* tp_as_mapping */
3562
- 0, /* tp_hash */
3563
- 0, /* tp_call */
3564
- 0, /* tp_str */
3565
- 0, /* tp_getattro */
3566
- 0, /* tp_setattro */
3567
- 0, /* tp_as_buffer */
3568
- 0, /* tp_flags */
3569
- 0, /* tp_doc */
3570
- 0, /* tp_traverse */
3571
- 0, /* tp_clear */
3572
- 0, /* tp_richcompare */
3573
- 0, /* tp_weaklistoffset */
3574
- 0, /* tp_iter */
3575
- 0, /* tp_iternext */
3576
- 0, /* tp_methods */
3577
- 0, /* tp_members */
3578
- 0, /* tp_getset */
3579
- 0, /* tp_base */
3580
- 0, /* tp_dict */
3581
- 0, /* tp_descr_get */
3582
- 0, /* tp_descr_set */
3583
- 0, /* tp_dictoffset */
3584
- 0, /* tp_init */
3585
- 0, /* tp_alloc */
3586
- 0, /* tp_new */
3587
- 0, /* tp_free */
3588
- 0, /* tp_is_gc */
3589
- 0, /* tp_bases */
3590
- 0, /* tp_mro */
3591
- 0, /* tp_cache */
3592
- 0, /* tp_subclasses */
3593
- 0, /* tp_weaklist */
3594
- 0, /* tp_del */
3595
- 0, /* tp_version_tag */
3596
- };
3597
-
3598
- #undef _THIS_SIZE
3599
- /**end repeat**/
3600
-
3601
-
3602
- static PyMappingMethods gentype_as_mapping = {
3603
- NULL,
3604
- (binaryfunc)gen_arrtype_subscript,
3605
- NULL
3606
- };
3607
-
3608
-
3609
- /**begin repeat
3610
- * #NAME = CFloat, CDouble, CLongDouble#
3611
- * #name = complex*3#
3612
- * #CNAME = FLOAT, DOUBLE, LONGDOUBLE#
3613
- */
3614
- #if NPY_BITSOF_@CNAME@ == 16
3615
- #define _THIS_SIZE2 "16"
3616
- #define _THIS_SIZE1 "32"
3617
- #elif NPY_BITSOF_@CNAME@ == 32
3618
- #define _THIS_SIZE2 "32"
3619
- #define _THIS_SIZE1 "64"
3620
- #elif NPY_BITSOF_@CNAME@ == 64
3621
- #define _THIS_SIZE2 "64"
3622
- #define _THIS_SIZE1 "128"
3623
- #elif NPY_BITSOF_@CNAME@ == 80
3624
- #define _THIS_SIZE2 "80"
3625
- #define _THIS_SIZE1 "160"
3626
- #elif NPY_BITSOF_@CNAME@ == 96
3627
- #define _THIS_SIZE2 "96"
3628
- #define _THIS_SIZE1 "192"
3629
- #elif NPY_BITSOF_@CNAME@ == 128
3630
- #define _THIS_SIZE2 "128"
3631
- #define _THIS_SIZE1 "256"
3632
- #elif NPY_BITSOF_@CNAME@ == 256
3633
- #define _THIS_SIZE2 "256"
3634
- #define _THIS_SIZE1 "512"
3635
- #endif
3636
-
3637
- #define _THIS_DOC "Composed of two " _THIS_SIZE2 " bit floats"
3638
-
3639
- NPY_NO_EXPORT PyTypeObject Py@NAME@ArrType_Type = {
3640
- #if defined(NPY_PY3K)
3641
- PyVarObject_HEAD_INIT(0, 0)
3642
- #else
3643
- PyObject_HEAD_INIT(0)
3644
- 0, /* ob_size */
3645
- #endif
3646
- "numpy.@name@" _THIS_SIZE1, /* tp_name*/
3647
- sizeof(Py@NAME@ScalarObject), /* tp_basicsize*/
3648
- 0, /* tp_itemsize*/
3649
- 0, /* tp_dealloc*/
3650
- 0, /* tp_print*/
3651
- 0, /* tp_getattr*/
3652
- 0, /* tp_setattr*/
3653
- #if defined(NPY_PY3K)
3654
- 0, /* tp_reserved */
3655
- #else
3656
- 0, /* tp_compare */
3657
- #endif
3658
- 0, /* tp_repr*/
3659
- 0, /* tp_as_number*/
3660
- 0, /* tp_as_sequence*/
3661
- 0, /* tp_as_mapping*/
3662
- 0, /* tp_hash */
3663
- 0, /* tp_call*/
3664
- 0, /* tp_str*/
3665
- 0, /* tp_getattro*/
3666
- 0, /* tp_setattro*/
3667
- 0, /* tp_as_buffer*/
3668
- Py_TPFLAGS_DEFAULT, /* tp_flags*/
3669
- _THIS_DOC, /* tp_doc */
3670
- 0, /* tp_traverse */
3671
- 0, /* tp_clear */
3672
- 0, /* tp_richcompare */
3673
- 0, /* tp_weaklistoffset */
3674
- 0, /* tp_iter */
3675
- 0, /* tp_iternext */
3676
- 0, /* tp_methods */
3677
- 0, /* tp_members */
3678
- 0, /* tp_getset */
3679
- 0, /* tp_base */
3680
- 0, /* tp_dict */
3681
- 0, /* tp_descr_get */
3682
- 0, /* tp_descr_set */
3683
- 0, /* tp_dictoffset */
3684
- 0, /* tp_init */
3685
- 0, /* tp_alloc */
3686
- 0, /* tp_new */
3687
- 0, /* tp_free */
3688
- 0, /* tp_is_gc */
3689
- 0, /* tp_bases */
3690
- 0, /* tp_mro */
3691
- 0, /* tp_cache */
3692
- 0, /* tp_subclasses */
3693
- 0, /* tp_weaklist */
3694
- 0, /* tp_del */
3695
- 0, /* tp_version_tag */
3696
- };
3697
- #undef _THIS_SIZE1
3698
- #undef _THIS_SIZE2
3699
- #undef _THIS_DOC
3700
-
3701
- /**end repeat**/
3702
-
3703
- #ifdef NPY_ENABLE_SEPARATE_COMPILATION
3704
- /*
3705
- * This table maps the built-in type numbers to their scalar
3706
- * type numbers. Note that signed integers are mapped to INTNEG_SCALAR,
3707
- * which is different than what PyArray_ScalarKind returns.
3708
- */
3709
- NPY_NO_EXPORT signed char
3710
- _npy_scalar_kinds_table[NPY_NTYPES];
3711
-
3712
- /*
3713
- * This table maps a scalar kind (excluding NPY_NOSCALAR)
3714
- * to the smallest type number of that kind.
3715
- */
3716
- NPY_NO_EXPORT signed char
3717
- _npy_smallest_type_of_kind_table[NPY_NSCALARKINDS];
3718
-
3719
- /*
3720
- * This table gives the type of the same kind, but next in the sequence
3721
- * of sizes.
3722
- */
3723
- NPY_NO_EXPORT signed char
3724
- _npy_next_larger_type_table[NPY_NTYPES];
3725
-
3726
- /*
3727
- * This table describes safe casting for small type numbers,
3728
- * and is used by PyArray_CanCastSafely.
3729
- */
3730
- NPY_NO_EXPORT unsigned char
3731
- _npy_can_cast_safely_table[NPY_NTYPES][NPY_NTYPES];
3732
-
3733
- /*
3734
- * This table gives the smallest-size and smallest-kind type to which
3735
- * the input types may be safely cast, according to _npy_can_cast_safely.
3736
- */
3737
- NPY_NO_EXPORT signed char
3738
- _npy_type_promotion_table[NPY_NTYPES][NPY_NTYPES];
3739
- #endif
3740
-
3741
- NPY_NO_EXPORT void
3742
- initialize_casting_tables(void)
3743
- {
3744
- int i, j;
3745
-
3746
- _npy_smallest_type_of_kind_table[NPY_BOOL_SCALAR] = NPY_BOOL;
3747
- _npy_smallest_type_of_kind_table[NPY_INTPOS_SCALAR] = NPY_UBYTE;
3748
- _npy_smallest_type_of_kind_table[NPY_INTNEG_SCALAR] = NPY_BYTE;
3749
- _npy_smallest_type_of_kind_table[NPY_FLOAT_SCALAR] = NPY_HALF;
3750
- _npy_smallest_type_of_kind_table[NPY_COMPLEX_SCALAR] = NPY_CFLOAT;
3751
- _npy_smallest_type_of_kind_table[NPY_OBJECT_SCALAR] = NPY_OBJECT;
3752
-
3753
- /* Default for built-in types is object scalar */
3754
- memset(_npy_scalar_kinds_table, NPY_OBJECT_SCALAR,
3755
- sizeof(_npy_scalar_kinds_table));
3756
- /* Default for next largest type is -1, signalling no bigger */
3757
- memset(_npy_next_larger_type_table, -1,
3758
- sizeof(_npy_next_larger_type_table));
3759
-
3760
- /* Compile-time loop of scalar kinds */
3761
-
3762
- /**begin repeat
3763
- * #NAME = BOOL,
3764
- * BYTE, UBYTE, SHORT, USHORT, INT, UINT,
3765
- * LONG, ULONG, LONGLONG, ULONGLONG,
3766
- * HALF, FLOAT, DOUBLE, LONGDOUBLE,
3767
- * CFLOAT, CDOUBLE, CLONGDOUBLE#
3768
- * #BIGGERTYPE = -1,
3769
- * NPY_SHORT, NPY_USHORT, NPY_INT, NPY_UINT, NPY_LONG, NPY_ULONG,
3770
- * NPY_LONGLONG, NPY_ULONGLONG, -1, -1,
3771
- * NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE, -1,
3772
- * NPY_CDOUBLE, NPY_CLONGDOUBLE, -1#
3773
- * #SCKIND = BOOL,
3774
- * (INTNEG, INTPOS)*5,
3775
- * FLOAT*4,
3776
- * COMPLEX*3#
3777
- */
3778
-
3779
- _npy_scalar_kinds_table[NPY_@NAME@] = NPY_@SCKIND@_SCALAR;
3780
- _npy_next_larger_type_table[NPY_@NAME@] = @BIGGERTYPE@;
3781
-
3782
- /**end repeat**/
3783
-
3784
- memset(_npy_can_cast_safely_table, 0, sizeof(_npy_can_cast_safely_table));
3785
-
3786
- for (i = 0; i < NPY_NTYPES; ++i) {
3787
- /* Identity */
3788
- _npy_can_cast_safely_table[i][i] = 1;
3789
- if (i != NPY_DATETIME) {
3790
- /*
3791
- * Bool -> <Anything> except datetime (since
3792
- * it conceptually has no zero)
3793
- */
3794
- _npy_can_cast_safely_table[NPY_BOOL][i] = 1;
3795
- }
3796
- /* <Anything> -> Object */
3797
- _npy_can_cast_safely_table[i][NPY_OBJECT] = 1;
3798
- /* <Anything> -> Void */
3799
- _npy_can_cast_safely_table[i][NPY_VOID] = 1;
3800
- }
3801
-
3802
- _npy_can_cast_safely_table[NPY_STRING][NPY_UNICODE] = 1;
3803
- _npy_can_cast_safely_table[NPY_BOOL][NPY_TIMEDELTA] = 1;
3804
-
3805
- #ifndef NPY_SIZEOF_BYTE
3806
- #define NPY_SIZEOF_BYTE 1
3807
- #endif
3808
-
3809
- /* Compile-time loop of casting rules */
3810
-
3811
- /**begin repeat
3812
- * #FROM_NAME = BYTE, UBYTE, SHORT, USHORT, INT, UINT,
3813
- * LONG, ULONG, LONGLONG, ULONGLONG,
3814
- * HALF, FLOAT, DOUBLE, LONGDOUBLE,
3815
- * CFLOAT, CDOUBLE, CLONGDOUBLE#
3816
- * #FROM_BASENAME = BYTE, BYTE, SHORT, SHORT, INT, INT,
3817
- * LONG, LONG, LONGLONG, LONGLONG,
3818
- * HALF, FLOAT, DOUBLE, LONGDOUBLE,
3819
- * FLOAT, DOUBLE, LONGDOUBLE#
3820
- * #from_isint = 1, 0, 1, 0, 1, 0, 1, 0,
3821
- * 1, 0, 0, 0, 0, 0,
3822
- * 0, 0, 0#
3823
- * #from_isuint = 0, 1, 0, 1, 0, 1, 0, 1,
3824
- * 0, 1, 0, 0, 0, 0,
3825
- * 0, 0, 0#
3826
- * #from_isfloat = 0, 0, 0, 0, 0, 0, 0, 0,
3827
- * 0, 0, 1, 1, 1, 1,
3828
- * 0, 0, 0#
3829
- * #from_iscomplex = 0, 0, 0, 0, 0, 0, 0, 0,
3830
- * 0, 0, 0, 0, 0, 0,
3831
- * 1, 1, 1#
3832
- */
3833
-
3834
- #define _FROM_BSIZE NPY_SIZEOF_@FROM_BASENAME@
3835
- #define _FROM_NUM (NPY_@FROM_NAME@)
3836
-
3837
- _npy_can_cast_safely_table[_FROM_NUM][NPY_STRING] = 1;
3838
- _npy_can_cast_safely_table[_FROM_NUM][NPY_UNICODE] = 1;
3839
-
3840
- /* Allow casts from any integer to the TIMEDELTA type */
3841
- #if @from_isint@ || @from_isuint@
3842
- _npy_can_cast_safely_table[_FROM_NUM][NPY_TIMEDELTA] = 1;
3843
- #endif
3844
-
3845
- /**begin repeat1
3846
- * #TO_NAME = BYTE, UBYTE, SHORT, USHORT, INT, UINT,
3847
- * LONG, ULONG, LONGLONG, ULONGLONG,
3848
- * HALF, FLOAT, DOUBLE, LONGDOUBLE,
3849
- * CFLOAT, CDOUBLE, CLONGDOUBLE#
3850
- * #TO_BASENAME = BYTE, BYTE, SHORT, SHORT, INT, INT,
3851
- * LONG, LONG, LONGLONG, LONGLONG,
3852
- * HALF, FLOAT, DOUBLE, LONGDOUBLE,
3853
- * FLOAT, DOUBLE, LONGDOUBLE#
3854
- * #to_isint = 1, 0, 1, 0, 1, 0, 1, 0,
3855
- * 1, 0, 0, 0, 0, 0,
3856
- * 0, 0, 0#
3857
- * #to_isuint = 0, 1, 0, 1, 0, 1, 0, 1,
3858
- * 0, 1, 0, 0, 0, 0,
3859
- * 0, 0, 0#
3860
- * #to_isfloat = 0, 0, 0, 0, 0, 0, 0, 0,
3861
- * 0, 0, 1, 1, 1, 1,
3862
- * 0, 0, 0#
3863
- * #to_iscomplex = 0, 0, 0, 0, 0, 0, 0, 0,
3864
- * 0, 0, 0, 0, 0, 0,
3865
- * 1, 1, 1#
3866
- */
3867
- #define _TO_BSIZE NPY_SIZEOF_@TO_BASENAME@
3868
- #define _TO_NUM (NPY_@TO_NAME@)
3869
-
3870
- /*
3871
- * NOTE: _FROM_BSIZE and _TO_BSIZE are the sizes of the "base type"
3872
- * which is the same as the size of the type except for
3873
- * complex, where it is the size of the real type.
3874
- */
3875
-
3876
- #if @from_isint@
3877
-
3878
- # if @to_isint@ && (_TO_BSIZE >= _FROM_BSIZE)
3879
- /* int -> int */
3880
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3881
- # elif @to_isfloat@ && (_FROM_BSIZE < 8) && (_TO_BSIZE > _FROM_BSIZE)
3882
- /* int -> float */
3883
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3884
- # elif @to_isfloat@ && (_FROM_BSIZE >= 8) && (_TO_BSIZE >= _FROM_BSIZE)
3885
- /* int -> float */
3886
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3887
- # elif @to_iscomplex@ && (_FROM_BSIZE < 8) && (_TO_BSIZE > _FROM_BSIZE)
3888
- /* int -> complex */
3889
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3890
- # elif @to_iscomplex@ && (_FROM_BSIZE >= 8) && (_TO_BSIZE >= _FROM_BSIZE)
3891
- /* int -> complex */
3892
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3893
- # endif
3894
-
3895
- #elif @from_isuint@
3896
-
3897
- # if @to_isint@ && (_TO_BSIZE > _FROM_BSIZE)
3898
- /* uint -> int */
3899
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3900
- # elif @to_isuint@ && (_TO_BSIZE >= _FROM_BSIZE)
3901
- /* uint -> uint */
3902
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3903
- # elif @to_isfloat@ && (_FROM_BSIZE < 8) && (_TO_BSIZE > _FROM_BSIZE)
3904
- /* uint -> float */
3905
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3906
- # elif @to_isfloat@ && (_FROM_BSIZE >= 8) && (_TO_BSIZE >= _FROM_BSIZE)
3907
- /* uint -> float */
3908
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3909
- # elif @to_iscomplex@ && (_FROM_BSIZE < 8) && (_TO_BSIZE > _FROM_BSIZE)
3910
- /* uint -> complex */
3911
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3912
- # elif @to_iscomplex@ && (_FROM_BSIZE >= 8) && (_TO_BSIZE >= _FROM_BSIZE)
3913
- /* uint -> complex */
3914
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3915
- # endif
3916
-
3917
-
3918
- #elif @from_isfloat@
3919
-
3920
- # if @to_isfloat@ && (_TO_BSIZE >= _FROM_BSIZE)
3921
- /* float -> float */
3922
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3923
- # elif @to_iscomplex@ && (_TO_BSIZE >= _FROM_BSIZE)
3924
- /* float -> complex */
3925
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3926
- # endif
3927
-
3928
- #elif @from_iscomplex@
3929
-
3930
- # if @to_iscomplex@ && (_TO_BSIZE >= _FROM_BSIZE)
3931
- /* complex -> complex */
3932
- _npy_can_cast_safely_table[_FROM_NUM][_TO_NUM] = 1;
3933
- # endif
3934
-
3935
- #endif
3936
-
3937
- #undef _TO_NUM
3938
- #undef _TO_BSIZE
3939
-
3940
- /**end repeat1**/
3941
-
3942
- #undef _FROM_NUM
3943
- #undef _FROM_BSIZE
3944
-
3945
- /**end repeat**/
3946
-
3947
- /*
3948
- * Now that the _can_cast_safely table is finished, we can
3949
- * use it to build the _type_promotion table
3950
- */
3951
- for (i = 0; i < NPY_NTYPES; ++i) {
3952
- _npy_type_promotion_table[i][i] = i;
3953
- /* Don't let number promote to string/unicode/void/datetime/timedelta */
3954
- if (i == NPY_STRING || i == NPY_UNICODE || i == NPY_VOID ||
3955
- i == NPY_DATETIME || i == NPY_TIMEDELTA) {
3956
- /* Promoting these types requires examining their contents */
3957
- _npy_type_promotion_table[i][i] = -1;
3958
- for (j = i + 1; j < NPY_NTYPES; ++j) {
3959
- _npy_type_promotion_table[i][j] = -1;
3960
- _npy_type_promotion_table[j][i] = -1;
3961
- }
3962
- /* Except they can convert to OBJECT */
3963
- _npy_type_promotion_table[i][NPY_OBJECT] = NPY_OBJECT;
3964
- _npy_type_promotion_table[NPY_OBJECT][i] = NPY_OBJECT;
3965
- }
3966
- else {
3967
- for (j = i + 1; j < NPY_NTYPES; ++j) {
3968
- /* Don't let number promote to string/unicode/void */
3969
- if (j == NPY_STRING || j == NPY_UNICODE || j == NPY_VOID) {
3970
- _npy_type_promotion_table[i][j] = -1;
3971
- _npy_type_promotion_table[j][i] = -1;
3972
- }
3973
- else if (_npy_can_cast_safely_table[i][j]) {
3974
- _npy_type_promotion_table[i][j] = j;
3975
- _npy_type_promotion_table[j][i] = j;
3976
- }
3977
- else if (_npy_can_cast_safely_table[j][i]) {
3978
- _npy_type_promotion_table[i][j] = i;
3979
- _npy_type_promotion_table[j][i] = i;
3980
- }
3981
- else {
3982
- int k, iskind, jskind, skind;
3983
- iskind = _npy_scalar_kinds_table[i];
3984
- jskind = _npy_scalar_kinds_table[j];
3985
- /* If there's no kind (void/string/etc) */
3986
- if (iskind == NPY_NOSCALAR || jskind == NPY_NOSCALAR) {
3987
- k = -1;
3988
- }
3989
- else {
3990
- /* Start with the type of larger kind */
3991
- if (iskind > jskind) {
3992
- skind = iskind;
3993
- k = i;
3994
- }
3995
- else {
3996
- skind = jskind;
3997
- k = j;
3998
- }
3999
- for (;;) {
4000
- /* Try the next larger type of this kind */
4001
- k = _npy_next_larger_type_table[k];
4002
-
4003
- /* If there is no larger, try a larger kind */
4004
- if (k < 0) {
4005
- ++skind;
4006
- /* Use -1 to signal no promoted type found */
4007
- if (skind < NPY_NSCALARKINDS) {
4008
- k = _npy_smallest_type_of_kind_table[skind];
4009
- }
4010
- else {
4011
- k = -1;
4012
- break;
4013
- }
4014
- }
4015
-
4016
- if (_npy_can_cast_safely_table[i][k] &&
4017
- _npy_can_cast_safely_table[j][k]) {
4018
- break;
4019
- }
4020
- }
4021
- }
4022
- _npy_type_promotion_table[i][j] = k;
4023
- _npy_type_promotion_table[j][i] = k;
4024
- }
4025
- }
4026
- }
4027
- }
4028
- }
4029
-
4030
-
4031
- static PyNumberMethods longdoubletype_as_number;
4032
- static PyNumberMethods clongdoubletype_as_number;
4033
-
4034
-
4035
- NPY_NO_EXPORT void
4036
- initialize_numeric_types(void)
4037
- {
4038
- PyGenericArrType_Type.tp_dealloc = (destructor)gentype_dealloc;
4039
- PyGenericArrType_Type.tp_as_number = &gentype_as_number;
4040
- PyGenericArrType_Type.tp_as_buffer = &gentype_as_buffer;
4041
- PyGenericArrType_Type.tp_as_mapping = &gentype_as_mapping;
4042
- PyGenericArrType_Type.tp_flags = BASEFLAGS;
4043
- PyGenericArrType_Type.tp_methods = gentype_methods;
4044
- PyGenericArrType_Type.tp_getset = gentype_getsets;
4045
- PyGenericArrType_Type.tp_new = NULL;
4046
- PyGenericArrType_Type.tp_alloc = gentype_alloc;
4047
- PyGenericArrType_Type.tp_free = (freefunc)gentype_free;
4048
- PyGenericArrType_Type.tp_repr = gentype_repr;
4049
- PyGenericArrType_Type.tp_str = gentype_str;
4050
- PyGenericArrType_Type.tp_richcompare = gentype_richcompare;
4051
-
4052
- PyBoolArrType_Type.tp_as_number = &bool_arrtype_as_number;
4053
- /*
4054
- * need to add dummy versions with filled-in nb_index
4055
- * in-order for PyType_Ready to fill in .__index__() method
4056
- */
4057
-
4058
- /**begin repeat
4059
- * #name = byte, short, int, long, longlong, ubyte, ushort,
4060
- * uint, ulong, ulonglong#
4061
- * #NAME = Byte, Short, Int, Long, LongLong, UByte, UShort,
4062
- * UInt, ULong, ULongLong#
4063
- */
4064
- Py@NAME@ArrType_Type.tp_as_number = &@name@_arrtype_as_number;
4065
- Py@NAME@ArrType_Type.tp_as_number->nb_index = (unaryfunc)@name@_index;
4066
-
4067
- /**end repeat**/
4068
- PyBoolArrType_Type.tp_as_number->nb_index = (unaryfunc)bool_index;
4069
-
4070
- PyStringArrType_Type.tp_alloc = NULL;
4071
- PyStringArrType_Type.tp_free = NULL;
4072
-
4073
- PyStringArrType_Type.tp_repr = stringtype_repr;
4074
- PyStringArrType_Type.tp_str = stringtype_str;
4075
-
4076
- PyUnicodeArrType_Type.tp_repr = unicodetype_repr;
4077
- PyUnicodeArrType_Type.tp_str = unicodetype_str;
4078
-
4079
- PyVoidArrType_Type.tp_methods = voidtype_methods;
4080
- PyVoidArrType_Type.tp_getset = voidtype_getsets;
4081
- PyVoidArrType_Type.tp_as_mapping = &voidtype_as_mapping;
4082
- PyVoidArrType_Type.tp_as_sequence = &voidtype_as_sequence;
4083
-
4084
- PyIntegerArrType_Type.tp_getset = inttype_getsets;
4085
-
4086
- /**begin repeat
4087
- * #NAME= Number, Integer, SignedInteger, UnsignedInteger, Inexact,
4088
- * Floating, ComplexFloating, Flexible, Character#
4089
- */
4090
-
4091
- Py@NAME@ArrType_Type.tp_flags = BASEFLAGS;
4092
-
4093
- /**end repeat**/
4094
-
4095
- /**begin repeat
4096
- * #name = bool, byte, short, int, long, longlong, ubyte, ushort, uint,
4097
- * ulong, ulonglong, half, float, double, longdouble, cfloat,
4098
- * cdouble, clongdouble, string, unicode, void, object, datetime,
4099
- * timedelta#
4100
- * #NAME = Bool, Byte, Short, Int, Long, LongLong, UByte, UShort, UInt,
4101
- * ULong, ULongLong, Half, Float, Double, LongDouble, CFloat,
4102
- * CDouble, CLongDouble, String, Unicode, Void, Object, Datetime,
4103
- * Timedelta#
4104
- */
4105
-
4106
- Py@NAME@ArrType_Type.tp_flags = BASEFLAGS;
4107
- Py@NAME@ArrType_Type.tp_new = @name@_arrtype_new;
4108
- Py@NAME@ArrType_Type.tp_richcompare = gentype_richcompare;
4109
-
4110
- /**end repeat**/
4111
-
4112
- /**begin repeat
4113
- * #name = bool, byte, short, ubyte, ushort, uint, ulong, ulonglong,
4114
- * half, float, longdouble, cfloat, clongdouble, void, object,
4115
- * datetime, timedelta#
4116
- * #NAME = Bool, Byte, Short, UByte, UShort, UInt, ULong, ULongLong,
4117
- * Half, Float, LongDouble, CFloat, CLongDouble, Void, Object,
4118
- * Datetime, Timedelta#
4119
- */
4120
-
4121
- Py@NAME@ArrType_Type.tp_hash = @name@_arrtype_hash;
4122
-
4123
- /**end repeat**/
4124
-
4125
- /**begin repeat
4126
- * #name = cfloat, clongdouble#
4127
- * #NAME = CFloat, CLongDouble#
4128
- */
4129
-
4130
- Py@NAME@ArrType_Type.tp_methods = @name@type_methods;
4131
-
4132
- /**end repeat**/
4133
-
4134
- #if (NPY_SIZEOF_INT != NPY_SIZEOF_LONG) || defined(NPY_PY3K)
4135
- /* We won't be inheriting from Python Int type. */
4136
- PyIntArrType_Type.tp_hash = int_arrtype_hash;
4137
- #endif
4138
-
4139
- #if defined(NPY_PY3K)
4140
- /* We won't be inheriting from Python Int type. */
4141
- PyLongArrType_Type.tp_hash = long_arrtype_hash;
4142
- #endif
4143
-
4144
- #if (NPY_SIZEOF_LONG != NPY_SIZEOF_LONGLONG) || defined(NPY_PY3K)
4145
- /* We won't be inheriting from Python Int type. */
4146
- PyLongLongArrType_Type.tp_hash = longlong_arrtype_hash;
4147
- #endif
4148
-
4149
- /**begin repeat
4150
- * #name = repr, str#
4151
- */
4152
-
4153
- PyHalfArrType_Type.tp_@name@ = halftype_@name@;
4154
-
4155
- PyFloatArrType_Type.tp_@name@ = floattype_@name@;
4156
- PyCFloatArrType_Type.tp_@name@ = cfloattype_@name@;
4157
-
4158
- PyDoubleArrType_Type.tp_@name@ = doubletype_@name@;
4159
- PyCDoubleArrType_Type.tp_@name@ = cdoubletype_@name@;
4160
-
4161
- PyDatetimeArrType_Type.tp_@name@ = datetimetype_@name@;
4162
- PyTimedeltaArrType_Type.tp_@name@ = timedeltatype_@name@;
4163
-
4164
- /**end repeat**/
4165
-
4166
- PyHalfArrType_Type.tp_print = halftype_print;
4167
- PyFloatArrType_Type.tp_print = floattype_print;
4168
- PyDoubleArrType_Type.tp_print = doubletype_print;
4169
- PyLongDoubleArrType_Type.tp_print = longdoubletype_print;
4170
-
4171
- PyCFloatArrType_Type.tp_print = cfloattype_print;
4172
- PyCDoubleArrType_Type.tp_print = cdoubletype_print;
4173
- PyCLongDoubleArrType_Type.tp_print = clongdoubletype_print;
4174
-
4175
- /*
4176
- * These need to be coded specially because getitem does not
4177
- * return a normal Python type
4178
- */
4179
- PyLongDoubleArrType_Type.tp_as_number = &longdoubletype_as_number;
4180
- PyCLongDoubleArrType_Type.tp_as_number = &clongdoubletype_as_number;
4181
-
4182
- /**begin repeat
4183
- * #name = int, float, repr, str#
4184
- * #kind = tp_as_number->nb*2, tp*2#
4185
- */
4186
-
4187
- PyLongDoubleArrType_Type.@kind@_@name@ = longdoubletype_@name@;
4188
- PyCLongDoubleArrType_Type.@kind@_@name@ = clongdoubletype_@name@;
4189
-
4190
- /**end repeat**/
4191
-
4192
-
4193
- #if !defined(NPY_PY3K)
4194
- /**begin repeat
4195
- * #name = long, hex, oct#
4196
- * #kind = tp_as_number->nb*3#
4197
- */
4198
-
4199
- PyLongDoubleArrType_Type.@kind@_@name@ = longdoubletype_@name@;
4200
- PyCLongDoubleArrType_Type.@kind@_@name@ = clongdoubletype_@name@;
4201
-
4202
- /**end repeat**/
4203
-
4204
- #endif
4205
-
4206
- PyStringArrType_Type.tp_itemsize = sizeof(char);
4207
- PyVoidArrType_Type.tp_dealloc = (destructor) void_dealloc;
4208
-
4209
- PyArrayIter_Type.tp_iter = PyObject_SelfIter;
4210
- PyArrayMapIter_Type.tp_iter = PyObject_SelfIter;
4211
- }
4212
-
4213
-
4214
- /* the order of this table is important */
4215
- static PyTypeObject *typeobjects[] = {
4216
- &PyBoolArrType_Type,
4217
- &PyByteArrType_Type,
4218
- &PyUByteArrType_Type,
4219
- &PyShortArrType_Type,
4220
- &PyUShortArrType_Type,
4221
- &PyIntArrType_Type,
4222
- &PyUIntArrType_Type,
4223
- &PyLongArrType_Type,
4224
- &PyULongArrType_Type,
4225
- &PyLongLongArrType_Type,
4226
- &PyULongLongArrType_Type,
4227
- &PyFloatArrType_Type,
4228
- &PyDoubleArrType_Type,
4229
- &PyLongDoubleArrType_Type,
4230
- &PyCFloatArrType_Type,
4231
- &PyCDoubleArrType_Type,
4232
- &PyCLongDoubleArrType_Type,
4233
- &PyObjectArrType_Type,
4234
- &PyStringArrType_Type,
4235
- &PyUnicodeArrType_Type,
4236
- &PyVoidArrType_Type,
4237
- &PyDatetimeArrType_Type,
4238
- &PyTimedeltaArrType_Type,
4239
- &PyHalfArrType_Type
4240
- };
4241
-
4242
- NPY_NO_EXPORT int
4243
- _typenum_fromtypeobj(PyObject *type, int user)
4244
- {
4245
- int typenum, i;
4246
-
4247
- typenum = NPY_NOTYPE;
4248
- i = 0;
4249
- while(i < NPY_NTYPES) {
4250
- if (type == (PyObject *)typeobjects[i]) {
4251
- typenum = i;
4252
- break;
4253
- }
4254
- i++;
4255
- }
4256
-
4257
- if (!user) {
4258
- return typenum;
4259
- }
4260
- /* Search any registered types */
4261
- i = 0;
4262
- while (i < NPY_NUMUSERTYPES) {
4263
- if (type == (PyObject *)(userdescrs[i]->typeobj)) {
4264
- typenum = i + NPY_USERDEF;
4265
- break;
4266
- }
4267
- i++;
4268
- }
4269
- return typenum;
4270
- }