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
@@ -0,0 +1,3380 @@
1
+ #define PY_SSIZE_T_CLEAN
2
+ #include <Python.h>
3
+ #include "structmember.h"
4
+
5
+ /*#include <stdio.h>*/
6
+ #define NPY_NO_DEPRECATED_API NPY_API_VERSION
7
+ #define _MULTIARRAYMODULE
8
+ #include "numpy/arrayobject.h"
9
+ #include "arrayobject.h"
10
+
11
+ #include "npy_config.h"
12
+
13
+ #include "npy_pycompat.h"
14
+ #include "npy_import.h"
15
+
16
+ #include "common.h"
17
+ #include "iterators.h"
18
+ #include "mapping.h"
19
+ #include "lowlevel_strided_loops.h"
20
+ #include "item_selection.h"
21
+
22
+
23
+ #define HAS_INTEGER 1
24
+ #define HAS_NEWAXIS 2
25
+ #define HAS_SLICE 4
26
+ #define HAS_ELLIPSIS 8
27
+ /* HAS_FANCY can be mixed with HAS_0D_BOOL, be careful when to use & or == */
28
+ #define HAS_FANCY 16
29
+ #define HAS_BOOL 32
30
+ /* NOTE: Only set if it is neither fancy nor purely integer index! */
31
+ #define HAS_SCALAR_ARRAY 64
32
+ /*
33
+ * Indicate that this is a fancy index that comes from a 0d boolean.
34
+ * This means that the index does not operate along a real axis. The
35
+ * corresponding index type is just HAS_FANCY.
36
+ */
37
+ #define HAS_0D_BOOL (HAS_FANCY | 128)
38
+
39
+
40
+ static int
41
+ _nonzero_indices(PyObject *myBool, PyArrayObject **arrays);
42
+
43
+ /******************************************************************************
44
+ *** IMPLEMENT MAPPING PROTOCOL ***
45
+ *****************************************************************************/
46
+
47
+ NPY_NO_EXPORT Py_ssize_t
48
+ array_length(PyArrayObject *self)
49
+ {
50
+ if (PyArray_NDIM(self) != 0) {
51
+ return PyArray_DIMS(self)[0];
52
+ } else {
53
+ PyErr_SetString(PyExc_TypeError, "len() of unsized object");
54
+ return -1;
55
+ }
56
+ }
57
+
58
+
59
+ /* -------------------------------------------------------------- */
60
+
61
+ /*NUMPY_API
62
+ *
63
+ */
64
+ NPY_NO_EXPORT void
65
+ PyArray_MapIterSwapAxes(PyArrayMapIterObject *mit, PyArrayObject **ret, int getmap)
66
+ {
67
+ PyObject *new;
68
+ int n1, n2, n3, val, bnd;
69
+ int i;
70
+ PyArray_Dims permute;
71
+ npy_intp d[NPY_MAXDIMS];
72
+ PyArrayObject *arr;
73
+
74
+ permute.ptr = d;
75
+ permute.len = mit->nd;
76
+
77
+ /*
78
+ * arr might not have the right number of dimensions
79
+ * and need to be reshaped first by pre-pending ones
80
+ */
81
+ arr = *ret;
82
+ if (PyArray_NDIM(arr) != mit->nd) {
83
+ for (i = 1; i <= PyArray_NDIM(arr); i++) {
84
+ permute.ptr[mit->nd-i] = PyArray_DIMS(arr)[PyArray_NDIM(arr)-i];
85
+ }
86
+ for (i = 0; i < mit->nd-PyArray_NDIM(arr); i++) {
87
+ permute.ptr[i] = 1;
88
+ }
89
+ new = PyArray_Newshape(arr, &permute, NPY_ANYORDER);
90
+ Py_DECREF(arr);
91
+ *ret = (PyArrayObject *)new;
92
+ if (new == NULL) {
93
+ return;
94
+ }
95
+ }
96
+
97
+ /*
98
+ * Setting and getting need to have different permutations.
99
+ * On the get we are permuting the returned object, but on
100
+ * setting we are permuting the object-to-be-set.
101
+ * The set permutation is the inverse of the get permutation.
102
+ */
103
+
104
+ /*
105
+ * For getting the array the tuple for transpose is
106
+ * (n1,...,n1+n2-1,0,...,n1-1,n1+n2,...,n3-1)
107
+ * n1 is the number of dimensions of the broadcast index array
108
+ * n2 is the number of dimensions skipped at the start
109
+ * n3 is the number of dimensions of the result
110
+ */
111
+
112
+ /*
113
+ * For setting the array the tuple for transpose is
114
+ * (n2,...,n1+n2-1,0,...,n2-1,n1+n2,...n3-1)
115
+ */
116
+ n1 = mit->nd_fancy;
117
+ n2 = mit->consec; /* axes to insert at */
118
+ n3 = mit->nd;
119
+
120
+ /* use n1 as the boundary if getting but n2 if setting */
121
+ bnd = getmap ? n1 : n2;
122
+ val = bnd;
123
+ i = 0;
124
+ while (val < n1 + n2) {
125
+ permute.ptr[i++] = val++;
126
+ }
127
+ val = 0;
128
+ while (val < bnd) {
129
+ permute.ptr[i++] = val++;
130
+ }
131
+ val = n1 + n2;
132
+ while (val < n3) {
133
+ permute.ptr[i++] = val++;
134
+ }
135
+ new = PyArray_Transpose(*ret, &permute);
136
+ Py_DECREF(*ret);
137
+ *ret = (PyArrayObject *)new;
138
+ }
139
+
140
+
141
+ /**
142
+ * Prepare an npy_index_object from the python slicing object.
143
+ *
144
+ * This function handles all index preparations with the exception
145
+ * of field access. It fills the array of index_info structs correctly.
146
+ * It already handles the boolean array special case for fancy indexing,
147
+ * i.e. if the index type is boolean, it is exactly one matching boolean
148
+ * array. If the index type is fancy, the boolean array is already
149
+ * converted to integer arrays. There is (as before) no checking of the
150
+ * boolean dimension.
151
+ *
152
+ * Checks everything but the bounds.
153
+ *
154
+ * @param the array being indexed
155
+ * @param the index object
156
+ * @param index info struct being filled (size of NPY_MAXDIMS * 2 + 1)
157
+ * @param number of indices found
158
+ * @param dimension of the indexing result
159
+ * @param dimension of the fancy/advanced indices part
160
+ * @param whether to allow the boolean special case
161
+ *
162
+ * @returns the index_type or -1 on failure and fills the number of indices.
163
+ */
164
+ NPY_NO_EXPORT int
165
+ prepare_index(PyArrayObject *self, PyObject *index,
166
+ npy_index_info *indices,
167
+ int *num, int *ndim, int *out_fancy_ndim, int allow_boolean)
168
+ {
169
+ int new_ndim, fancy_ndim, used_ndim, index_ndim;
170
+ int curr_idx, get_idx;
171
+
172
+ npy_intp i, n;
173
+
174
+ npy_bool make_tuple = 0;
175
+ PyObject *obj = NULL;
176
+ PyArrayObject *arr;
177
+
178
+ int index_type = 0;
179
+ int ellipsis_pos = -1;
180
+
181
+ /*
182
+ * The index might be a multi-dimensional index, but not yet a tuple
183
+ * this makes it a tuple in that case.
184
+ *
185
+ * TODO: Refactor into its own function.
186
+ */
187
+ if (!PyTuple_CheckExact(index)
188
+ /* Next three are just to avoid slow checks */
189
+ #if !defined(NPY_PY3K)
190
+ && (!PyInt_CheckExact(index))
191
+ #else
192
+ && (!PyLong_CheckExact(index))
193
+ #endif
194
+ && (index != Py_None)
195
+ && (!PySlice_Check(index))
196
+ && (!PyArray_Check(index))
197
+ && (PySequence_Check(index))) {
198
+ /*
199
+ * Sequences < NPY_MAXDIMS with any slice objects
200
+ * or newaxis, Ellipsis or other arrays or sequences
201
+ * embedded, are considered equivalent to an indexing
202
+ * tuple. (`a[[[1,2], [3,4]]] == a[[1,2], [3,4]]`)
203
+ */
204
+
205
+ if (PyTuple_Check(index)) {
206
+ /* If it is already a tuple, make it an exact tuple anyway */
207
+ n = 0;
208
+ make_tuple = 1;
209
+ }
210
+ else {
211
+ n = PySequence_Size(index);
212
+ }
213
+ if (n < 0 || n >= NPY_MAXDIMS) {
214
+ n = 0;
215
+ }
216
+ for (i = 0; i < n; i++) {
217
+ PyObject *tmp_obj = PySequence_GetItem(index, i);
218
+ /* if getitem fails (unusual) treat this as a single index */
219
+ if (tmp_obj == NULL) {
220
+ PyErr_Clear();
221
+ make_tuple = 0;
222
+ break;
223
+ }
224
+ if (PyArray_Check(tmp_obj) || PySequence_Check(tmp_obj)
225
+ || PySlice_Check(tmp_obj) || tmp_obj == Py_Ellipsis
226
+ || tmp_obj == Py_None) {
227
+ make_tuple = 1;
228
+ Py_DECREF(tmp_obj);
229
+ break;
230
+ }
231
+ Py_DECREF(tmp_obj);
232
+ }
233
+
234
+ if (make_tuple) {
235
+ /* We want to interpret it as a tuple, so make it one */
236
+ index = PySequence_Tuple(index);
237
+ if (index == NULL) {
238
+ return -1;
239
+ }
240
+ }
241
+ }
242
+
243
+ /* If the index is not a tuple, handle it the same as (index,) */
244
+ if (!PyTuple_CheckExact(index)) {
245
+ obj = index;
246
+ index_ndim = 1;
247
+ }
248
+ else {
249
+ n = PyTuple_GET_SIZE(index);
250
+ if (n > NPY_MAXDIMS * 2) {
251
+ PyErr_SetString(PyExc_IndexError,
252
+ "too many indices for array");
253
+ goto fail;
254
+ }
255
+ index_ndim = (int)n;
256
+ obj = NULL;
257
+ }
258
+
259
+ /*
260
+ * Parse all indices into the `indices` array of index_info structs
261
+ */
262
+ used_ndim = 0;
263
+ new_ndim = 0;
264
+ fancy_ndim = 0;
265
+ get_idx = 0;
266
+ curr_idx = 0;
267
+
268
+ while (get_idx < index_ndim) {
269
+ if (curr_idx > NPY_MAXDIMS * 2) {
270
+ PyErr_SetString(PyExc_IndexError,
271
+ "too many indices for array");
272
+ goto failed_building_indices;
273
+ }
274
+
275
+ /* Check for single index. obj is already set then. */
276
+ if ((curr_idx != 0) || (obj == NULL)) {
277
+ obj = PyTuple_GET_ITEM(index, get_idx++);
278
+ }
279
+ else {
280
+ /* only one loop */
281
+ get_idx += 1;
282
+ }
283
+
284
+ /**** Try the cascade of possible indices ****/
285
+
286
+ /* Index is an ellipsis (`...`) */
287
+ if (obj == Py_Ellipsis) {
288
+ /*
289
+ * If there is more then one Ellipsis, it is replaced. Deprecated,
290
+ * since it is hard to imagine anyone using two Ellipsis and
291
+ * actually planning on all but the first being automatically
292
+ * replaced with a slice.
293
+ */
294
+ if (index_type & HAS_ELLIPSIS) {
295
+ /* 2013-04-14, 1.8 */
296
+ if (DEPRECATE(
297
+ "an index can only have a single Ellipsis (`...`); "
298
+ "replace all but one with slices (`:`).") < 0) {
299
+ goto failed_building_indices;
300
+ }
301
+ index_type |= HAS_SLICE;
302
+
303
+ indices[curr_idx].type = HAS_SLICE;
304
+ indices[curr_idx].object = PySlice_New(NULL, NULL, NULL);
305
+
306
+ if (indices[curr_idx].object == NULL) {
307
+ goto failed_building_indices;
308
+ }
309
+
310
+ used_ndim += 1;
311
+ new_ndim += 1;
312
+ curr_idx += 1;
313
+ continue;
314
+ }
315
+ index_type |= HAS_ELLIPSIS;
316
+
317
+ indices[curr_idx].type = HAS_ELLIPSIS;
318
+ indices[curr_idx].object = NULL;
319
+ /* number of slices it is worth, won't update if it is 0: */
320
+ indices[curr_idx].value = 0;
321
+
322
+ ellipsis_pos = curr_idx;
323
+ /* the used and new ndim will be found later */
324
+ used_ndim += 0;
325
+ new_ndim += 0;
326
+ curr_idx += 1;
327
+ continue;
328
+ }
329
+
330
+ /* Index is np.newaxis/None */
331
+ else if (obj == Py_None) {
332
+ index_type |= HAS_NEWAXIS;
333
+
334
+ indices[curr_idx].type = HAS_NEWAXIS;
335
+ indices[curr_idx].object = NULL;
336
+
337
+ used_ndim += 0;
338
+ new_ndim += 1;
339
+ curr_idx += 1;
340
+ continue;
341
+ }
342
+
343
+ /* Index is a slice object. */
344
+ else if (PySlice_Check(obj)) {
345
+ index_type |= HAS_SLICE;
346
+
347
+ Py_INCREF(obj);
348
+ indices[curr_idx].object = obj;
349
+ indices[curr_idx].type = HAS_SLICE;
350
+ used_ndim += 1;
351
+ new_ndim += 1;
352
+ curr_idx += 1;
353
+ continue;
354
+ }
355
+
356
+ /*
357
+ * Special case to allow 0-d boolean indexing with scalars.
358
+ * Should be removed after boolean as integer deprecation.
359
+ * Since this is always an error if it was not a boolean, we can
360
+ * allow the 0-d special case before the rest.
361
+ */
362
+ else if (PyArray_NDIM(self) != 0) {
363
+ /*
364
+ * Single integer index, there are two cases here.
365
+ * It could be an array, a 0-d array is handled
366
+ * a bit weird however, so need to special case it.
367
+ */
368
+ #if !defined(NPY_PY3K)
369
+ if (PyInt_CheckExact(obj) || !PyArray_Check(obj)) {
370
+ #else
371
+ if (PyLong_CheckExact(obj) || !PyArray_Check(obj)) {
372
+ #endif
373
+ i = PyArray_PyIntAsIntp(obj);
374
+ if ((i == -1) && PyErr_Occurred()) {
375
+ PyErr_Clear();
376
+ }
377
+ else {
378
+ index_type |= HAS_INTEGER;
379
+ indices[curr_idx].object = NULL;
380
+ indices[curr_idx].value = i;
381
+ indices[curr_idx].type = HAS_INTEGER;
382
+ used_ndim += 1;
383
+ new_ndim += 0;
384
+ curr_idx += 1;
385
+ continue;
386
+ }
387
+ }
388
+ }
389
+
390
+ /*
391
+ * At this point, we must have an index array (or array-like).
392
+ * It might still be a (purely) bool special case, a 0-d integer
393
+ * array (an array scalar) or something invalid.
394
+ */
395
+
396
+ if (!PyArray_Check(obj)) {
397
+ PyArrayObject *tmp_arr;
398
+ tmp_arr = (PyArrayObject *)PyArray_FromAny(obj, NULL, 0, 0, 0, NULL);
399
+ if (tmp_arr == NULL) {
400
+ /* TODO: Should maybe replace the error here? */
401
+ goto failed_building_indices;
402
+ }
403
+
404
+ /*
405
+ * For example an empty list can be cast to an integer array,
406
+ * however it will default to a float one.
407
+ */
408
+ if (PyArray_SIZE(tmp_arr) == 0) {
409
+ PyArray_Descr *indtype = PyArray_DescrFromType(NPY_INTP);
410
+
411
+ arr = (PyArrayObject *)PyArray_FromArray(tmp_arr, indtype,
412
+ NPY_ARRAY_FORCECAST);
413
+ Py_DECREF(tmp_arr);
414
+ if (arr == NULL) {
415
+ goto failed_building_indices;
416
+ }
417
+ }
418
+ /*
419
+ * Special case to allow 0-d boolean indexing with
420
+ * scalars. Should be removed after boolean-array
421
+ * like as integer-array like deprecation.
422
+ * (does not cover ufunc.at, because it does not use the
423
+ * boolean special case, but that should not matter...)
424
+ * Since all but strictly boolean indices are invalid,
425
+ * there is no need for any further conversion tries.
426
+ */
427
+ else if (PyArray_NDIM(self) == 0) {
428
+ arr = tmp_arr;
429
+ }
430
+ else {
431
+ /*
432
+ * These Checks can be removed after deprecation, since
433
+ * they should then be either correct already or error out
434
+ * later just like a normal array.
435
+ */
436
+ if (PyArray_ISBOOL(tmp_arr)) {
437
+ /* 2013-04-14, 1.8 */
438
+ if (DEPRECATE_FUTUREWARNING(
439
+ "in the future, boolean array-likes will be "
440
+ "handled as a boolean array index") < 0) {
441
+ Py_DECREF(tmp_arr);
442
+ goto failed_building_indices;
443
+ }
444
+ if (PyArray_NDIM(tmp_arr) == 0) {
445
+ /*
446
+ * Need to raise an error here, since the
447
+ * DeprecationWarning before was not triggered.
448
+ * TODO: A `False` triggers a Deprecation *not* a
449
+ * a FutureWarning.
450
+ */
451
+ PyErr_SetString(PyExc_IndexError,
452
+ "in the future, 0-d boolean arrays will be "
453
+ "interpreted as a valid boolean index");
454
+ Py_DECREF(tmp_arr);
455
+ goto failed_building_indices;
456
+ }
457
+ else {
458
+ arr = tmp_arr;
459
+ }
460
+ }
461
+ /*
462
+ * Note: Down the road, the integers will be cast to intp.
463
+ * The user has to make sure they can be safely cast.
464
+ * If not, we might index wrong instead of an giving
465
+ * an error.
466
+ */
467
+ else if (!PyArray_ISINTEGER(tmp_arr)) {
468
+ if (PyArray_NDIM(tmp_arr) == 0) {
469
+ /* match integer deprecation warning */
470
+ /* 2013-09-25, 1.8 */
471
+ if (DEPRECATE(
472
+ "using a non-integer number instead of an "
473
+ "integer will result in an error in the "
474
+ "future") < 0) {
475
+
476
+ /* The error message raised in the future */
477
+ PyErr_SetString(PyExc_IndexError,
478
+ "only integers, slices (`:`), ellipsis (`...`), "
479
+ "numpy.newaxis (`None`) and integer or boolean "
480
+ "arrays are valid indices");
481
+ Py_DECREF((PyObject *)tmp_arr);
482
+ goto failed_building_indices;
483
+ }
484
+ }
485
+ else {
486
+ /* 2013-09-25, 1.8 */
487
+ if (DEPRECATE(
488
+ "non integer (and non boolean) array-likes "
489
+ "will not be accepted as indices in the "
490
+ "future") < 0) {
491
+
492
+ /* Error message to be raised in the future */
493
+ PyErr_SetString(PyExc_IndexError,
494
+ "non integer (and non boolean) array-likes will "
495
+ "not be accepted as indices in the future");
496
+ Py_DECREF((PyObject *)tmp_arr);
497
+ goto failed_building_indices;
498
+ }
499
+ }
500
+ }
501
+
502
+ arr = (PyArrayObject *)PyArray_FromArray(tmp_arr,
503
+ PyArray_DescrFromType(NPY_INTP),
504
+ NPY_ARRAY_FORCECAST);
505
+
506
+ if (arr == NULL) {
507
+ /* Since this will be removed, handle this later */
508
+ PyErr_Clear();
509
+ arr = tmp_arr;
510
+ }
511
+ else {
512
+ Py_DECREF((PyObject *)tmp_arr);
513
+ }
514
+ }
515
+ }
516
+ else {
517
+ Py_INCREF(obj);
518
+ arr = (PyArrayObject *)obj;
519
+ }
520
+
521
+ /* Check if the array is valid and fill the information */
522
+ if (PyArray_ISBOOL(arr)) {
523
+ /*
524
+ * There are two types of boolean indices (which are equivalent,
525
+ * for the most part though). A single boolean index of matching
526
+ * dimensionality and size is a boolean index.
527
+ * If this is not the case, it is instead expanded into (multiple)
528
+ * integer array indices.
529
+ */
530
+ PyArrayObject *nonzero_result[NPY_MAXDIMS];
531
+
532
+ if ((index_ndim == 1) && allow_boolean) {
533
+ /*
534
+ * If ndim and size match, this can be optimized as a single
535
+ * boolean index. The size check is necessary only to support
536
+ * old non-matching sizes by using fancy indexing instead.
537
+ * The reason for that is that fancy indexing uses nonzero,
538
+ * and only the result of nonzero is checked for legality.
539
+ */
540
+ if ((PyArray_NDIM(arr) == PyArray_NDIM(self))
541
+ && PyArray_SIZE(arr) == PyArray_SIZE(self)) {
542
+
543
+ index_type = HAS_BOOL;
544
+ indices[curr_idx].type = HAS_BOOL;
545
+ indices[curr_idx].object = (PyObject *)arr;
546
+
547
+ /* keep track anyway, just to be complete */
548
+ used_ndim = PyArray_NDIM(self);
549
+ fancy_ndim = PyArray_NDIM(self);
550
+ curr_idx += 1;
551
+ break;
552
+ }
553
+ }
554
+
555
+ if (PyArray_NDIM(arr) == 0) {
556
+ /*
557
+ * TODO, WARNING: This code block cannot be used due to
558
+ * FutureWarnings at this time. So instead
559
+ * just raise an IndexError.
560
+ */
561
+ PyErr_SetString(PyExc_IndexError,
562
+ "in the future, 0-d boolean arrays will be "
563
+ "interpreted as a valid boolean index");
564
+ Py_DECREF((PyObject *)arr);
565
+ goto failed_building_indices;
566
+ /*
567
+ * This can actually be well defined. A new axis is added,
568
+ * but at the same time no axis is "used". So if we have True,
569
+ * we add a new axis (a bit like with np.newaxis). If it is
570
+ * False, we add a new axis, but this axis has 0 entries.
571
+ */
572
+
573
+ index_type |= HAS_FANCY;
574
+ indices[curr_idx].type = HAS_0D_BOOL;
575
+ indices[curr_idx].value = 1;
576
+
577
+ /* TODO: This can't fail, right? Is there a faster way? */
578
+ if (PyObject_IsTrue((PyObject *)arr)) {
579
+ n = 1;
580
+ }
581
+ else {
582
+ n = 0;
583
+ }
584
+ indices[curr_idx].object = PyArray_Zeros(1, &n,
585
+ PyArray_DescrFromType(NPY_INTP), 0);
586
+ Py_DECREF(arr);
587
+
588
+ if (indices[curr_idx].object == NULL) {
589
+ goto failed_building_indices;
590
+ }
591
+
592
+ used_ndim += 0;
593
+ if (fancy_ndim < 1) {
594
+ fancy_ndim = 1;
595
+ }
596
+ curr_idx += 1;
597
+ continue;
598
+ }
599
+
600
+ /* Convert the boolean array into multiple integer ones */
601
+ n = _nonzero_indices((PyObject *)arr, nonzero_result);
602
+ Py_DECREF(arr);
603
+
604
+ if (n < 0) {
605
+ goto failed_building_indices;
606
+ }
607
+
608
+ /* Check that we will not run out of indices to store new ones */
609
+ if (curr_idx + n >= NPY_MAXDIMS * 2) {
610
+ PyErr_SetString(PyExc_IndexError,
611
+ "too many indices for array");
612
+ for (i=0; i < n; i++) {
613
+ Py_DECREF(nonzero_result[i]);
614
+ }
615
+ goto failed_building_indices;
616
+ }
617
+
618
+ /* Add the arrays from the nonzero result to the index */
619
+ index_type |= HAS_FANCY;
620
+ for (i=0; i < n; i++) {
621
+ indices[curr_idx].type = HAS_FANCY;
622
+ indices[curr_idx].value = PyArray_DIM(arr, i);
623
+ indices[curr_idx].object = (PyObject *)nonzero_result[i];
624
+
625
+ used_ndim += 1;
626
+ curr_idx += 1;
627
+ }
628
+
629
+ /* All added indices have 1 dimension */
630
+ if (fancy_ndim < 1) {
631
+ fancy_ndim = 1;
632
+ }
633
+ continue;
634
+ }
635
+
636
+ /* Normal case of an integer array */
637
+ else if (PyArray_ISINTEGER(arr)) {
638
+ if (PyArray_NDIM(arr) == 0) {
639
+ /*
640
+ * A 0-d integer array is an array scalar and can
641
+ * be dealt with the HAS_SCALAR_ARRAY flag.
642
+ * We could handle 0-d arrays early on, but this makes
643
+ * sure that array-likes or odder arrays are always
644
+ * handled right.
645
+ */
646
+ i = PyArray_PyIntAsIntp((PyObject *)arr);
647
+ Py_DECREF(arr);
648
+ if ((i == -1) && PyErr_Occurred()) {
649
+ goto failed_building_indices;
650
+ }
651
+ else {
652
+ index_type |= (HAS_INTEGER | HAS_SCALAR_ARRAY);
653
+ indices[curr_idx].object = NULL;
654
+ indices[curr_idx].value = i;
655
+ indices[curr_idx].type = HAS_INTEGER;
656
+ used_ndim += 1;
657
+ new_ndim += 0;
658
+ curr_idx += 1;
659
+ continue;
660
+ }
661
+ }
662
+
663
+ index_type |= HAS_FANCY;
664
+ indices[curr_idx].type = HAS_FANCY;
665
+ indices[curr_idx].value = -1;
666
+ indices[curr_idx].object = (PyObject *)arr;
667
+
668
+ used_ndim += 1;
669
+ if (fancy_ndim < PyArray_NDIM(arr)) {
670
+ fancy_ndim = PyArray_NDIM(arr);
671
+ }
672
+ curr_idx += 1;
673
+ continue;
674
+ }
675
+
676
+ /*
677
+ * The array does not have a valid type.
678
+ */
679
+ if ((PyObject *)arr == obj) {
680
+ /* The input was an array already */
681
+ PyErr_SetString(PyExc_IndexError,
682
+ "arrays used as indices must be of integer (or boolean) type");
683
+ }
684
+ else {
685
+ /* The input was not an array, so give a general error message */
686
+ PyErr_SetString(PyExc_IndexError,
687
+ "only integers, slices (`:`), ellipsis (`...`), "
688
+ "numpy.newaxis (`None`) and integer or boolean "
689
+ "arrays are valid indices");
690
+ }
691
+ Py_DECREF(arr);
692
+ goto failed_building_indices;
693
+ }
694
+
695
+ /*
696
+ * Compare dimension of the index to the real ndim. this is
697
+ * to find the ellipsis value or append an ellipsis if necessary.
698
+ */
699
+ if (used_ndim < PyArray_NDIM(self)) {
700
+ if (index_type & HAS_ELLIPSIS) {
701
+ indices[ellipsis_pos].value = PyArray_NDIM(self) - used_ndim;
702
+ used_ndim = PyArray_NDIM(self);
703
+ new_ndim += indices[ellipsis_pos].value;
704
+ }
705
+ else {
706
+ /*
707
+ * There is no ellipsis yet, but it is not a full index
708
+ * so we append an ellipsis to the end.
709
+ */
710
+ index_type |= HAS_ELLIPSIS;
711
+ indices[curr_idx].object = NULL;
712
+ indices[curr_idx].type = HAS_ELLIPSIS;
713
+ indices[curr_idx].value = PyArray_NDIM(self) - used_ndim;
714
+ ellipsis_pos = curr_idx;
715
+
716
+ used_ndim = PyArray_NDIM(self);
717
+ new_ndim += indices[curr_idx].value;
718
+ curr_idx += 1;
719
+ }
720
+ }
721
+ else if (used_ndim > PyArray_NDIM(self)) {
722
+ PyErr_SetString(PyExc_IndexError,
723
+ "too many indices for array");
724
+ goto failed_building_indices;
725
+ }
726
+ else if (index_ndim == 0) {
727
+ /*
728
+ * 0-d index into 0-d array, i.e. array[()]
729
+ * We consider this an integer index. Which means it will return
730
+ * the scalar.
731
+ * This makes sense, because then array[...] gives
732
+ * an array and array[()] gives the scalar.
733
+ */
734
+ used_ndim = 0;
735
+ index_type = HAS_INTEGER;
736
+ }
737
+
738
+ /* HAS_SCALAR_ARRAY requires cleaning up the index_type */
739
+ if (index_type & HAS_SCALAR_ARRAY) {
740
+ /* clear as info is unnecessary and makes life harder later */
741
+ if (index_type & HAS_FANCY) {
742
+ index_type -= HAS_SCALAR_ARRAY;
743
+ }
744
+ /* A full integer index sees array scalars as part of itself */
745
+ else if (index_type == (HAS_INTEGER | HAS_SCALAR_ARRAY)) {
746
+ index_type -= HAS_SCALAR_ARRAY;
747
+ }
748
+ }
749
+
750
+ /*
751
+ * At this point indices are all set correctly, no bounds checking
752
+ * has been made and the new array may still have more dimensions
753
+ * than is possible and boolean indexing arrays may have an incorrect shape.
754
+ *
755
+ * Check this now so we do not have to worry about it later.
756
+ * It can happen for fancy indexing or with newaxis.
757
+ * This means broadcasting errors in the case of too many dimensions
758
+ * take less priority.
759
+ */
760
+ if (index_type & (HAS_NEWAXIS | HAS_FANCY)) {
761
+ if (new_ndim + fancy_ndim > NPY_MAXDIMS) {
762
+ PyErr_Format(PyExc_IndexError,
763
+ "number of dimensions must be within [0, %d], "
764
+ "indexing result would have %d",
765
+ NPY_MAXDIMS, (new_ndim + fancy_ndim));
766
+ goto failed_building_indices;
767
+ }
768
+
769
+ /*
770
+ * If we had a fancy index, we may have had a boolean array index.
771
+ * So check if this had the correct shape now that we can find out
772
+ * which axes it acts on.
773
+ */
774
+ used_ndim = 0;
775
+ for (i = 0; i < curr_idx; i++) {
776
+ if ((indices[i].type == HAS_FANCY) && indices[i].value > 0) {
777
+ if (indices[i].value != PyArray_DIM(self, used_ndim)) {
778
+ static PyObject *warning;
779
+
780
+ char err_msg[174];
781
+ PyOS_snprintf(err_msg, sizeof(err_msg),
782
+ "boolean index did not match indexed array along "
783
+ "dimension %d; dimension is %" NPY_INTP_FMT
784
+ " but corresponding boolean dimension is %" NPY_INTP_FMT,
785
+ used_ndim, PyArray_DIM(self, used_ndim),
786
+ indices[i].value);
787
+
788
+ npy_cache_import(
789
+ "numpy", "VisibleDeprecationWarning", &warning);
790
+ if (warning == NULL) {
791
+ goto failed_building_indices;
792
+ }
793
+
794
+ if (PyErr_WarnEx(warning, err_msg, 1) < 0) {
795
+ goto failed_building_indices;
796
+ }
797
+ break;
798
+ }
799
+ }
800
+
801
+ if (indices[i].type == HAS_ELLIPSIS) {
802
+ used_ndim += indices[i].value;
803
+ }
804
+ else if ((indices[i].type == HAS_NEWAXIS) ||
805
+ (indices[i].type == HAS_0D_BOOL)) {
806
+ used_ndim += 0;
807
+ }
808
+ else {
809
+ used_ndim += 1;
810
+ }
811
+ }
812
+ }
813
+
814
+ *num = curr_idx;
815
+ *ndim = new_ndim + fancy_ndim;
816
+ *out_fancy_ndim = fancy_ndim;
817
+
818
+ if (make_tuple) {
819
+ Py_DECREF(index);
820
+ }
821
+
822
+ return index_type;
823
+
824
+ failed_building_indices:
825
+ for (i=0; i < curr_idx; i++) {
826
+ Py_XDECREF(indices[i].object);
827
+ }
828
+ fail:
829
+ if (make_tuple) {
830
+ Py_DECREF(index);
831
+ }
832
+ return -1;
833
+ }
834
+
835
+
836
+ /**
837
+ * Get pointer for an integer index.
838
+ *
839
+ * For a purely integer index, set ptr to the memory address.
840
+ * Returns 0 on success, -1 on failure.
841
+ * The caller must ensure that the index is a full integer
842
+ * one.
843
+ *
844
+ * @param Array being indexed
845
+ * @param result pointer
846
+ * @param parsed index information
847
+ * @param number of indices
848
+ *
849
+ * @return 0 on success -1 on failure
850
+ */
851
+ static int
852
+ get_item_pointer(PyArrayObject *self, char **ptr,
853
+ npy_index_info *indices, int index_num) {
854
+ int i;
855
+ *ptr = PyArray_BYTES(self);
856
+ for (i=0; i < index_num; i++) {
857
+ if ((check_and_adjust_index(&(indices[i].value),
858
+ PyArray_DIMS(self)[i], i, NULL)) < 0) {
859
+ return -1;
860
+ }
861
+ *ptr += PyArray_STRIDE(self, i) * indices[i].value;
862
+ }
863
+ return 0;
864
+ }
865
+
866
+
867
+ /**
868
+ * Get view into an array using all non-array indices.
869
+ *
870
+ * For any index, get a view of the subspace into the original
871
+ * array. If there are no fancy indices, this is the result of
872
+ * the indexing operation.
873
+ * Ensure_array allows to fetch a safe subspace view for advanced
874
+ * indexing.
875
+ *
876
+ * @param Array being indexed
877
+ * @param resulting array (new reference)
878
+ * @param parsed index information
879
+ * @param number of indices
880
+ * @param Whether result should inherit the type from self
881
+ *
882
+ * @return 0 on success -1 on failure
883
+ */
884
+ static int
885
+ get_view_from_index(PyArrayObject *self, PyArrayObject **view,
886
+ npy_index_info *indices, int index_num, int ensure_array) {
887
+ npy_intp new_strides[NPY_MAXDIMS];
888
+ npy_intp new_shape[NPY_MAXDIMS];
889
+ int i, j;
890
+ int new_dim = 0;
891
+ int orig_dim = 0;
892
+ char *data_ptr = PyArray_BYTES(self);
893
+
894
+ /* for slice parsing */
895
+ npy_intp start, stop, step, n_steps;
896
+
897
+ for (i=0; i < index_num; i++) {
898
+ switch (indices[i].type) {
899
+ case HAS_INTEGER:
900
+ if ((check_and_adjust_index(&indices[i].value,
901
+ PyArray_DIMS(self)[orig_dim], orig_dim,
902
+ NULL)) < 0) {
903
+ return -1;
904
+ }
905
+ data_ptr += PyArray_STRIDE(self, orig_dim) * indices[i].value;
906
+
907
+ new_dim += 0;
908
+ orig_dim += 1;
909
+ break;
910
+ case HAS_ELLIPSIS:
911
+ for (j=0; j < indices[i].value; j++) {
912
+ new_strides[new_dim] = PyArray_STRIDE(self, orig_dim);
913
+ new_shape[new_dim] = PyArray_DIMS(self)[orig_dim];
914
+ new_dim += 1;
915
+ orig_dim += 1;
916
+ }
917
+ break;
918
+ case HAS_SLICE:
919
+ if (slice_GetIndices((PySliceObject *)indices[i].object,
920
+ PyArray_DIMS(self)[orig_dim],
921
+ &start, &stop, &step, &n_steps) < 0) {
922
+ if (!PyErr_Occurred()) {
923
+ PyErr_SetString(PyExc_IndexError, "invalid slice");
924
+ }
925
+ return -1;
926
+ }
927
+ if (n_steps <= 0) {
928
+ /* TODO: Always points to start then, could change that */
929
+ n_steps = 0;
930
+ step = 1;
931
+ start = 0;
932
+ }
933
+
934
+ data_ptr += PyArray_STRIDE(self, orig_dim) * start;
935
+ new_strides[new_dim] = PyArray_STRIDE(self, orig_dim) * step;
936
+ new_shape[new_dim] = n_steps;
937
+ new_dim += 1;
938
+ orig_dim += 1;
939
+ break;
940
+ case HAS_NEWAXIS:
941
+ new_strides[new_dim] = 0;
942
+ new_shape[new_dim] = 1;
943
+ new_dim += 1;
944
+ break;
945
+ /* Fancy and 0-d boolean indices are ignored here */
946
+ case HAS_0D_BOOL:
947
+ break;
948
+ default:
949
+ new_dim += 0;
950
+ orig_dim += 1;
951
+ break;
952
+ }
953
+ }
954
+
955
+ /* Create the new view and set the base array */
956
+ Py_INCREF(PyArray_DESCR(self));
957
+ *view = (PyArrayObject *)PyArray_NewFromDescr(
958
+ ensure_array ? &PyArray_Type : Py_TYPE(self),
959
+ PyArray_DESCR(self),
960
+ new_dim, new_shape,
961
+ new_strides, data_ptr,
962
+ PyArray_FLAGS(self),
963
+ ensure_array ? NULL : (PyObject *)self);
964
+ if (*view == NULL) {
965
+ return -1;
966
+ }
967
+
968
+ Py_INCREF(self);
969
+ if (PyArray_SetBaseObject(*view, (PyObject *)self) < 0) {
970
+ Py_DECREF(*view);
971
+ return -1;
972
+ }
973
+
974
+ return 0;
975
+ }
976
+
977
+
978
+ /*
979
+ * Implements boolean indexing. This produces a one-dimensional
980
+ * array which picks out all of the elements of 'self' for which
981
+ * the corresponding element of 'op' is True.
982
+ *
983
+ * This operation is somewhat unfortunate, because to produce
984
+ * a one-dimensional output array, it has to choose a particular
985
+ * iteration order, in the case of NumPy that is always C order even
986
+ * though this function allows different choices.
987
+ */
988
+ NPY_NO_EXPORT PyArrayObject *
989
+ array_boolean_subscript(PyArrayObject *self,
990
+ PyArrayObject *bmask, NPY_ORDER order)
991
+ {
992
+ npy_intp size, itemsize;
993
+ char *ret_data;
994
+ PyArray_Descr *dtype;
995
+ PyArrayObject *ret;
996
+ int needs_api = 0;
997
+
998
+ size = count_boolean_trues(PyArray_NDIM(bmask), PyArray_DATA(bmask),
999
+ PyArray_DIMS(bmask), PyArray_STRIDES(bmask));
1000
+
1001
+ /* Allocate the output of the boolean indexing */
1002
+ dtype = PyArray_DESCR(self);
1003
+ Py_INCREF(dtype);
1004
+ ret = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type, dtype, 1, &size,
1005
+ NULL, NULL, 0, NULL);
1006
+ if (ret == NULL) {
1007
+ return NULL;
1008
+ }
1009
+
1010
+ itemsize = dtype->elsize;
1011
+ ret_data = PyArray_DATA(ret);
1012
+
1013
+ /* Create an iterator for the data */
1014
+ if (size > 0) {
1015
+ NpyIter *iter;
1016
+ PyArrayObject *op[2] = {self, bmask};
1017
+ npy_uint32 flags, op_flags[2];
1018
+ npy_intp fixed_strides[3];
1019
+ PyArray_StridedUnaryOp *stransfer = NULL;
1020
+ NpyAuxData *transferdata = NULL;
1021
+
1022
+ NpyIter_IterNextFunc *iternext;
1023
+ npy_intp innersize, *innerstrides;
1024
+ char **dataptrs;
1025
+
1026
+ npy_intp self_stride, bmask_stride, subloopsize;
1027
+ char *self_data;
1028
+ char *bmask_data;
1029
+ NPY_BEGIN_THREADS_DEF;
1030
+
1031
+ /* Set up the iterator */
1032
+ flags = NPY_ITER_EXTERNAL_LOOP | NPY_ITER_REFS_OK;
1033
+ op_flags[0] = NPY_ITER_READONLY | NPY_ITER_NO_BROADCAST;
1034
+ op_flags[1] = NPY_ITER_READONLY;
1035
+
1036
+ iter = NpyIter_MultiNew(2, op, flags, order, NPY_NO_CASTING,
1037
+ op_flags, NULL);
1038
+ if (iter == NULL) {
1039
+ Py_DECREF(ret);
1040
+ return NULL;
1041
+ }
1042
+
1043
+ /* Get a dtype transfer function */
1044
+ NpyIter_GetInnerFixedStrideArray(iter, fixed_strides);
1045
+ if (PyArray_GetDTypeTransferFunction(PyArray_ISALIGNED(self),
1046
+ fixed_strides[0], itemsize,
1047
+ dtype, dtype,
1048
+ 0,
1049
+ &stransfer, &transferdata,
1050
+ &needs_api) != NPY_SUCCEED) {
1051
+ Py_DECREF(ret);
1052
+ NpyIter_Deallocate(iter);
1053
+ return NULL;
1054
+ }
1055
+
1056
+ /* Get the values needed for the inner loop */
1057
+ iternext = NpyIter_GetIterNext(iter, NULL);
1058
+ if (iternext == NULL) {
1059
+ Py_DECREF(ret);
1060
+ NpyIter_Deallocate(iter);
1061
+ NPY_AUXDATA_FREE(transferdata);
1062
+ return NULL;
1063
+ }
1064
+
1065
+ NPY_BEGIN_THREADS_NDITER(iter);
1066
+
1067
+ innerstrides = NpyIter_GetInnerStrideArray(iter);
1068
+ dataptrs = NpyIter_GetDataPtrArray(iter);
1069
+
1070
+ self_stride = innerstrides[0];
1071
+ bmask_stride = innerstrides[1];
1072
+ do {
1073
+ innersize = *NpyIter_GetInnerLoopSizePtr(iter);
1074
+ self_data = dataptrs[0];
1075
+ bmask_data = dataptrs[1];
1076
+
1077
+ while (innersize > 0) {
1078
+ /* Skip masked values */
1079
+ bmask_data = npy_memchr(bmask_data, 0, bmask_stride,
1080
+ innersize, &subloopsize, 1);
1081
+ innersize -= subloopsize;
1082
+ self_data += subloopsize * self_stride;
1083
+ /* Process unmasked values */
1084
+ bmask_data = npy_memchr(bmask_data, 0, bmask_stride, innersize,
1085
+ &subloopsize, 0);
1086
+ stransfer(ret_data, itemsize, self_data, self_stride,
1087
+ subloopsize, itemsize, transferdata);
1088
+ innersize -= subloopsize;
1089
+ self_data += subloopsize * self_stride;
1090
+ ret_data += subloopsize * itemsize;
1091
+ }
1092
+ } while (iternext(iter));
1093
+
1094
+ NPY_END_THREADS;
1095
+
1096
+ NpyIter_Deallocate(iter);
1097
+ NPY_AUXDATA_FREE(transferdata);
1098
+ }
1099
+
1100
+ if (!PyArray_CheckExact(self)) {
1101
+ PyArrayObject *tmp = ret;
1102
+
1103
+ Py_INCREF(dtype);
1104
+ ret = (PyArrayObject *)PyArray_NewFromDescr(Py_TYPE(self), dtype, 1,
1105
+ &size, PyArray_STRIDES(ret), PyArray_BYTES(ret),
1106
+ PyArray_FLAGS(self), (PyObject *)self);
1107
+
1108
+ if (ret == NULL) {
1109
+ Py_DECREF(tmp);
1110
+ return NULL;
1111
+ }
1112
+
1113
+ if (PyArray_SetBaseObject(ret, (PyObject *)tmp) < 0) {
1114
+ Py_DECREF(ret);
1115
+ return NULL;
1116
+ }
1117
+ }
1118
+
1119
+ return ret;
1120
+ }
1121
+
1122
+ /*
1123
+ * Implements boolean indexing assignment. This takes the one-dimensional
1124
+ * array 'v' and assigns its values to all of the elements of 'self' for which
1125
+ * the corresponding element of 'op' is True.
1126
+ *
1127
+ * This operation is somewhat unfortunate, because to match up with
1128
+ * a one-dimensional output array, it has to choose a particular
1129
+ * iteration order, in the case of NumPy that is always C order even
1130
+ * though this function allows different choices.
1131
+ *
1132
+ * Returns 0 on success, -1 on failure.
1133
+ */
1134
+ NPY_NO_EXPORT int
1135
+ array_assign_boolean_subscript(PyArrayObject *self,
1136
+ PyArrayObject *bmask, PyArrayObject *v, NPY_ORDER order)
1137
+ {
1138
+ npy_intp size, src_itemsize, v_stride;
1139
+ char *v_data;
1140
+ int needs_api = 0;
1141
+ npy_intp bmask_size;
1142
+
1143
+ if (PyArray_DESCR(bmask)->type_num != NPY_BOOL) {
1144
+ PyErr_SetString(PyExc_TypeError,
1145
+ "NumPy boolean array indexing assignment "
1146
+ "requires a boolean index");
1147
+ return -1;
1148
+ }
1149
+
1150
+ if (PyArray_NDIM(v) > 1) {
1151
+ PyErr_Format(PyExc_TypeError,
1152
+ "NumPy boolean array indexing assignment "
1153
+ "requires a 0 or 1-dimensional input, input "
1154
+ "has %d dimensions", PyArray_NDIM(v));
1155
+ return -1;
1156
+ }
1157
+
1158
+ if (PyArray_NDIM(bmask) != PyArray_NDIM(self)) {
1159
+ PyErr_SetString(PyExc_ValueError,
1160
+ "The boolean mask assignment indexing array "
1161
+ "must have the same number of dimensions as "
1162
+ "the array being indexed");
1163
+ return -1;
1164
+ }
1165
+
1166
+ size = count_boolean_trues(PyArray_NDIM(bmask), PyArray_DATA(bmask),
1167
+ PyArray_DIMS(bmask), PyArray_STRIDES(bmask));
1168
+ /* Correction factor for broadcasting 'bmask' to 'self' */
1169
+ bmask_size = PyArray_SIZE(bmask);
1170
+ if (bmask_size > 0) {
1171
+ size *= PyArray_SIZE(self) / bmask_size;
1172
+ }
1173
+
1174
+ /* Tweak the strides for 0-dim and broadcasting cases */
1175
+ if (PyArray_NDIM(v) > 0 && PyArray_DIMS(v)[0] != 1) {
1176
+ if (size != PyArray_DIMS(v)[0]) {
1177
+ PyErr_Format(PyExc_ValueError,
1178
+ "NumPy boolean array indexing assignment "
1179
+ "cannot assign %d input values to "
1180
+ "the %d output values where the mask is true",
1181
+ (int)PyArray_DIMS(v)[0], (int)size);
1182
+ return -1;
1183
+ }
1184
+ v_stride = PyArray_STRIDES(v)[0];
1185
+ }
1186
+ else {
1187
+ v_stride = 0;
1188
+ }
1189
+
1190
+ src_itemsize = PyArray_DESCR(v)->elsize;
1191
+ v_data = PyArray_DATA(v);
1192
+
1193
+ /* Create an iterator for the data */
1194
+ if (size > 0) {
1195
+ NpyIter *iter;
1196
+ PyArrayObject *op[2] = {self, bmask};
1197
+ npy_uint32 flags, op_flags[2];
1198
+ npy_intp fixed_strides[3];
1199
+
1200
+ NpyIter_IterNextFunc *iternext;
1201
+ npy_intp innersize, *innerstrides;
1202
+ char **dataptrs;
1203
+
1204
+ PyArray_StridedUnaryOp *stransfer = NULL;
1205
+ NpyAuxData *transferdata = NULL;
1206
+ npy_intp self_stride, bmask_stride, subloopsize;
1207
+ char *self_data;
1208
+ char *bmask_data;
1209
+ NPY_BEGIN_THREADS_DEF;
1210
+
1211
+ /* Set up the iterator */
1212
+ flags = NPY_ITER_EXTERNAL_LOOP | NPY_ITER_REFS_OK;
1213
+ op_flags[0] = NPY_ITER_WRITEONLY | NPY_ITER_NO_BROADCAST;
1214
+ op_flags[1] = NPY_ITER_READONLY;
1215
+
1216
+ iter = NpyIter_MultiNew(2, op, flags, order, NPY_NO_CASTING,
1217
+ op_flags, NULL);
1218
+ if (iter == NULL) {
1219
+ return -1;
1220
+ }
1221
+
1222
+ /* Get the values needed for the inner loop */
1223
+ iternext = NpyIter_GetIterNext(iter, NULL);
1224
+ if (iternext == NULL) {
1225
+ NpyIter_Deallocate(iter);
1226
+ return -1;
1227
+ }
1228
+
1229
+ innerstrides = NpyIter_GetInnerStrideArray(iter);
1230
+ dataptrs = NpyIter_GetDataPtrArray(iter);
1231
+
1232
+ self_stride = innerstrides[0];
1233
+ bmask_stride = innerstrides[1];
1234
+
1235
+ /* Get a dtype transfer function */
1236
+ NpyIter_GetInnerFixedStrideArray(iter, fixed_strides);
1237
+ if (PyArray_GetDTypeTransferFunction(
1238
+ PyArray_ISALIGNED(self) && PyArray_ISALIGNED(v),
1239
+ v_stride, fixed_strides[0],
1240
+ PyArray_DESCR(v), PyArray_DESCR(self),
1241
+ 0,
1242
+ &stransfer, &transferdata,
1243
+ &needs_api) != NPY_SUCCEED) {
1244
+ NpyIter_Deallocate(iter);
1245
+ return -1;
1246
+ }
1247
+
1248
+ NPY_BEGIN_THREADS_NDITER(iter);
1249
+
1250
+ do {
1251
+ innersize = *NpyIter_GetInnerLoopSizePtr(iter);
1252
+ self_data = dataptrs[0];
1253
+ bmask_data = dataptrs[1];
1254
+
1255
+ while (innersize > 0) {
1256
+ /* Skip masked values */
1257
+ bmask_data = npy_memchr(bmask_data, 0, bmask_stride,
1258
+ innersize, &subloopsize, 1);
1259
+ innersize -= subloopsize;
1260
+ self_data += subloopsize * self_stride;
1261
+ /* Process unmasked values */
1262
+ bmask_data = npy_memchr(bmask_data, 0, bmask_stride, innersize,
1263
+ &subloopsize, 0);
1264
+ stransfer(self_data, self_stride, v_data, v_stride,
1265
+ subloopsize, src_itemsize, transferdata);
1266
+ innersize -= subloopsize;
1267
+ self_data += subloopsize * self_stride;
1268
+ v_data += subloopsize * v_stride;
1269
+ }
1270
+ } while (iternext(iter));
1271
+
1272
+ NPY_END_THREADS;
1273
+
1274
+ NPY_AUXDATA_FREE(transferdata);
1275
+ NpyIter_Deallocate(iter);
1276
+ }
1277
+
1278
+ if (needs_api) {
1279
+ /*
1280
+ * FIXME?: most assignment operations stop after the first occurrence
1281
+ * of an error. Boolean does not currently, but should at least
1282
+ * report the error. (This is only relevant for things like str->int
1283
+ * casts which call into python)
1284
+ */
1285
+ if (PyErr_Occurred()) {
1286
+ return -1;
1287
+ }
1288
+ }
1289
+
1290
+ return 0;
1291
+ }
1292
+
1293
+
1294
+ /*
1295
+ * C-level integer indexing always returning an array and never a scalar.
1296
+ * Works also for subclasses, but it will not be called on one from the
1297
+ * Python API.
1298
+ *
1299
+ * This function does not accept negative indices because it is called by
1300
+ * PySequence_GetItem (through array_item) and that converts them to
1301
+ * positive indices.
1302
+ */
1303
+ NPY_NO_EXPORT PyObject *
1304
+ array_item_asarray(PyArrayObject *self, npy_intp i)
1305
+ {
1306
+ npy_index_info indices[2];
1307
+ PyObject *result;
1308
+
1309
+ if (PyArray_NDIM(self) == 0) {
1310
+ PyErr_SetString(PyExc_IndexError,
1311
+ "too many indices for array");
1312
+ return NULL;
1313
+ }
1314
+ if (i < 0) {
1315
+ /* This is an error, but undo PySequence_GetItem fix for message */
1316
+ i -= PyArray_DIM(self, 0);
1317
+ }
1318
+
1319
+ indices[0].value = i;
1320
+ indices[0].type = HAS_INTEGER;
1321
+ indices[1].value = PyArray_NDIM(self) - 1;
1322
+ indices[1].type = HAS_ELLIPSIS;
1323
+ if (get_view_from_index(self, (PyArrayObject **)&result,
1324
+ indices, 2, 0) < 0) {
1325
+ return NULL;
1326
+ }
1327
+ return result;
1328
+ }
1329
+
1330
+
1331
+ /*
1332
+ * Python C-Api level item subscription (implementation for PySequence_GetItem)
1333
+ *
1334
+ * Negative indices are not accepted because PySequence_GetItem converts
1335
+ * them to positive indices before calling this.
1336
+ */
1337
+ NPY_NO_EXPORT PyObject *
1338
+ array_item(PyArrayObject *self, Py_ssize_t i)
1339
+ {
1340
+ if (PyArray_NDIM(self) == 1) {
1341
+ char *item;
1342
+ npy_index_info index;
1343
+
1344
+ if (i < 0) {
1345
+ /* This is an error, but undo PySequence_GetItem fix for message */
1346
+ i -= PyArray_DIM(self, 0);
1347
+ }
1348
+
1349
+ index.value = i;
1350
+ index.type = HAS_INTEGER;
1351
+ if (get_item_pointer(self, &item, &index, 1) < 0) {
1352
+ return NULL;
1353
+ }
1354
+ return PyArray_Scalar(item, PyArray_DESCR(self), (PyObject *)self);
1355
+ }
1356
+ else {
1357
+ return array_item_asarray(self, i);
1358
+ }
1359
+ }
1360
+
1361
+
1362
+ /* make sure subscript always returns an array object */
1363
+ NPY_NO_EXPORT PyObject *
1364
+ array_subscript_asarray(PyArrayObject *self, PyObject *op)
1365
+ {
1366
+ return PyArray_EnsureAnyArray(array_subscript(self, op));
1367
+ }
1368
+
1369
+ NPY_NO_EXPORT int
1370
+ obj_is_string_or_stringlist(PyObject *op)
1371
+ {
1372
+ #if defined(NPY_PY3K)
1373
+ if (PyUnicode_Check(op)) {
1374
+ #else
1375
+ if (PyString_Check(op) || PyUnicode_Check(op)) {
1376
+ #endif
1377
+ return 1;
1378
+ }
1379
+ else if (PySequence_Check(op) && !PyTuple_Check(op)) {
1380
+ int seqlen, i;
1381
+ PyObject *obj = NULL;
1382
+ seqlen = PySequence_Size(op);
1383
+
1384
+ /* quit if we come across a 0-d array (seqlen==-1) or a 0-len array */
1385
+ if (seqlen == -1) {
1386
+ PyErr_Clear();
1387
+ return 0;
1388
+ }
1389
+ if (seqlen == 0) {
1390
+ return 0;
1391
+ }
1392
+
1393
+ for (i = 0; i < seqlen; i++) {
1394
+ obj = PySequence_GetItem(op, i);
1395
+ if (obj == NULL) {
1396
+ /* only happens for strange sequence objects. Silently fail */
1397
+ PyErr_Clear();
1398
+ return 0;
1399
+ }
1400
+
1401
+ #if defined(NPY_PY3K)
1402
+ if (!PyUnicode_Check(obj)) {
1403
+ #else
1404
+ if (!PyString_Check(obj) && !PyUnicode_Check(obj)) {
1405
+ #endif
1406
+ Py_DECREF(obj);
1407
+ return 0;
1408
+ }
1409
+ Py_DECREF(obj);
1410
+ }
1411
+ return 1;
1412
+ }
1413
+ return 0;
1414
+ }
1415
+
1416
+ /*
1417
+ * General function for indexing a NumPy array with a Python object.
1418
+ */
1419
+ NPY_NO_EXPORT PyObject *
1420
+ array_subscript(PyArrayObject *self, PyObject *op)
1421
+ {
1422
+ int index_type;
1423
+ int index_num;
1424
+ int i, ndim, fancy_ndim;
1425
+ /*
1426
+ * Index info array. We can have twice as many indices as dimensions
1427
+ * (because of None). The + 1 is to not need to check as much.
1428
+ */
1429
+ npy_index_info indices[NPY_MAXDIMS * 2 + 1];
1430
+
1431
+ PyArrayObject *view = NULL;
1432
+ PyObject *result = NULL;
1433
+
1434
+ PyArrayMapIterObject * mit = NULL;
1435
+
1436
+ /* return fields if op is a string index */
1437
+ if (PyDataType_HASFIELDS(PyArray_DESCR(self)) &&
1438
+ obj_is_string_or_stringlist(op)) {
1439
+ PyObject *obj;
1440
+ static PyObject *indexfunc = NULL;
1441
+ npy_cache_import("numpy.core._internal", "_index_fields", &indexfunc);
1442
+ if (indexfunc == NULL) {
1443
+ return NULL;
1444
+ }
1445
+
1446
+ obj = PyObject_CallFunction(indexfunc, "OO", self, op);
1447
+ if (obj == NULL) {
1448
+ return NULL;
1449
+ }
1450
+
1451
+ /* warn if writing to a copy. copies will have no base */
1452
+ if (PyArray_BASE((PyArrayObject*)obj) == NULL) {
1453
+ PyArray_ENABLEFLAGS((PyArrayObject*)obj, NPY_ARRAY_WARN_ON_WRITE);
1454
+ }
1455
+ return obj;
1456
+ }
1457
+
1458
+ /* Prepare the indices */
1459
+ index_type = prepare_index(self, op, indices, &index_num,
1460
+ &ndim, &fancy_ndim, 1);
1461
+
1462
+ if (index_type < 0) {
1463
+ return NULL;
1464
+ }
1465
+
1466
+ /* Full integer index */
1467
+ else if (index_type == HAS_INTEGER) {
1468
+ char *item;
1469
+ if (get_item_pointer(self, &item, indices, index_num) < 0) {
1470
+ goto finish;
1471
+ }
1472
+ result = (PyObject *) PyArray_Scalar(item, PyArray_DESCR(self),
1473
+ (PyObject *)self);
1474
+ /* Because the index is full integer, we do not need to decref */
1475
+ return result;
1476
+ }
1477
+
1478
+ /* Single boolean array */
1479
+ else if (index_type == HAS_BOOL) {
1480
+ result = (PyObject *)array_boolean_subscript(self,
1481
+ (PyArrayObject *)indices[0].object,
1482
+ NPY_CORDER);
1483
+ goto finish;
1484
+ }
1485
+
1486
+ /* If it is only a single ellipsis, just return a view */
1487
+ else if (index_type == HAS_ELLIPSIS) {
1488
+ /*
1489
+ * TODO: Should this be a view or not? The only reason not would be
1490
+ * optimization (i.e. of array[...] += 1) I think.
1491
+ * Before, it was just self for a single ellipsis.
1492
+ */
1493
+ result = PyArray_View(self, NULL, NULL);
1494
+ /* A single ellipsis, so no need to decref */
1495
+ return result;
1496
+ }
1497
+
1498
+ /*
1499
+ * View based indexing.
1500
+ * There are two cases here. First we need to create a simple view,
1501
+ * second we need to create a (possibly invalid) view for the
1502
+ * subspace to the fancy index. This procedure is identical.
1503
+ */
1504
+
1505
+ else if (index_type & (HAS_SLICE | HAS_NEWAXIS |
1506
+ HAS_ELLIPSIS | HAS_INTEGER)) {
1507
+ if (get_view_from_index(self, &view, indices, index_num,
1508
+ (index_type & HAS_FANCY)) < 0) {
1509
+ goto finish;
1510
+ }
1511
+
1512
+ /*
1513
+ * There is a scalar array, so we need to force a copy to simulate
1514
+ * fancy indexing.
1515
+ */
1516
+ if (index_type & HAS_SCALAR_ARRAY) {
1517
+ result = PyArray_NewCopy(view, NPY_KEEPORDER);
1518
+ goto finish;
1519
+ }
1520
+ }
1521
+
1522
+ /* If there is no fancy indexing, we have the result */
1523
+ if (!(index_type & HAS_FANCY)) {
1524
+ result = (PyObject *)view;
1525
+ Py_INCREF(result);
1526
+ goto finish;
1527
+ }
1528
+
1529
+ /*
1530
+ * Special case for very simple 1-d fancy indexing, which however
1531
+ * is quite common. This saves not only a lot of setup time in the
1532
+ * iterator, but also is faster (must be exactly fancy because
1533
+ * we don't support 0-d booleans here)
1534
+ */
1535
+ if (index_type == HAS_FANCY && index_num == 1) {
1536
+ /* The array being indexed has one dimension and it is a fancy index */
1537
+ PyArrayObject *ind = (PyArrayObject*)indices[0].object;
1538
+
1539
+ /* Check if the index is simple enough */
1540
+ if (PyArray_TRIVIALLY_ITERABLE(ind) &&
1541
+ /* Check if the type is equivalent to INTP */
1542
+ PyArray_ITEMSIZE(ind) == sizeof(npy_intp) &&
1543
+ PyArray_DESCR(ind)->kind == 'i' &&
1544
+ PyArray_ISALIGNED(ind) &&
1545
+ PyDataType_ISNOTSWAPPED(PyArray_DESCR(ind))) {
1546
+
1547
+ Py_INCREF(PyArray_DESCR(self));
1548
+ result = PyArray_NewFromDescr(&PyArray_Type,
1549
+ PyArray_DESCR(self),
1550
+ PyArray_NDIM(ind),
1551
+ PyArray_SHAPE(ind),
1552
+ NULL, NULL,
1553
+ /* Same order as indices */
1554
+ PyArray_ISFORTRAN(ind) ?
1555
+ NPY_ARRAY_F_CONTIGUOUS : 0,
1556
+ NULL);
1557
+ if (result == NULL) {
1558
+ goto finish;
1559
+ }
1560
+
1561
+ if (mapiter_trivial_get(self, ind, (PyArrayObject *)result) < 0) {
1562
+ Py_DECREF(result);
1563
+ result = NULL;
1564
+ goto finish;
1565
+ }
1566
+
1567
+ goto wrap_out_array;
1568
+ }
1569
+ }
1570
+
1571
+ /* fancy indexing has to be used. And view is the subspace. */
1572
+ mit = (PyArrayMapIterObject *)PyArray_MapIterNew(indices, index_num,
1573
+ index_type,
1574
+ ndim, fancy_ndim,
1575
+ self, view, 0,
1576
+ NPY_ITER_READONLY,
1577
+ NPY_ITER_WRITEONLY,
1578
+ NULL, PyArray_DESCR(self));
1579
+ if (mit == NULL) {
1580
+ goto finish;
1581
+ }
1582
+
1583
+ if (mit->numiter > 1) {
1584
+ /*
1585
+ * If it is one, the inner loop checks indices, otherwise
1586
+ * check indices beforehand, because it is much faster if
1587
+ * broadcasting occurs and most likely no big overhead
1588
+ */
1589
+ if (PyArray_MapIterCheckIndices(mit) < 0) {
1590
+ goto finish;
1591
+ }
1592
+ }
1593
+
1594
+ /* Reset the outer iterator */
1595
+ if (NpyIter_Reset(mit->outer, NULL) < 0) {
1596
+ goto finish;
1597
+ }
1598
+
1599
+ if (mapiter_get(mit) < 0) {
1600
+ goto finish;
1601
+ }
1602
+
1603
+ result = (PyObject *)mit->extra_op;
1604
+ Py_INCREF(result);
1605
+
1606
+ if (mit->consec) {
1607
+ PyArray_MapIterSwapAxes(mit, (PyArrayObject **)&result, 1);
1608
+ }
1609
+
1610
+ wrap_out_array:
1611
+ if (!PyArray_CheckExact(self)) {
1612
+ /*
1613
+ * Need to create a new array as if the old one never existed.
1614
+ */
1615
+ PyArrayObject *tmp_arr = (PyArrayObject *)result;
1616
+
1617
+ Py_INCREF(PyArray_DESCR(tmp_arr));
1618
+ result = PyArray_NewFromDescr(Py_TYPE(self),
1619
+ PyArray_DESCR(tmp_arr),
1620
+ PyArray_NDIM(tmp_arr),
1621
+ PyArray_SHAPE(tmp_arr),
1622
+ PyArray_STRIDES(tmp_arr),
1623
+ PyArray_BYTES(tmp_arr),
1624
+ PyArray_FLAGS(self),
1625
+ (PyObject *)self);
1626
+
1627
+ if (result == NULL) {
1628
+ Py_DECREF(tmp_arr);
1629
+ goto finish;
1630
+ }
1631
+
1632
+ if (PyArray_SetBaseObject((PyArrayObject *)result,
1633
+ (PyObject *)tmp_arr) < 0) {
1634
+ Py_DECREF(result);
1635
+ result = NULL;
1636
+ goto finish;
1637
+ }
1638
+ }
1639
+
1640
+ finish:
1641
+ Py_XDECREF(mit);
1642
+ Py_XDECREF(view);
1643
+ /* Clean up indices */
1644
+ for (i=0; i < index_num; i++) {
1645
+ Py_XDECREF(indices[i].object);
1646
+ }
1647
+ return result;
1648
+ }
1649
+
1650
+
1651
+ /*
1652
+ * Python C-Api level item assignment (implementation for PySequence_SetItem)
1653
+ *
1654
+ * Negative indices are not accepted because PySequence_SetItem converts
1655
+ * them to positive indices before calling this.
1656
+ */
1657
+ NPY_NO_EXPORT int
1658
+ array_assign_item(PyArrayObject *self, Py_ssize_t i, PyObject *op)
1659
+ {
1660
+ npy_index_info indices[2];
1661
+
1662
+ if (op == NULL) {
1663
+ PyErr_SetString(PyExc_ValueError,
1664
+ "cannot delete array elements");
1665
+ return -1;
1666
+ }
1667
+ if (PyArray_FailUnlessWriteable(self, "assignment destination") < 0) {
1668
+ return -1;
1669
+ }
1670
+ if (PyArray_NDIM(self) == 0) {
1671
+ PyErr_SetString(PyExc_IndexError,
1672
+ "too many indices for array");
1673
+ return -1;
1674
+ }
1675
+
1676
+ if (i < 0) {
1677
+ /* This is an error, but undo PySequence_SetItem fix for message */
1678
+ i -= PyArray_DIM(self, 0);
1679
+ }
1680
+
1681
+ indices[0].value = i;
1682
+ indices[0].type = HAS_INTEGER;
1683
+ if (PyArray_NDIM(self) == 1) {
1684
+ char *item;
1685
+ if (get_item_pointer(self, &item, indices, 1) < 0) {
1686
+ return -1;
1687
+ }
1688
+ if (PyArray_SETITEM(self, item, op) < 0) {
1689
+ return -1;
1690
+ }
1691
+ }
1692
+ else {
1693
+ PyArrayObject *view;
1694
+
1695
+ indices[1].value = PyArray_NDIM(self) - 1;
1696
+ indices[1].type = HAS_ELLIPSIS;
1697
+ if (get_view_from_index(self, &view, indices, 2, 0) < 0) {
1698
+ return -1;
1699
+ }
1700
+ if (PyArray_CopyObject(view, op) < 0) {
1701
+ Py_DECREF(view);
1702
+ return -1;
1703
+ }
1704
+ Py_DECREF(view);
1705
+ }
1706
+ return 0;
1707
+ }
1708
+
1709
+
1710
+ /*
1711
+ * This fallback takes the old route of `arr.flat[index] = values`
1712
+ * for one dimensional `arr`. The route can sometimes fail slightly
1713
+ * differently (ValueError instead of IndexError), in which case we
1714
+ * warn users about the change. But since it does not actually care *at all*
1715
+ * about shapes, it should only fail for out of bound indexes or
1716
+ * casting errors.
1717
+ */
1718
+ NPY_NO_EXPORT int
1719
+ attempt_1d_fallback(PyArrayObject *self, PyObject *ind, PyObject *op)
1720
+ {
1721
+ PyObject *err = PyErr_Occurred();
1722
+ PyArrayIterObject *self_iter = NULL;
1723
+
1724
+ Py_INCREF(err);
1725
+ PyErr_Clear();
1726
+
1727
+ self_iter = (PyArrayIterObject *)PyArray_IterNew((PyObject *)self);
1728
+ if (self_iter == NULL) {
1729
+ goto fail;
1730
+ }
1731
+ if (iter_ass_subscript(self_iter, ind, op) < 0) {
1732
+ goto fail;
1733
+ }
1734
+
1735
+ Py_XDECREF((PyObject *)self_iter);
1736
+ Py_DECREF(err);
1737
+
1738
+ /* 2014-06-12, 1.9 */
1739
+ if (DEPRECATE(
1740
+ "assignment will raise an error in the future, most likely "
1741
+ "because your index result shape does not match the value array "
1742
+ "shape. You can use `arr.flat[index] = values` to keep the old "
1743
+ "behaviour.") < 0) {
1744
+ return -1;
1745
+ }
1746
+ return 0;
1747
+
1748
+ fail:
1749
+ if (!PyErr_ExceptionMatches(err)) {
1750
+ PyObject *err, *val, *tb;
1751
+ PyErr_Fetch(&err, &val, &tb);
1752
+ /* 2014-06-12, 1.9 */
1753
+ DEPRECATE_FUTUREWARNING(
1754
+ "assignment exception type will change in the future");
1755
+ PyErr_Restore(err, val, tb);
1756
+ }
1757
+
1758
+ Py_XDECREF((PyObject *)self_iter);
1759
+ Py_DECREF(err);
1760
+ return -1;
1761
+ }
1762
+
1763
+
1764
+ /*
1765
+ * General assignment with python indexing objects.
1766
+ */
1767
+ static int
1768
+ array_assign_subscript(PyArrayObject *self, PyObject *ind, PyObject *op)
1769
+ {
1770
+ int index_type;
1771
+ int index_num;
1772
+ int i, ndim, fancy_ndim;
1773
+ PyArray_Descr *descr = PyArray_DESCR(self);
1774
+ PyArrayObject *view = NULL;
1775
+ PyArrayObject *tmp_arr = NULL;
1776
+ npy_index_info indices[NPY_MAXDIMS * 2 + 1];
1777
+
1778
+ PyArrayMapIterObject *mit = NULL;
1779
+
1780
+ if (op == NULL) {
1781
+ PyErr_SetString(PyExc_ValueError,
1782
+ "cannot delete array elements");
1783
+ return -1;
1784
+ }
1785
+ if (PyArray_FailUnlessWriteable(self, "assignment destination") < 0) {
1786
+ return -1;
1787
+ }
1788
+
1789
+ /* field access */
1790
+ if (PyDataType_HASFIELDS(PyArray_DESCR(self)) &&
1791
+ obj_is_string_or_stringlist(ind)) {
1792
+ PyObject *obj;
1793
+ static PyObject *indexfunc = NULL;
1794
+
1795
+ #if defined(NPY_PY3K)
1796
+ if (!PyUnicode_Check(ind)) {
1797
+ #else
1798
+ if (!PyString_Check(ind) && !PyUnicode_Check(ind)) {
1799
+ #endif
1800
+ PyErr_SetString(PyExc_ValueError,
1801
+ "multi-field assignment is not supported");
1802
+ }
1803
+
1804
+ npy_cache_import("numpy.core._internal", "_index_fields", &indexfunc);
1805
+ if (indexfunc == NULL) {
1806
+ return -1;
1807
+ }
1808
+
1809
+ obj = PyObject_CallFunction(indexfunc, "OO", self, ind);
1810
+ if (obj == NULL) {
1811
+ return -1;
1812
+ }
1813
+
1814
+ if (PyArray_CopyObject((PyArrayObject*)obj, op) < 0) {
1815
+ Py_DECREF(obj);
1816
+ return -1;
1817
+ }
1818
+ Py_DECREF(obj);
1819
+
1820
+ return 0;
1821
+ }
1822
+
1823
+ /* Prepare the indices */
1824
+ index_type = prepare_index(self, ind, indices, &index_num,
1825
+ &ndim, &fancy_ndim, 1);
1826
+
1827
+ if (index_type < 0) {
1828
+ return -1;
1829
+ }
1830
+
1831
+ /* Full integer index */
1832
+ if (index_type == HAS_INTEGER) {
1833
+ char *item;
1834
+ if (get_item_pointer(self, &item, indices, index_num) < 0) {
1835
+ return -1;
1836
+ }
1837
+ if (PyArray_SETITEM(self, item, op) < 0) {
1838
+ return -1;
1839
+ }
1840
+ /* integers do not store objects in indices */
1841
+ return 0;
1842
+ }
1843
+
1844
+ /* Single boolean array */
1845
+ if (index_type == HAS_BOOL) {
1846
+ if (!PyArray_Check(op)) {
1847
+ Py_INCREF(PyArray_DESCR(self));
1848
+ tmp_arr = (PyArrayObject *)PyArray_FromAny(op,
1849
+ PyArray_DESCR(self), 0, 0,
1850
+ NPY_ARRAY_FORCECAST, NULL);
1851
+ if (tmp_arr == NULL) {
1852
+ goto fail;
1853
+ }
1854
+ }
1855
+ else {
1856
+ Py_INCREF(op);
1857
+ tmp_arr = (PyArrayObject *)op;
1858
+ }
1859
+
1860
+ if (array_assign_boolean_subscript(self,
1861
+ (PyArrayObject *)indices[0].object,
1862
+ tmp_arr, NPY_CORDER) < 0) {
1863
+ /*
1864
+ * Deprecated case. The old boolean indexing seemed to have some
1865
+ * check to allow wrong dimensional boolean arrays in all cases.
1866
+ */
1867
+ if (PyArray_NDIM(tmp_arr) > 1) {
1868
+ if (attempt_1d_fallback(self, indices[0].object,
1869
+ (PyObject*)tmp_arr) < 0) {
1870
+ goto fail;
1871
+ }
1872
+ goto success;
1873
+ }
1874
+ goto fail;
1875
+ }
1876
+ goto success;
1877
+ }
1878
+
1879
+
1880
+ /*
1881
+ * Single ellipsis index, no need to create a new view.
1882
+ * Note that here, we do *not* go through self.__getitem__ for subclasses
1883
+ * (defchar array failed then, due to uninitialized values...)
1884
+ */
1885
+ else if (index_type == HAS_ELLIPSIS) {
1886
+ if ((PyObject *)self == op) {
1887
+ /*
1888
+ * CopyObject does not handle this case gracefully and
1889
+ * there is nothing to do. Removing the special case
1890
+ * will cause segfaults, though it is unclear what exactly
1891
+ * happens.
1892
+ */
1893
+ return 0;
1894
+ }
1895
+ /* we can just use self, but incref for error handling */
1896
+ Py_INCREF((PyObject *)self);
1897
+ view = self;
1898
+ }
1899
+
1900
+ /*
1901
+ * WARNING: There is a huge special case here. If this is not a
1902
+ * base class array, we have to get the view through its
1903
+ * very own index machinery.
1904
+ * Many subclasses should probably call __setitem__
1905
+ * with a base class ndarray view to avoid this.
1906
+ */
1907
+ else if (!(index_type & (HAS_FANCY | HAS_SCALAR_ARRAY))
1908
+ && !PyArray_CheckExact(self)) {
1909
+ view = (PyArrayObject *)PyObject_GetItem((PyObject *)self, ind);
1910
+ if (view == NULL) {
1911
+ goto fail;
1912
+ }
1913
+ if (!PyArray_Check(view)) {
1914
+ PyErr_SetString(PyExc_RuntimeError,
1915
+ "Getitem not returning array");
1916
+ goto fail;
1917
+ }
1918
+ }
1919
+
1920
+ /*
1921
+ * View based indexing.
1922
+ * There are two cases here. First we need to create a simple view,
1923
+ * second we need to create a (possibly invalid) view for the
1924
+ * subspace to the fancy index. This procedure is identical.
1925
+ */
1926
+ else if (index_type & (HAS_SLICE | HAS_NEWAXIS |
1927
+ HAS_ELLIPSIS | HAS_INTEGER)) {
1928
+ if (get_view_from_index(self, &view, indices, index_num,
1929
+ (index_type & HAS_FANCY)) < 0) {
1930
+ goto fail;
1931
+ }
1932
+ }
1933
+ else {
1934
+ view = NULL;
1935
+ }
1936
+
1937
+ /* If there is no fancy indexing, we have the array to assign to */
1938
+ if (!(index_type & HAS_FANCY)) {
1939
+ if (PyArray_CopyObject(view, op) < 0) {
1940
+ goto fail;
1941
+ }
1942
+ goto success;
1943
+ }
1944
+
1945
+ if (!PyArray_Check(op)) {
1946
+ /*
1947
+ * If the array is of object converting the values to an array
1948
+ * might not be legal even though normal assignment works.
1949
+ * So allocate a temporary array of the right size and use the
1950
+ * normal assignment to handle this case.
1951
+ */
1952
+ if (PyDataType_REFCHK(descr) && PySequence_Check(op)) {
1953
+ tmp_arr = NULL;
1954
+ }
1955
+ else {
1956
+ /* There is nothing fancy possible, so just make an array */
1957
+ Py_INCREF(descr);
1958
+ tmp_arr = (PyArrayObject *)PyArray_FromAny(op, descr, 0, 0,
1959
+ NPY_ARRAY_FORCECAST, NULL);
1960
+ if (tmp_arr == NULL) {
1961
+ goto fail;
1962
+ }
1963
+ }
1964
+ }
1965
+ else {
1966
+ Py_INCREF(op);
1967
+ tmp_arr = (PyArrayObject *)op;
1968
+ }
1969
+
1970
+ /*
1971
+ * Special case for very simple 1-d fancy indexing, which however
1972
+ * is quite common. This saves not only a lot of setup time in the
1973
+ * iterator, but also is faster (must be exactly fancy because
1974
+ * we don't support 0-d booleans here)
1975
+ */
1976
+ if (index_type == HAS_FANCY &&
1977
+ index_num == 1 && tmp_arr) {
1978
+ /* The array being indexed has one dimension and it is a fancy index */
1979
+ PyArrayObject *ind = (PyArrayObject*)indices[0].object;
1980
+
1981
+ /* Check if the type is equivalent */
1982
+ if (PyArray_EquivTypes(PyArray_DESCR(self),
1983
+ PyArray_DESCR(tmp_arr)) &&
1984
+ /*
1985
+ * Either they are equivalent, or the values must
1986
+ * be a scalar
1987
+ */
1988
+ (PyArray_EQUIVALENTLY_ITERABLE(ind, tmp_arr) ||
1989
+ (PyArray_NDIM(tmp_arr) == 0 &&
1990
+ PyArray_TRIVIALLY_ITERABLE(tmp_arr))) &&
1991
+ /* Check if the type is equivalent to INTP */
1992
+ PyArray_ITEMSIZE(ind) == sizeof(npy_intp) &&
1993
+ PyArray_DESCR(ind)->kind == 'i' &&
1994
+ PyArray_ISALIGNED(ind) &&
1995
+ PyDataType_ISNOTSWAPPED(PyArray_DESCR(ind))) {
1996
+
1997
+ /* trivial_set checks the index for us */
1998
+ if (mapiter_trivial_set(self, ind, tmp_arr) < 0) {
1999
+ goto fail;
2000
+ }
2001
+ goto success;
2002
+ }
2003
+ }
2004
+
2005
+ /*
2006
+ * NOTE: If tmp_arr was not allocated yet, mit should
2007
+ * handle the allocation.
2008
+ * The NPY_ITER_READWRITE is necessary for automatic
2009
+ * allocation. Readwrite would not allow broadcasting
2010
+ * correctly, but such an operand always has the full
2011
+ * size anyway.
2012
+ */
2013
+ mit = (PyArrayMapIterObject *)PyArray_MapIterNew(indices,
2014
+ index_num, index_type,
2015
+ ndim, fancy_ndim, self,
2016
+ view, 0,
2017
+ NPY_ITER_WRITEONLY,
2018
+ ((tmp_arr == NULL) ?
2019
+ NPY_ITER_READWRITE :
2020
+ NPY_ITER_READONLY),
2021
+ tmp_arr, descr);
2022
+
2023
+ if (mit == NULL) {
2024
+ /*
2025
+ * This is a deprecated special case to allow non-matching shapes
2026
+ * for the index and value arrays.
2027
+ */
2028
+ if (index_type != HAS_FANCY || index_num != 1) {
2029
+ /* This is not a "flat like" 1-d special case */
2030
+ goto fail;
2031
+ }
2032
+ if (attempt_1d_fallback(self, indices[0].object, op) < 0) {
2033
+ goto fail;
2034
+ }
2035
+ goto success;
2036
+ }
2037
+
2038
+ if (tmp_arr == NULL) {
2039
+ /* Fill extra op, need to swap first */
2040
+ tmp_arr = mit->extra_op;
2041
+ Py_INCREF(tmp_arr);
2042
+ if (mit->consec) {
2043
+ PyArray_MapIterSwapAxes(mit, &tmp_arr, 1);
2044
+ if (tmp_arr == NULL) {
2045
+ goto fail;
2046
+ }
2047
+ }
2048
+ if (PyArray_CopyObject(tmp_arr, op) < 0) {
2049
+ /*
2050
+ * This is a deprecated special case to allow non-matching shapes
2051
+ * for the index and value arrays.
2052
+ */
2053
+ if (index_type != HAS_FANCY || index_num != 1) {
2054
+ /* This is not a "flat like" 1-d special case */
2055
+ goto fail;
2056
+ }
2057
+ if (attempt_1d_fallback(self, indices[0].object, op) < 0) {
2058
+ goto fail;
2059
+ }
2060
+ goto success;
2061
+ }
2062
+ }
2063
+
2064
+ /* Can now reset the outer iterator (delayed bufalloc) */
2065
+ if (NpyIter_Reset(mit->outer, NULL) < 0) {
2066
+ goto fail;
2067
+ }
2068
+
2069
+ if (PyArray_MapIterCheckIndices(mit) < 0) {
2070
+ goto fail;
2071
+ }
2072
+
2073
+ /*
2074
+ * Could add a casting check, but apparently most assignments do
2075
+ * not care about safe casting.
2076
+ */
2077
+
2078
+ if (mapiter_set(mit) < 0) {
2079
+ goto fail;
2080
+ }
2081
+
2082
+ Py_DECREF(mit);
2083
+ goto success;
2084
+
2085
+ /* Clean up temporary variables and indices */
2086
+ fail:
2087
+ Py_XDECREF((PyObject *)view);
2088
+ Py_XDECREF((PyObject *)tmp_arr);
2089
+ Py_XDECREF((PyObject *)mit);
2090
+ for (i=0; i < index_num; i++) {
2091
+ Py_XDECREF(indices[i].object);
2092
+ }
2093
+ return -1;
2094
+
2095
+ success:
2096
+ Py_XDECREF((PyObject *)view);
2097
+ Py_XDECREF((PyObject *)tmp_arr);
2098
+ for (i=0; i < index_num; i++) {
2099
+ Py_XDECREF(indices[i].object);
2100
+ }
2101
+ return 0;
2102
+ }
2103
+
2104
+
2105
+ NPY_NO_EXPORT PyMappingMethods array_as_mapping = {
2106
+ (lenfunc)array_length, /*mp_length*/
2107
+ (binaryfunc)array_subscript, /*mp_subscript*/
2108
+ (objobjargproc)array_assign_subscript, /*mp_ass_subscript*/
2109
+ };
2110
+
2111
+ /****************** End of Mapping Protocol ******************************/
2112
+
2113
+ /*********************** Subscript Array Iterator *************************
2114
+ * *
2115
+ * This object handles subscript behavior for array objects. *
2116
+ * It is an iterator object with a next method *
2117
+ * It abstracts the n-dimensional mapping behavior to make the looping *
2118
+ * code more understandable (maybe) *
2119
+ * and so that indexing can be set up ahead of time *
2120
+ */
2121
+
2122
+ /*
2123
+ * This function takes a Boolean array and constructs index objects and
2124
+ * iterators as if nonzero(Bool) had been called
2125
+ *
2126
+ * Must not be called on a 0-d array.
2127
+ */
2128
+ static int
2129
+ _nonzero_indices(PyObject *myBool, PyArrayObject **arrays)
2130
+ {
2131
+ PyArray_Descr *typecode;
2132
+ PyArrayObject *ba = NULL, *new = NULL;
2133
+ int nd, j;
2134
+ npy_intp size, i, count;
2135
+ npy_bool *ptr;
2136
+ npy_intp coords[NPY_MAXDIMS], dims_m1[NPY_MAXDIMS];
2137
+ npy_intp *dptr[NPY_MAXDIMS];
2138
+ static npy_intp one = 1;
2139
+ NPY_BEGIN_THREADS_DEF;
2140
+
2141
+ typecode=PyArray_DescrFromType(NPY_BOOL);
2142
+ ba = (PyArrayObject *)PyArray_FromAny(myBool, typecode, 0, 0,
2143
+ NPY_ARRAY_CARRAY, NULL);
2144
+ if (ba == NULL) {
2145
+ return -1;
2146
+ }
2147
+ nd = PyArray_NDIM(ba);
2148
+
2149
+ for (j = 0; j < nd; j++) {
2150
+ arrays[j] = NULL;
2151
+ }
2152
+ size = PyArray_SIZE(ba);
2153
+ ptr = (npy_bool *)PyArray_DATA(ba);
2154
+
2155
+ /*
2156
+ * pre-determine how many nonzero entries there are,
2157
+ * ignore dimensionality of input as its a CARRAY
2158
+ */
2159
+ count = count_boolean_trues(1, (char*)ptr, &size, &one);
2160
+
2161
+ /* create count-sized index arrays for each dimension */
2162
+ for (j = 0; j < nd; j++) {
2163
+ new = (PyArrayObject *)PyArray_New(&PyArray_Type, 1, &count,
2164
+ NPY_INTP, NULL, NULL,
2165
+ 0, 0, NULL);
2166
+ if (new == NULL) {
2167
+ goto fail;
2168
+ }
2169
+ arrays[j] = new;
2170
+
2171
+ dptr[j] = (npy_intp *)PyArray_DATA(new);
2172
+ coords[j] = 0;
2173
+ dims_m1[j] = PyArray_DIMS(ba)[j]-1;
2174
+ }
2175
+ if (count == 0) {
2176
+ goto finish;
2177
+ }
2178
+
2179
+ /*
2180
+ * Loop through the Boolean array and copy coordinates
2181
+ * for non-zero entries
2182
+ */
2183
+ NPY_BEGIN_THREADS_THRESHOLDED(size);
2184
+ for (i = 0; i < size; i++) {
2185
+ if (*(ptr++)) {
2186
+ for (j = 0; j < nd; j++) {
2187
+ *(dptr[j]++) = coords[j];
2188
+ }
2189
+ }
2190
+ /* Borrowed from ITER_NEXT macro */
2191
+ for (j = nd - 1; j >= 0; j--) {
2192
+ if (coords[j] < dims_m1[j]) {
2193
+ coords[j]++;
2194
+ break;
2195
+ }
2196
+ else {
2197
+ coords[j] = 0;
2198
+ }
2199
+ }
2200
+ }
2201
+ NPY_END_THREADS;
2202
+
2203
+ finish:
2204
+ Py_DECREF(ba);
2205
+ return nd;
2206
+
2207
+ fail:
2208
+ for (j = 0; j < nd; j++) {
2209
+ Py_XDECREF(arrays[j]);
2210
+ }
2211
+ Py_XDECREF(ba);
2212
+ return -1;
2213
+ }
2214
+
2215
+
2216
+ /* Reset the map iterator to the beginning */
2217
+ NPY_NO_EXPORT void
2218
+ PyArray_MapIterReset(PyArrayMapIterObject *mit)
2219
+ {
2220
+ npy_intp indval;
2221
+ char *baseptrs[2];
2222
+ int i;
2223
+
2224
+ if (mit->size == 0) {
2225
+ return;
2226
+ }
2227
+
2228
+ NpyIter_Reset(mit->outer, NULL);
2229
+ if (mit->extra_op_iter) {
2230
+ NpyIter_Reset(mit->extra_op_iter, NULL);
2231
+
2232
+ baseptrs[1] = mit->extra_op_ptrs[0];
2233
+ }
2234
+
2235
+ baseptrs[0] = mit->baseoffset;
2236
+
2237
+ for (i = 0; i < mit->numiter; i++) {
2238
+ indval = *((npy_intp*)mit->outer_ptrs[i]);
2239
+ if (indval < 0) {
2240
+ indval += mit->fancy_dims[i];
2241
+ }
2242
+ baseptrs[0] += indval * mit->fancy_strides[i];
2243
+ }
2244
+ mit->dataptr = baseptrs[0];
2245
+
2246
+ if (mit->subspace_iter) {
2247
+ NpyIter_ResetBasePointers(mit->subspace_iter, baseptrs, NULL);
2248
+ mit->iter_count = *NpyIter_GetInnerLoopSizePtr(mit->subspace_iter);
2249
+ }
2250
+ else {
2251
+ mit->iter_count = *NpyIter_GetInnerLoopSizePtr(mit->outer);
2252
+ }
2253
+
2254
+ return;
2255
+ }
2256
+
2257
+
2258
+ /*NUMPY_API
2259
+ * This function needs to update the state of the map iterator
2260
+ * and point mit->dataptr to the memory-location of the next object
2261
+ *
2262
+ * Note that this function never handles an extra operand but provides
2263
+ * compatibility for an old (exposed) API.
2264
+ */
2265
+ NPY_NO_EXPORT void
2266
+ PyArray_MapIterNext(PyArrayMapIterObject *mit)
2267
+ {
2268
+ int i;
2269
+ char *baseptr;
2270
+ npy_intp indval;
2271
+
2272
+ if (mit->subspace_iter) {
2273
+ if (--mit->iter_count > 0) {
2274
+ mit->subspace_ptrs[0] += mit->subspace_strides[0];
2275
+ mit->dataptr = mit->subspace_ptrs[0];
2276
+ return;
2277
+ }
2278
+ else if (mit->subspace_next(mit->subspace_iter)) {
2279
+ mit->iter_count = *NpyIter_GetInnerLoopSizePtr(mit->subspace_iter);
2280
+ mit->dataptr = mit->subspace_ptrs[0];
2281
+ }
2282
+ else {
2283
+ if (!mit->outer_next(mit->outer)) {
2284
+ return;
2285
+ }
2286
+
2287
+ baseptr = mit->baseoffset;
2288
+
2289
+ for (i = 0; i < mit->numiter; i++) {
2290
+ indval = *((npy_intp*)mit->outer_ptrs[i]);
2291
+ if (indval < 0) {
2292
+ indval += mit->fancy_dims[i];
2293
+ }
2294
+ baseptr += indval * mit->fancy_strides[i];
2295
+ }
2296
+ NpyIter_ResetBasePointers(mit->subspace_iter, &baseptr, NULL);
2297
+ mit->iter_count = *NpyIter_GetInnerLoopSizePtr(mit->subspace_iter);
2298
+
2299
+ mit->dataptr = mit->subspace_ptrs[0];
2300
+ }
2301
+ }
2302
+ else {
2303
+ if (--mit->iter_count > 0) {
2304
+ baseptr = mit->baseoffset;
2305
+
2306
+ for (i = 0; i < mit->numiter; i++) {
2307
+ mit->outer_ptrs[i] += mit->outer_strides[i];
2308
+
2309
+ indval = *((npy_intp*)mit->outer_ptrs[i]);
2310
+ if (indval < 0) {
2311
+ indval += mit->fancy_dims[i];
2312
+ }
2313
+ baseptr += indval * mit->fancy_strides[i];
2314
+ }
2315
+
2316
+ mit->dataptr = baseptr;
2317
+ return;
2318
+ }
2319
+ else {
2320
+ if (!mit->outer_next(mit->outer)) {
2321
+ return;
2322
+ }
2323
+ mit->iter_count = *NpyIter_GetInnerLoopSizePtr(mit->outer);
2324
+ baseptr = mit->baseoffset;
2325
+
2326
+ for (i = 0; i < mit->numiter; i++) {
2327
+ indval = *((npy_intp*)mit->outer_ptrs[i]);
2328
+ if (indval < 0) {
2329
+ indval += mit->fancy_dims[i];
2330
+ }
2331
+ baseptr += indval * mit->fancy_strides[i];
2332
+ }
2333
+
2334
+ mit->dataptr = baseptr;
2335
+ }
2336
+ }
2337
+ }
2338
+
2339
+
2340
+ /**
2341
+ * Fill information about the iterator. The MapIterObject does not
2342
+ * need to have any information set for this function to work.
2343
+ * (PyArray_MapIterSwapAxes requires also nd and nd_fancy info)
2344
+ *
2345
+ * Sets the following information:
2346
+ * * mit->consec: The axis where the fancy indices need transposing to.
2347
+ * * mit->iteraxes: The axis which the fancy index corresponds to.
2348
+ * * mit-> fancy_dims: the dimension of `arr` along the indexed dimension
2349
+ * for each fancy index.
2350
+ * * mit->fancy_strides: the strides for the dimension being indexed
2351
+ * by each fancy index.
2352
+ * * mit->dimensions: Broadcast dimension of the fancy indices and
2353
+ * the subspace iteration dimension.
2354
+ *
2355
+ * @param MapIterObject
2356
+ * @param The parsed indices object
2357
+ * @param Number of indices
2358
+ * @param The array that is being iterated
2359
+ *
2360
+ * @return 0 on success -1 on failure
2361
+ */
2362
+ static int
2363
+ mapiter_fill_info(PyArrayMapIterObject *mit, npy_index_info *indices,
2364
+ int index_num, PyArrayObject *arr)
2365
+ {
2366
+ int j = 0, i;
2367
+ int curr_dim = 0;
2368
+ /* dimension of index result (up to first fancy index) */
2369
+ int result_dim = 0;
2370
+ /* -1 init; 0 found fancy; 1 fancy stopped; 2 found not consecutive fancy */
2371
+ int consec_status = -1;
2372
+ int axis, broadcast_axis;
2373
+ npy_intp dimension;
2374
+ PyObject *errmsg, *tmp;
2375
+
2376
+ for (i = 0; i < mit->nd_fancy; i++) {
2377
+ mit->dimensions[i] = 1;
2378
+ }
2379
+
2380
+ mit->consec = 0;
2381
+ for (i = 0; i < index_num; i++) {
2382
+ /* integer and fancy indexes are transposed together */
2383
+ if (indices[i].type & (HAS_FANCY | HAS_INTEGER)) {
2384
+ /* there was no previous fancy index, so set consec */
2385
+ if (consec_status == -1) {
2386
+ mit->consec = result_dim;
2387
+ consec_status = 0;
2388
+ }
2389
+ /* there was already a non-fancy index after a fancy one */
2390
+ else if (consec_status == 1) {
2391
+ consec_status = 2;
2392
+ mit->consec = 0;
2393
+ }
2394
+ }
2395
+ else {
2396
+ /* consec_status == 0 means there was a fancy index before */
2397
+ if (consec_status == 0) {
2398
+ consec_status = 1;
2399
+ }
2400
+ }
2401
+
2402
+ /* (iterating) fancy index, store the iterator */
2403
+ if (indices[i].type == HAS_FANCY) {
2404
+ mit->fancy_strides[j] = PyArray_STRIDE(arr, curr_dim);
2405
+ mit->fancy_dims[j] = PyArray_DIM(arr, curr_dim);
2406
+ mit->iteraxes[j++] = curr_dim++;
2407
+
2408
+ /* Check broadcasting */
2409
+ broadcast_axis = mit->nd_fancy;
2410
+ /* Fill from back, we know how many dims there are */
2411
+ for (axis = PyArray_NDIM((PyArrayObject *)indices[i].object) - 1;
2412
+ axis >= 0; axis--) {
2413
+ broadcast_axis--;
2414
+ dimension = PyArray_DIM((PyArrayObject *)indices[i].object, axis);
2415
+
2416
+ /* If it is 1, we can broadcast */
2417
+ if (dimension != 1) {
2418
+ if (dimension != mit->dimensions[broadcast_axis]) {
2419
+ if (mit->dimensions[broadcast_axis] != 1) {
2420
+ goto broadcast_error;
2421
+ }
2422
+ mit->dimensions[broadcast_axis] = dimension;
2423
+ }
2424
+ }
2425
+ }
2426
+ }
2427
+ else if (indices[i].type == HAS_0D_BOOL) {
2428
+ mit->fancy_strides[j] = 0;
2429
+ mit->fancy_dims[j] = 1;
2430
+ /* Does not exist */
2431
+ mit->iteraxes[j++] = -1;
2432
+ }
2433
+
2434
+ /* advance curr_dim for non-fancy indices */
2435
+ else if (indices[i].type == HAS_ELLIPSIS) {
2436
+ curr_dim += indices[i].value;
2437
+ result_dim += indices[i].value;
2438
+ }
2439
+ else if (indices[i].type != HAS_NEWAXIS){
2440
+ curr_dim += 1;
2441
+ result_dim += 1;
2442
+ }
2443
+ else {
2444
+ result_dim += 1;
2445
+ }
2446
+ }
2447
+
2448
+ /* Fill dimension of subspace */
2449
+ if (mit->subspace) {
2450
+ for (i = 0; i < PyArray_NDIM(mit->subspace); i++) {
2451
+ mit->dimensions[mit->nd_fancy + i] = PyArray_DIM(mit->subspace, i);
2452
+ }
2453
+ }
2454
+
2455
+ return 0;
2456
+
2457
+ broadcast_error:
2458
+ /*
2459
+ * Attempt to set a meaningful exception. Could also find out
2460
+ * if a boolean index was converted.
2461
+ */
2462
+ errmsg = PyUString_FromString("shape mismatch: indexing arrays could not "
2463
+ "be broadcast together with shapes ");
2464
+ if (errmsg == NULL) {
2465
+ return -1;
2466
+ }
2467
+
2468
+ for (i = 0; i < index_num; i++) {
2469
+ if (indices[i].type != HAS_FANCY) {
2470
+ continue;
2471
+ }
2472
+ tmp = convert_shape_to_string(
2473
+ PyArray_NDIM((PyArrayObject *)indices[i].object),
2474
+ PyArray_SHAPE((PyArrayObject *)indices[i].object),
2475
+ " ");
2476
+ if (tmp == NULL) {
2477
+ return -1;
2478
+ }
2479
+ PyUString_ConcatAndDel(&errmsg, tmp);
2480
+ if (errmsg == NULL) {
2481
+ return -1;
2482
+ }
2483
+ }
2484
+
2485
+ PyErr_SetObject(PyExc_IndexError, errmsg);
2486
+ Py_DECREF(errmsg);
2487
+ return -1;
2488
+ }
2489
+
2490
+
2491
+ /*
2492
+ * Check whether the fancy indices are out of bounds.
2493
+ * Returns 0 on success and -1 on failure.
2494
+ * (Gets operands from the outer iterator, but iterates them independently)
2495
+ */
2496
+ NPY_NO_EXPORT int
2497
+ PyArray_MapIterCheckIndices(PyArrayMapIterObject *mit)
2498
+ {
2499
+ PyArrayObject *op;
2500
+ NpyIter *op_iter;
2501
+ NpyIter_IterNextFunc *op_iternext;
2502
+ npy_intp outer_dim, indval;
2503
+ int outer_axis;
2504
+ npy_intp itersize, *iterstride;
2505
+ char **iterptr;
2506
+ PyArray_Descr *intp_type;
2507
+ int i;
2508
+ NPY_BEGIN_THREADS_DEF;
2509
+
2510
+ if (mit->size == 0) {
2511
+ /* All indices got broadcast away, do *not* check as it always was */
2512
+ return 0;
2513
+ }
2514
+
2515
+ intp_type = PyArray_DescrFromType(NPY_INTP);
2516
+
2517
+ NPY_BEGIN_THREADS;
2518
+
2519
+ for (i=0; i < mit->numiter; i++) {
2520
+ op = NpyIter_GetOperandArray(mit->outer)[i];
2521
+
2522
+ outer_dim = mit->fancy_dims[i];
2523
+ outer_axis = mit->iteraxes[i];
2524
+
2525
+ /* See if it is possible to just trivially iterate the array */
2526
+ if (PyArray_TRIVIALLY_ITERABLE(op) &&
2527
+ /* Check if the type is equivalent to INTP */
2528
+ PyArray_ITEMSIZE(op) == sizeof(npy_intp) &&
2529
+ PyArray_DESCR(op)->kind == 'i' &&
2530
+ PyArray_ISALIGNED(op) &&
2531
+ PyDataType_ISNOTSWAPPED(PyArray_DESCR(op))) {
2532
+ char *data;
2533
+ npy_intp stride;
2534
+ /* release GIL if it was taken by nditer below */
2535
+ if (_save == NULL) {
2536
+ NPY_BEGIN_THREADS;
2537
+ }
2538
+
2539
+ PyArray_PREPARE_TRIVIAL_ITERATION(op, itersize, data, stride);
2540
+
2541
+ while (itersize--) {
2542
+ indval = *((npy_intp*)data);
2543
+ if (check_and_adjust_index(&indval,
2544
+ outer_dim, outer_axis, _save) < 0) {
2545
+ return -1;
2546
+ }
2547
+ data += stride;
2548
+ }
2549
+ /* GIL retake at end of function or if nditer path required */
2550
+ continue;
2551
+ }
2552
+
2553
+ /* Use NpyIter if the trivial iteration is not possible */
2554
+ NPY_END_THREADS;
2555
+ op_iter = NpyIter_New(op,
2556
+ NPY_ITER_BUFFERED | NPY_ITER_NBO | NPY_ITER_ALIGNED |
2557
+ NPY_ITER_EXTERNAL_LOOP | NPY_ITER_GROWINNER |
2558
+ NPY_ITER_READONLY,
2559
+ NPY_KEEPORDER, NPY_SAME_KIND_CASTING, intp_type);
2560
+
2561
+ if (op_iter == NULL) {
2562
+ Py_DECREF(intp_type);
2563
+ return -1;
2564
+ }
2565
+
2566
+ op_iternext = NpyIter_GetIterNext(op_iter, NULL);
2567
+ if (op_iternext == NULL) {
2568
+ Py_DECREF(intp_type);
2569
+ NpyIter_Deallocate(op_iter);
2570
+ return -1;
2571
+ }
2572
+
2573
+ NPY_BEGIN_THREADS_NDITER(op_iter);
2574
+ iterptr = NpyIter_GetDataPtrArray(op_iter);
2575
+ iterstride = NpyIter_GetInnerStrideArray(op_iter);
2576
+ do {
2577
+ itersize = *NpyIter_GetInnerLoopSizePtr(op_iter);
2578
+ while (itersize--) {
2579
+ indval = *((npy_intp*)*iterptr);
2580
+ if (check_and_adjust_index(&indval,
2581
+ outer_dim, outer_axis, _save) < 0) {
2582
+ Py_DECREF(intp_type);
2583
+ NpyIter_Deallocate(op_iter);
2584
+ return -1;
2585
+ }
2586
+ *iterptr += *iterstride;
2587
+ }
2588
+ } while (op_iternext(op_iter));
2589
+
2590
+ NPY_END_THREADS;
2591
+ NpyIter_Deallocate(op_iter);
2592
+ }
2593
+
2594
+ NPY_END_THREADS;
2595
+ Py_DECREF(intp_type);
2596
+ return 0;
2597
+ }
2598
+
2599
+
2600
+ /*
2601
+ * Create new mapiter.
2602
+ *
2603
+ * NOTE: The outer iteration (and subspace if requested buffered) is
2604
+ * created with DELAY_BUFALLOC. It must be reset before usage!
2605
+ *
2606
+ * @param Index information filled by prepare_index.
2607
+ * @param Number of indices (gotten through prepare_index).
2608
+ * @param Kind of index (gotten through preprare_index).
2609
+ * @param NpyIter flags for an extra array. If 0 assume that there is no
2610
+ * extra operand. NPY_ITER_ALLOCATE can make sense here.
2611
+ * @param Array being indexed
2612
+ * @param subspace (result of getting view for the indices)
2613
+ * @param Subspace iterator flags can be used to enable buffering.
2614
+ * NOTE: When no subspace is necessary, the extra operand will
2615
+ * always be buffered! Buffering the subspace when not
2616
+ * necessary is very slow when the subspace is small.
2617
+ * @param Subspace operand flags (should just be 0 normally)
2618
+ * @param Operand iteration flags for the extra operand, this must not be
2619
+ * 0 if an extra operand should be used, otherwise it must be 0.
2620
+ * Should be at least READONLY, WRITEONLY or READWRITE.
2621
+ * @param Extra operand. For getmap, this would be the result, for setmap
2622
+ * this would be the arrays to get from.
2623
+ * Can be NULL, and will be allocated in that case. However,
2624
+ * it matches the mapiter iteration, so you have to call
2625
+ * MapIterSwapAxes(mit, &extra_op, 1) on it.
2626
+ * The operand has no effect on the shape.
2627
+ * @param Dtype for the extra operand, borrows the reference and must not
2628
+ * be NULL (if extra_op_flags is not 0).
2629
+ *
2630
+ * @return A new MapIter (PyObject *) or NULL.
2631
+ */
2632
+ NPY_NO_EXPORT PyObject *
2633
+ PyArray_MapIterNew(npy_index_info *indices , int index_num, int index_type,
2634
+ int ndim, int fancy_ndim,
2635
+ PyArrayObject *arr, PyArrayObject *subspace,
2636
+ npy_uint32 subspace_iter_flags, npy_uint32 subspace_flags,
2637
+ npy_uint32 extra_op_flags, PyArrayObject *extra_op,
2638
+ PyArray_Descr *extra_op_dtype)
2639
+ {
2640
+ PyObject *errmsg, *tmp;
2641
+ /* For shape reporting on error */
2642
+ PyArrayObject *original_extra_op = extra_op;
2643
+
2644
+ PyArrayObject *index_arrays[NPY_MAXDIMS];
2645
+ PyArray_Descr *dtypes[NPY_MAXDIMS];
2646
+
2647
+ npy_uint32 op_flags[NPY_MAXDIMS];
2648
+ npy_uint32 outer_flags;
2649
+
2650
+ PyArrayMapIterObject *mit;
2651
+
2652
+ int single_op_axis[NPY_MAXDIMS];
2653
+ int *op_axes[NPY_MAXDIMS] = {NULL};
2654
+ int i, j, dummy_array = 0;
2655
+ int nops;
2656
+ int uses_subspace;
2657
+
2658
+ /* create new MapIter object */
2659
+ mit = (PyArrayMapIterObject *)PyArray_malloc(sizeof(PyArrayMapIterObject));
2660
+ if (mit == NULL) {
2661
+ return NULL;
2662
+ }
2663
+ /* set all attributes of mapiter to zero */
2664
+ memset(mit, 0, sizeof(PyArrayMapIterObject));
2665
+ PyObject_Init((PyObject *)mit, &PyArrayMapIter_Type);
2666
+
2667
+ Py_INCREF(arr);
2668
+ mit->array = arr;
2669
+ Py_XINCREF(subspace);
2670
+ mit->subspace = subspace;
2671
+
2672
+ /*
2673
+ * The subspace, the part of the array which is not indexed by
2674
+ * arrays, needs to be iterated when the size of the subspace
2675
+ * is larger than 1. If it is one, it has only an effect on the
2676
+ * result shape. (Optimizes for example np.newaxis usage)
2677
+ */
2678
+ if ((subspace == NULL) || PyArray_SIZE(subspace) == 1) {
2679
+ uses_subspace = 0;
2680
+ }
2681
+ else {
2682
+ uses_subspace = 1;
2683
+ }
2684
+
2685
+ /* Fill basic information about the mapiter */
2686
+ mit->nd = ndim;
2687
+ mit->nd_fancy = fancy_ndim;
2688
+ if (mapiter_fill_info(mit, indices, index_num, arr) < 0) {
2689
+ Py_DECREF(mit);
2690
+ return NULL;
2691
+ }
2692
+
2693
+ /*
2694
+ * Set iteration information of the indexing arrays.
2695
+ */
2696
+ for (i=0; i < index_num; i++) {
2697
+ if (indices[i].type & HAS_FANCY) {
2698
+ index_arrays[mit->numiter] = (PyArrayObject *)indices[i].object;
2699
+ dtypes[mit->numiter] = PyArray_DescrFromType(NPY_INTP);
2700
+
2701
+ op_flags[mit->numiter] = (NPY_ITER_NBO |
2702
+ NPY_ITER_ALIGNED |
2703
+ NPY_ITER_READONLY);
2704
+ mit->numiter += 1;
2705
+ }
2706
+ }
2707
+
2708
+ if (mit->numiter == 0) {
2709
+ /*
2710
+ * For MapIterArray, it is possible that there is no fancy index.
2711
+ * to support this case, add a a dummy iterator.
2712
+ * Since it is 0-d its transpose, etc. does not matter.
2713
+ */
2714
+
2715
+ /* signal necessity to decref... */
2716
+ dummy_array = 1;
2717
+
2718
+ index_arrays[0] = (PyArrayObject *)PyArray_Zeros(0, NULL,
2719
+ PyArray_DescrFromType(NPY_INTP), 0);
2720
+ if (index_arrays[0] == NULL) {
2721
+ Py_DECREF(mit);
2722
+ return NULL;
2723
+ }
2724
+ dtypes[0] = PyArray_DescrFromType(NPY_INTP);
2725
+ op_flags[0] = NPY_ITER_NBO | NPY_ITER_ALIGNED | NPY_ITER_READONLY;
2726
+
2727
+ mit->fancy_dims[0] = 1;
2728
+ mit->numiter = 1;
2729
+ }
2730
+
2731
+ /*
2732
+ * Now there are two general cases how extra_op is used:
2733
+ * 1. No subspace iteration is necessary, so the extra_op can
2734
+ * be included into the index iterator (it will be buffered)
2735
+ * 2. Subspace iteration is necessary, so the extra op is iterated
2736
+ * independently, and the iteration order is fixed at C (could
2737
+ * also use Fortran order if the array is Fortran order).
2738
+ * In this case the subspace iterator is not buffered.
2739
+ *
2740
+ * If subspace iteration is necessary and an extra_op was given,
2741
+ * it may also be necessary to transpose the extra_op (or signal
2742
+ * the transposing to the advanced iterator).
2743
+ */
2744
+
2745
+ if (extra_op != NULL) {
2746
+ /*
2747
+ * If we have an extra_op given, need to prepare it.
2748
+ * 1. Subclasses might mess with the shape, so need a baseclass
2749
+ * 2. Need to make sure the shape is compatible
2750
+ * 3. May need to remove leading 1s and transpose dimensions.
2751
+ * Normal assignments allows broadcasting away leading 1s, but
2752
+ * the transposing code does not like this.
2753
+ */
2754
+ if (!PyArray_CheckExact(extra_op)) {
2755
+ extra_op = (PyArrayObject *)PyArray_View(extra_op, NULL,
2756
+ &PyArray_Type);
2757
+ if (extra_op == NULL) {
2758
+ goto fail;
2759
+ }
2760
+ }
2761
+ else {
2762
+ Py_INCREF(extra_op);
2763
+ }
2764
+
2765
+ if (PyArray_NDIM(extra_op) > mit->nd) {
2766
+ /*
2767
+ * Usual assignments allows removal of leading one dimensions.
2768
+ * (or equivalently adding of one dimensions to the array being
2769
+ * assigned to). To implement this, reshape the array.
2770
+ */
2771
+ PyArrayObject *tmp_arr;
2772
+ PyArray_Dims permute;
2773
+
2774
+ permute.len = mit->nd;
2775
+ permute.ptr = &PyArray_DIMS(extra_op)[
2776
+ PyArray_NDIM(extra_op) - mit->nd];
2777
+ tmp_arr = (PyArrayObject*)PyArray_Newshape(extra_op, &permute,
2778
+ NPY_CORDER);
2779
+ if (tmp_arr == NULL) {
2780
+ goto broadcast_error;
2781
+ }
2782
+ Py_DECREF(extra_op);
2783
+ extra_op = tmp_arr;
2784
+ }
2785
+
2786
+ /*
2787
+ * If dimensions need to be prepended (and no swapaxis is needed),
2788
+ * use op_axes after extra_op is allocated for sure.
2789
+ */
2790
+ if (mit->consec) {
2791
+ PyArray_MapIterSwapAxes(mit, &extra_op, 0);
2792
+ if (extra_op == NULL) {
2793
+ goto fail;
2794
+ }
2795
+ }
2796
+
2797
+ if (subspace && !uses_subspace) {
2798
+ /*
2799
+ * We are not using the subspace, so its size is 1.
2800
+ * All dimensions of the extra_op corresponding to the
2801
+ * subspace must be equal to 1.
2802
+ */
2803
+ if (PyArray_NDIM(subspace) <= PyArray_NDIM(extra_op)) {
2804
+ j = PyArray_NDIM(subspace);
2805
+ }
2806
+ else {
2807
+ j = PyArray_NDIM(extra_op);
2808
+ }
2809
+ for (i = 1; i < j + 1; i++) {
2810
+ if (PyArray_DIM(extra_op, PyArray_NDIM(extra_op) - i) != 1) {
2811
+ goto broadcast_error;
2812
+ }
2813
+ }
2814
+ }
2815
+ }
2816
+
2817
+ /*
2818
+ * If subspace is not NULL, NpyIter cannot allocate extra_op for us.
2819
+ * This is a bit of a kludge. A dummy iterator is created to find
2820
+ * the correct output shape and stride permutation.
2821
+ * TODO: This can at least partially be replaced, since the shape
2822
+ * is found for broadcasting errors.
2823
+ */
2824
+ else if (extra_op_flags && (subspace != NULL)) {
2825
+ npy_uint32 tmp_op_flags[NPY_MAXDIMS];
2826
+
2827
+ NpyIter *tmp_iter;
2828
+ npy_intp stride;
2829
+ npy_intp strides[NPY_MAXDIMS];
2830
+ npy_stride_sort_item strideperm[NPY_MAXDIMS];
2831
+
2832
+ for (i=0; i < mit->numiter; i++) {
2833
+ tmp_op_flags[i] = NPY_ITER_READONLY;
2834
+ }
2835
+
2836
+ Py_INCREF(extra_op_dtype);
2837
+ mit->extra_op_dtype = extra_op_dtype;
2838
+
2839
+ /* Create an iterator, just to broadcast the arrays?! */
2840
+ tmp_iter = NpyIter_MultiNew(mit->numiter, index_arrays,
2841
+ NPY_ITER_ZEROSIZE_OK |
2842
+ NPY_ITER_REFS_OK |
2843
+ NPY_ITER_MULTI_INDEX |
2844
+ NPY_ITER_DONT_NEGATE_STRIDES,
2845
+ NPY_KEEPORDER,
2846
+ NPY_UNSAFE_CASTING,
2847
+ tmp_op_flags, NULL);
2848
+ if (tmp_iter == NULL) {
2849
+ goto fail;
2850
+ }
2851
+
2852
+ if (PyArray_SIZE(subspace) == 1) {
2853
+ /*
2854
+ * nditer allows itemsize with npy_intp type, so it works
2855
+ * here, but it would *not* work directly, since elsize
2856
+ * is limited to int.
2857
+ */
2858
+ if (!NpyIter_CreateCompatibleStrides(tmp_iter,
2859
+ extra_op_dtype->elsize * PyArray_SIZE(subspace),
2860
+ strides)) {
2861
+ PyErr_SetString(PyExc_ValueError,
2862
+ "internal error: failed to find output array strides");
2863
+ goto fail;
2864
+ }
2865
+ }
2866
+ else {
2867
+ /* Just use C-order strides (TODO: allow also F-order) */
2868
+ stride = extra_op_dtype->elsize * PyArray_SIZE(subspace);
2869
+ for (i=mit->nd_fancy - 1; i >= 0; i--) {
2870
+ strides[i] = stride;
2871
+ stride *= mit->dimensions[i];
2872
+ }
2873
+ }
2874
+ NpyIter_Deallocate(tmp_iter);
2875
+
2876
+ /* shape is set, and strides is set up to mit->nd, set rest */
2877
+ PyArray_CreateSortedStridePerm(PyArray_NDIM(subspace),
2878
+ PyArray_STRIDES(subspace), strideperm);
2879
+ stride = extra_op_dtype->elsize;
2880
+ for (i=PyArray_NDIM(subspace) - 1; i >= 0; i--) {
2881
+ strides[mit->nd_fancy + strideperm[i].perm] = stride;
2882
+ stride *= PyArray_DIM(subspace, strideperm[i].perm);
2883
+ }
2884
+
2885
+ /*
2886
+ * Allocate new array. Note: Always base class, because
2887
+ * subclasses might mess with the shape.
2888
+ */
2889
+ Py_INCREF(extra_op_dtype);
2890
+ extra_op = (PyArrayObject *)PyArray_NewFromDescr(&PyArray_Type,
2891
+ extra_op_dtype,
2892
+ mit->nd_fancy + PyArray_NDIM(subspace),
2893
+ mit->dimensions, strides,
2894
+ NULL, 0, NULL);
2895
+ if (extra_op == NULL) {
2896
+ goto fail;
2897
+ }
2898
+ }
2899
+
2900
+ /*
2901
+ * The extra op is now either allocated, can be allocated by
2902
+ * NpyIter (no subspace) or is not used at all.
2903
+ *
2904
+ * Need to set the axis remapping for the extra_op. This needs
2905
+ * to cause ignoring of subspace dimensions and prepending -1
2906
+ * for broadcasting.
2907
+ */
2908
+ if (extra_op) {
2909
+ for (j=0; j < mit->nd - PyArray_NDIM(extra_op); j++) {
2910
+ single_op_axis[j] = -1;
2911
+ }
2912
+ for (i=0; i < PyArray_NDIM(extra_op); i++) {
2913
+ /* (fills subspace dimensions too, but they are not unused) */
2914
+ single_op_axis[j++] = i;
2915
+ }
2916
+ }
2917
+
2918
+ /*
2919
+ * NOTE: If for some reason someone wishes to use REDUCE_OK, be
2920
+ * careful and fix the error message replacement at the end.
2921
+ */
2922
+ outer_flags = NPY_ITER_ZEROSIZE_OK |
2923
+ NPY_ITER_REFS_OK |
2924
+ NPY_ITER_BUFFERED |
2925
+ NPY_ITER_DELAY_BUFALLOC |
2926
+ NPY_ITER_GROWINNER;
2927
+
2928
+ /*
2929
+ * For a single 1-d operand, guarantee iteration order
2930
+ * (scipy used this). Note that subspace may be used.
2931
+ */
2932
+ if ((mit->numiter == 1) && (PyArray_NDIM(index_arrays[0]) == 1)) {
2933
+ outer_flags |= NPY_ITER_DONT_NEGATE_STRIDES;
2934
+ }
2935
+
2936
+ /* If external array is iterated, and no subspace is needed */
2937
+ nops = mit->numiter;
2938
+ if (extra_op_flags && !uses_subspace) {
2939
+ /*
2940
+ * NOTE: This small limitation should practically not matter.
2941
+ * (replaces npyiter error)
2942
+ */
2943
+ if (mit->numiter > NPY_MAXDIMS - 1) {
2944
+ PyErr_Format(PyExc_IndexError,
2945
+ "when no subspace is given, the number of index "
2946
+ "arrays cannot be above %d, but %d index arrays found",
2947
+ NPY_MAXDIMS - 1, mit->numiter);
2948
+ goto fail;
2949
+ }
2950
+
2951
+ nops += 1;
2952
+ index_arrays[mit->numiter] = extra_op;
2953
+
2954
+ Py_INCREF(extra_op_dtype);
2955
+ dtypes[mit->numiter] = extra_op_dtype;
2956
+ op_flags[mit->numiter] = (extra_op_flags |
2957
+ NPY_ITER_ALLOCATE |
2958
+ NPY_ITER_NO_SUBTYPE);
2959
+
2960
+ if (extra_op) {
2961
+ /* Use the axis remapping */
2962
+ op_axes[mit->numiter] = single_op_axis;
2963
+ mit->outer = NpyIter_AdvancedNew(nops, index_arrays, outer_flags,
2964
+ NPY_KEEPORDER, NPY_UNSAFE_CASTING, op_flags, dtypes,
2965
+ mit->nd_fancy, op_axes, mit->dimensions, 0);
2966
+ }
2967
+ else {
2968
+ mit->outer = NpyIter_MultiNew(nops, index_arrays, outer_flags,
2969
+ NPY_KEEPORDER, NPY_UNSAFE_CASTING, op_flags, dtypes);
2970
+ }
2971
+
2972
+ }
2973
+ else {
2974
+ /* TODO: Maybe add test for the CORDER, and maybe also allow F */
2975
+ mit->outer = NpyIter_MultiNew(nops, index_arrays, outer_flags,
2976
+ NPY_CORDER, NPY_UNSAFE_CASTING, op_flags, dtypes);
2977
+ }
2978
+
2979
+ /* NpyIter cleanup and information: */
2980
+ for (i=0; i < nops; i++) {
2981
+ Py_DECREF(dtypes[i]);
2982
+ }
2983
+ if (dummy_array) {
2984
+ Py_DECREF(index_arrays[0]);
2985
+ }
2986
+ if (mit->outer == NULL) {
2987
+ goto fail;
2988
+ }
2989
+ if (!uses_subspace) {
2990
+ NpyIter_EnableExternalLoop(mit->outer);
2991
+ }
2992
+
2993
+ mit->outer_next = NpyIter_GetIterNext(mit->outer, NULL);
2994
+ if (mit->outer_next == NULL) {
2995
+ goto fail;
2996
+ }
2997
+ mit->outer_ptrs = NpyIter_GetDataPtrArray(mit->outer);
2998
+ if (!uses_subspace) {
2999
+ mit->outer_strides = NpyIter_GetInnerStrideArray(mit->outer);
3000
+ }
3001
+ if (NpyIter_IterationNeedsAPI(mit->outer)) {
3002
+ mit->needs_api = 1;
3003
+ /* We may be doing a cast for the buffer, and that may have failed */
3004
+ if (PyErr_Occurred()) {
3005
+ goto fail;
3006
+ }
3007
+ }
3008
+
3009
+ /* Get the allocated extra_op */
3010
+ if (extra_op_flags) {
3011
+ if (extra_op == NULL) {
3012
+ mit->extra_op = NpyIter_GetOperandArray(mit->outer)[mit->numiter];
3013
+ }
3014
+ else {
3015
+ mit->extra_op = extra_op;
3016
+ }
3017
+ Py_INCREF(mit->extra_op);
3018
+ }
3019
+
3020
+ /*
3021
+ * If extra_op is being tracked but subspace is used, we need
3022
+ * to create a dedicated iterator for the outer iteration of
3023
+ * the extra operand.
3024
+ */
3025
+ if (extra_op_flags && uses_subspace) {
3026
+ op_axes[0] = single_op_axis;
3027
+ mit->extra_op_iter = NpyIter_AdvancedNew(1, &extra_op,
3028
+ NPY_ITER_ZEROSIZE_OK |
3029
+ NPY_ITER_REFS_OK |
3030
+ NPY_ITER_GROWINNER,
3031
+ NPY_CORDER,
3032
+ NPY_NO_CASTING,
3033
+ &extra_op_flags,
3034
+ NULL,
3035
+ mit->nd_fancy, op_axes,
3036
+ mit->dimensions, 0);
3037
+
3038
+ if (mit->extra_op_iter == NULL) {
3039
+ goto fail;
3040
+ }
3041
+
3042
+ mit->extra_op_next = NpyIter_GetIterNext(mit->extra_op_iter, NULL);
3043
+ if (mit->extra_op_next == NULL) {
3044
+ goto fail;
3045
+ }
3046
+ mit->extra_op_ptrs = NpyIter_GetDataPtrArray(mit->extra_op_iter);
3047
+ }
3048
+
3049
+ /* Get the full dimension information */
3050
+ if (subspace != NULL) {
3051
+ mit->baseoffset = PyArray_BYTES(subspace);
3052
+ }
3053
+ else {
3054
+ mit->baseoffset = PyArray_BYTES(arr);
3055
+ }
3056
+
3057
+ /* Calculate total size of the MapIter */
3058
+ mit->size = PyArray_OverflowMultiplyList(mit->dimensions, mit->nd);
3059
+ if (mit->size < 0) {
3060
+ PyErr_SetString(PyExc_ValueError,
3061
+ "advanced indexing operation result is too large");
3062
+ goto fail;
3063
+ }
3064
+
3065
+ /* Can now return early if no subspace is being used */
3066
+ if (!uses_subspace) {
3067
+ Py_XDECREF(extra_op);
3068
+ return (PyObject *)mit;
3069
+ }
3070
+
3071
+ /* Fill in the last bit of mapiter information needed */
3072
+
3073
+ /*
3074
+ * Now just need to create the correct subspace iterator.
3075
+ */
3076
+ index_arrays[0] = subspace;
3077
+ dtypes[0] = NULL;
3078
+ op_flags[0] = subspace_flags;
3079
+ op_axes[0] = NULL;
3080
+
3081
+ if (extra_op_flags) {
3082
+ /* We should iterate the extra_op as well */
3083
+ nops = 2;
3084
+ index_arrays[1] = extra_op;
3085
+
3086
+ op_axes[1] = &single_op_axis[mit->nd_fancy];
3087
+
3088
+ /*
3089
+ * Buffering is never used here, but in case someone plugs it in
3090
+ * somewhere else, set the type correctly then.
3091
+ */
3092
+ if ((subspace_iter_flags & NPY_ITER_BUFFERED)) {
3093
+ dtypes[1] = extra_op_dtype;
3094
+ }
3095
+ else {
3096
+ dtypes[1] = NULL;
3097
+ }
3098
+ op_flags[1] = extra_op_flags;
3099
+ }
3100
+ else {
3101
+ nops = 1;
3102
+ }
3103
+
3104
+ mit->subspace_iter = NpyIter_AdvancedNew(nops, index_arrays,
3105
+ NPY_ITER_ZEROSIZE_OK |
3106
+ NPY_ITER_REFS_OK |
3107
+ NPY_ITER_GROWINNER |
3108
+ NPY_ITER_EXTERNAL_LOOP |
3109
+ NPY_ITER_DELAY_BUFALLOC |
3110
+ subspace_iter_flags,
3111
+ (nops == 1 ? NPY_CORDER : NPY_KEEPORDER),
3112
+ NPY_UNSAFE_CASTING,
3113
+ op_flags, dtypes,
3114
+ PyArray_NDIM(subspace), op_axes,
3115
+ &mit->dimensions[mit->nd_fancy], 0);
3116
+
3117
+ if (mit->subspace_iter == NULL) {
3118
+ goto fail;
3119
+ }
3120
+
3121
+ mit->subspace_next = NpyIter_GetIterNext(mit->subspace_iter, NULL);
3122
+ if (mit->subspace_next == NULL) {
3123
+ goto fail;
3124
+ }
3125
+ mit->subspace_ptrs = NpyIter_GetDataPtrArray(mit->subspace_iter);
3126
+ mit->subspace_strides = NpyIter_GetInnerStrideArray(mit->subspace_iter);
3127
+
3128
+ if (NpyIter_IterationNeedsAPI(mit->outer)) {
3129
+ mit->needs_api = 1;
3130
+ /*
3131
+ * NOTE: In this case, need to call PyErr_Occurred() after
3132
+ * basepointer resetting (buffer allocation)
3133
+ */
3134
+ }
3135
+
3136
+ Py_XDECREF(extra_op);
3137
+ return (PyObject *)mit;
3138
+
3139
+ fail:
3140
+ /*
3141
+ * Check whether the operand could not be broadcast and replace the error
3142
+ * in that case. This should however normally be found early with a
3143
+ * direct goto to broadcast_error
3144
+ */
3145
+ if (extra_op == NULL) {
3146
+ goto finish;
3147
+ }
3148
+
3149
+ j = mit->nd;
3150
+ for (i = PyArray_NDIM(extra_op) - 1; i >= 0; i--) {
3151
+ j--;
3152
+ if ((PyArray_DIM(extra_op, i) != 1) &&
3153
+ /* (j < 0 is currently impossible, extra_op is reshaped) */
3154
+ j >= 0 &&
3155
+ PyArray_DIM(extra_op, i) != mit->dimensions[j]) {
3156
+ /* extra_op cannot be broadcast to the indexing result */
3157
+ goto broadcast_error;
3158
+ }
3159
+ }
3160
+ goto finish;
3161
+
3162
+ broadcast_error:
3163
+ errmsg = PyUString_FromString("shape mismatch: value array "
3164
+ "of shape ");
3165
+ if (errmsg == NULL) {
3166
+ goto finish;
3167
+ }
3168
+
3169
+ /* Report the shape of the original array if it exists */
3170
+ if (original_extra_op == NULL) {
3171
+ original_extra_op = extra_op;
3172
+ }
3173
+
3174
+ tmp = convert_shape_to_string(PyArray_NDIM(original_extra_op),
3175
+ PyArray_DIMS(original_extra_op), " ");
3176
+ if (tmp == NULL) {
3177
+ goto finish;
3178
+ }
3179
+ PyUString_ConcatAndDel(&errmsg, tmp);
3180
+ if (errmsg == NULL) {
3181
+ goto finish;
3182
+ }
3183
+
3184
+ tmp = PyUString_FromString("could not be broadcast to indexing "
3185
+ "result of shape ");
3186
+ PyUString_ConcatAndDel(&errmsg, tmp);
3187
+ if (errmsg == NULL) {
3188
+ goto finish;
3189
+ }
3190
+
3191
+ tmp = convert_shape_to_string(mit->nd, mit->dimensions, "");
3192
+ if (tmp == NULL) {
3193
+ goto finish;
3194
+ }
3195
+ PyUString_ConcatAndDel(&errmsg, tmp);
3196
+ if (errmsg == NULL) {
3197
+ goto finish;
3198
+ }
3199
+
3200
+ PyErr_SetObject(PyExc_ValueError, errmsg);
3201
+ Py_DECREF(errmsg);
3202
+
3203
+ finish:
3204
+ Py_XDECREF(extra_op);
3205
+ Py_DECREF(mit);
3206
+ return NULL;
3207
+ }
3208
+
3209
+
3210
+ /*NUMPY_API
3211
+ *
3212
+ * Use advanced indexing to iterate an array. Please note
3213
+ * that most of this public API is currently not guaranteed
3214
+ * to stay the same between versions. If you plan on using
3215
+ * it, please consider adding more utility functions here
3216
+ * to accommodate new features.
3217
+ */
3218
+ NPY_NO_EXPORT PyObject *
3219
+ PyArray_MapIterArray(PyArrayObject * a, PyObject * index)
3220
+ {
3221
+ PyArrayMapIterObject * mit = NULL;
3222
+ PyArrayObject *subspace = NULL;
3223
+ npy_index_info indices[NPY_MAXDIMS * 2 + 1];
3224
+ int i, index_num, ndim, fancy_ndim, index_type;
3225
+
3226
+ index_type = prepare_index(a, index, indices, &index_num,
3227
+ &ndim, &fancy_ndim, 0);
3228
+
3229
+ if (index_type < 0) {
3230
+ return NULL;
3231
+ }
3232
+
3233
+ /* If it is not a pure fancy index, need to get the subspace */
3234
+ if (index_type != HAS_FANCY) {
3235
+ if (get_view_from_index(a, &subspace, indices, index_num, 1) < 0) {
3236
+ goto fail;
3237
+ }
3238
+ }
3239
+
3240
+ mit = (PyArrayMapIterObject *)PyArray_MapIterNew(indices, index_num,
3241
+ index_type, ndim,
3242
+ fancy_ndim,
3243
+ a, subspace, 0,
3244
+ NPY_ITER_READWRITE,
3245
+ 0, NULL, NULL);
3246
+ if (mit == NULL) {
3247
+ goto fail;
3248
+ }
3249
+
3250
+ /* Required for backward compatibility */
3251
+ mit->ait = (PyArrayIterObject *)PyArray_IterNew((PyObject *)a);
3252
+ if (mit->ait == NULL) {
3253
+ goto fail;
3254
+ }
3255
+
3256
+ if (PyArray_MapIterCheckIndices(mit) < 0) {
3257
+ goto fail;
3258
+ }
3259
+
3260
+ Py_XDECREF(subspace);
3261
+ PyArray_MapIterReset(mit);
3262
+
3263
+ for (i=0; i < index_num; i++) {
3264
+ Py_XDECREF(indices[i].object);
3265
+ }
3266
+
3267
+ return (PyObject *)mit;
3268
+
3269
+ fail:
3270
+ Py_XDECREF(subspace);
3271
+ Py_XDECREF((PyObject *)mit);
3272
+ for (i=0; i < index_num; i++) {
3273
+ Py_XDECREF(indices[i].object);
3274
+ }
3275
+ return NULL;
3276
+ }
3277
+
3278
+
3279
+ #undef HAS_INTEGER
3280
+ #undef HAS_NEWAXIS
3281
+ #undef HAS_SLICE
3282
+ #undef HAS_ELLIPSIS
3283
+ #undef HAS_FANCY
3284
+ #undef HAS_BOOL
3285
+ #undef HAS_SCALAR_ARRAY
3286
+ #undef HAS_0D_BOOL
3287
+
3288
+
3289
+ static void
3290
+ arraymapiter_dealloc(PyArrayMapIterObject *mit)
3291
+ {
3292
+ Py_XDECREF(mit->array);
3293
+ Py_XDECREF(mit->ait);
3294
+ Py_XDECREF(mit->subspace);
3295
+ Py_XDECREF(mit->extra_op);
3296
+ Py_XDECREF(mit->extra_op_dtype);
3297
+ if (mit->outer != NULL) {
3298
+ NpyIter_Deallocate(mit->outer);
3299
+ }
3300
+ if (mit->subspace_iter != NULL) {
3301
+ NpyIter_Deallocate(mit->subspace_iter);
3302
+ }
3303
+ if (mit->extra_op_iter != NULL) {
3304
+ NpyIter_Deallocate(mit->extra_op_iter);
3305
+ }
3306
+ PyArray_free(mit);
3307
+ }
3308
+
3309
+ /*
3310
+ * The mapiter object must be created new each time. It does not work
3311
+ * to bind to a new array, and continue.
3312
+ *
3313
+ * This was the orginal intention, but currently that does not work.
3314
+ * Do not expose the MapIter_Type to Python.
3315
+ *
3316
+ * The original mapiter(indexobj); mapiter.bind(a); idea is now fully
3317
+ * removed. This is not very useful anyway, since mapiter is equivalent
3318
+ * to a[indexobj].flat but the latter gets to use slice syntax.
3319
+ */
3320
+ NPY_NO_EXPORT PyTypeObject PyArrayMapIter_Type = {
3321
+ #if defined(NPY_PY3K)
3322
+ PyVarObject_HEAD_INIT(NULL, 0)
3323
+ #else
3324
+ PyObject_HEAD_INIT(NULL)
3325
+ 0, /* ob_size */
3326
+ #endif
3327
+ "numpy.mapiter", /* tp_name */
3328
+ sizeof(PyArrayMapIterObject), /* tp_basicsize */
3329
+ 0, /* tp_itemsize */
3330
+ /* methods */
3331
+ (destructor)arraymapiter_dealloc, /* tp_dealloc */
3332
+ 0, /* tp_print */
3333
+ 0, /* tp_getattr */
3334
+ 0, /* tp_setattr */
3335
+ #if defined(NPY_PY3K)
3336
+ 0, /* tp_reserved */
3337
+ #else
3338
+ 0, /* tp_compare */
3339
+ #endif
3340
+ 0, /* tp_repr */
3341
+ 0, /* tp_as_number */
3342
+ 0, /* tp_as_sequence */
3343
+ 0, /* tp_as_mapping */
3344
+ 0, /* tp_hash */
3345
+ 0, /* tp_call */
3346
+ 0, /* tp_str */
3347
+ 0, /* tp_getattro */
3348
+ 0, /* tp_setattro */
3349
+ 0, /* tp_as_buffer */
3350
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
3351
+ 0, /* tp_doc */
3352
+ 0, /* tp_traverse */
3353
+ 0, /* tp_clear */
3354
+ 0, /* tp_richcompare */
3355
+ 0, /* tp_weaklistoffset */
3356
+ 0, /* tp_iter */
3357
+ 0, /* tp_iternext */
3358
+ 0, /* tp_methods */
3359
+ 0, /* tp_members */
3360
+ 0, /* tp_getset */
3361
+ 0, /* tp_base */
3362
+ 0, /* tp_dict */
3363
+ 0, /* tp_descr_get */
3364
+ 0, /* tp_descr_set */
3365
+ 0, /* tp_dictoffset */
3366
+ 0, /* tp_init */
3367
+ 0, /* tp_alloc */
3368
+ 0, /* tp_new */
3369
+ 0, /* tp_free */
3370
+ 0, /* tp_is_gc */
3371
+ 0, /* tp_bases */
3372
+ 0, /* tp_mro */
3373
+ 0, /* tp_cache */
3374
+ 0, /* tp_subclasses */
3375
+ 0, /* tp_weaklist */
3376
+ 0, /* tp_del */
3377
+ #if PY_VERSION_HEX >= 0x02060000
3378
+ 0, /* tp_version_tag */
3379
+ #endif
3380
+ };