numpy 1.9.3__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 (1590) 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/source/conf.py +331 -0
  12. numpy-1.10.0.post2/doc/source/dev/development_environment.rst +211 -0
  13. numpy-1.10.0.post2/doc/source/dev/gitwash/development_workflow.rst +534 -0
  14. numpy-1.10.0.post2/doc/source/dev/gitwash/git_links.inc +95 -0
  15. numpy-1.10.0.post2/doc/source/dev/gitwash/index.rst +14 -0
  16. numpy-1.10.0.post2/doc/source/dev/index.rst +11 -0
  17. numpy-1.10.0.post2/doc/source/reference/arrays.classes.rst +490 -0
  18. numpy-1.10.0.post2/doc/source/reference/arrays.dtypes.rst +536 -0
  19. numpy-1.10.0.post2/doc/source/reference/arrays.indexing.rst +549 -0
  20. numpy-1.10.0.post2/doc/source/reference/arrays.interface.rst +337 -0
  21. numpy-1.10.0.post2/doc/source/reference/arrays.ndarray.rst +622 -0
  22. numpy-1.10.0.post2/doc/source/reference/arrays.scalars.rst +291 -0
  23. numpy-1.10.0.post2/doc/source/reference/c-api.array.rst +3393 -0
  24. numpy-1.10.0.post2/doc/source/reference/c-api.config.rst +103 -0
  25. numpy-1.10.0.post2/doc/source/reference/c-api.coremath.rst +420 -0
  26. numpy-1.10.0.post2/doc/source/reference/c-api.dtype.rst +376 -0
  27. numpy-1.10.0.post2/doc/source/reference/c-api.generalized-ufuncs.rst +191 -0
  28. numpy-1.10.0.post2/doc/source/reference/c-api.iterator.rst +1300 -0
  29. numpy-1.10.0.post2/doc/source/reference/c-api.types-and-structures.rst +1240 -0
  30. numpy-1.10.0.post2/doc/source/reference/c-api.ufunc.rst +413 -0
  31. numpy-1.10.0.post2/doc/source/reference/index.rst +43 -0
  32. numpy-1.10.0.post2/doc/source/reference/internals.code-explanations.rst +615 -0
  33. numpy-1.10.0.post2/doc/source/reference/routines.array-manipulation.rst +115 -0
  34. numpy-1.10.0.post2/doc/source/reference/routines.io.rst +78 -0
  35. numpy-1.10.0.post2/doc/source/reference/routines.linalg.rst +91 -0
  36. numpy-1.10.0.post2/doc/source/reference/routines.ma.rst +407 -0
  37. numpy-1.10.0.post2/doc/source/reference/routines.sort.rst +41 -0
  38. numpy-1.10.0.post2/doc/source/reference/routines.statistics.rst +57 -0
  39. numpy-1.10.0.post2/doc/source/reference/swig.interface-file.rst +1066 -0
  40. numpy-1.10.0.post2/doc/source/reference/swig.testing.rst +167 -0
  41. numpy-1.10.0.post2/doc/source/reference/ufuncs.rst +666 -0
  42. numpy-1.10.0.post2/doc/source/release.rst +20 -0
  43. numpy-1.10.0.post2/doc/source/user/basics.io.genfromtxt.rst +531 -0
  44. numpy-1.10.0.post2/doc/source/user/basics.rec.rst +7 -0
  45. numpy-1.10.0.post2/doc/source/user/c-info.beyond-basics.rst +560 -0
  46. numpy-1.10.0.post2/doc/source/user/c-info.how-to-extend.rst +642 -0
  47. numpy-1.10.0.post2/doc/source/user/c-info.python-as-glue.rst +1177 -0
  48. numpy-1.10.0.post2/doc/source/user/c-info.ufunc-tutorial.rst +1211 -0
  49. numpy-1.10.0.post2/doc/source/user/install.rst +194 -0
  50. numpy-1.10.0.post2/numpy/__init__.py +227 -0
  51. numpy-1.10.0.post2/numpy/_build_utils/README +8 -0
  52. numpy-1.10.0.post2/numpy/_build_utils/apple_accelerate.py +21 -0
  53. numpy-1.10.0.post2/numpy/_build_utils/common.py +138 -0
  54. numpy-1.10.0.post2/numpy/_build_utils/src/apple_sgemv_fix.c +227 -0
  55. numpy-1.10.0.post2/numpy/_build_utils/waf.py +531 -0
  56. numpy-1.10.0.post2/numpy/_import_tools.py +353 -0
  57. numpy-1.10.0.post2/numpy/add_newdocs.py +7611 -0
  58. numpy-1.10.0.post2/numpy/compat/_inspect.py +194 -0
  59. numpy-1.10.0.post2/numpy/compat/py3k.py +88 -0
  60. numpy-1.10.0.post2/numpy/compat/setup.py +12 -0
  61. numpy-1.10.0.post2/numpy/core/__init__.py +89 -0
  62. numpy-1.10.0.post2/numpy/core/_internal.py +761 -0
  63. numpy-1.10.0.post2/numpy/core/_methods.py +133 -0
  64. numpy-1.10.0.post2/numpy/core/arrayprint.py +760 -0
  65. numpy-1.10.0.post2/numpy/core/code_generators/cversions.txt +34 -0
  66. numpy-1.10.0.post2/numpy/core/code_generators/generate_ufunc_api.py +219 -0
  67. numpy-1.10.0.post2/numpy/core/code_generators/generate_umath.py +1017 -0
  68. numpy-1.10.0.post2/numpy/core/code_generators/numpy_api.py +415 -0
  69. numpy-1.10.0.post2/numpy/core/code_generators/ufunc_docstrings.py +3442 -0
  70. numpy-1.10.0.post2/numpy/core/defchararray.py +2689 -0
  71. numpy-1.10.0.post2/numpy/core/fromnumeric.py +3089 -0
  72. numpy-1.10.0.post2/numpy/core/function_base.py +203 -0
  73. numpy-1.10.0.post2/numpy/core/getlimits.py +308 -0
  74. numpy-1.10.0.post2/numpy/core/include/numpy/ndarrayobject.h +246 -0
  75. numpy-1.10.0.post2/numpy/core/include/numpy/ndarraytypes.h +1797 -0
  76. numpy-1.10.0.post2/numpy/core/include/numpy/npy_3kcompat.h +448 -0
  77. numpy-1.10.0.post2/numpy/core/include/numpy/npy_common.h +1051 -0
  78. numpy-1.10.0.post2/numpy/core/include/numpy/npy_cpu.h +92 -0
  79. numpy-1.10.0.post2/numpy/core/include/numpy/npy_endian.h +61 -0
  80. numpy-1.10.0.post2/numpy/core/include/numpy/npy_math.h +525 -0
  81. numpy-1.10.0.post2/numpy/core/include/numpy/numpyconfig.h +36 -0
  82. numpy-1.10.0.post2/numpy/core/machar.py +342 -0
  83. numpy-1.10.0.post2/numpy/core/memmap.py +311 -0
  84. numpy-1.10.0.post2/numpy/core/numeric.py +2893 -0
  85. numpy-1.10.0.post2/numpy/core/numerictypes.py +1036 -0
  86. numpy-1.10.0.post2/numpy/core/records.py +846 -0
  87. numpy-1.10.0.post2/numpy/core/setup.py +983 -0
  88. numpy-1.10.0.post2/numpy/core/setup_common.py +352 -0
  89. numpy-1.10.0.post2/numpy/core/shape_base.py +350 -0
  90. numpy-1.10.0.post2/numpy/core/src/multiarray/alloc.c +244 -0
  91. numpy-1.10.0.post2/numpy/core/src/multiarray/arrayobject.c +1858 -0
  92. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.c.src +4738 -0
  93. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.h +37 -0
  94. numpy-1.10.0.post2/numpy/core/src/multiarray/buffer.c +981 -0
  95. numpy-1.10.0.post2/numpy/core/src/multiarray/calculation.c +1224 -0
  96. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.c +812 -0
  97. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.h +10 -0
  98. numpy-1.10.0.post2/numpy/core/src/multiarray/common.c +911 -0
  99. numpy-1.10.0.post2/numpy/core/src/multiarray/common.h +250 -0
  100. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.c +1664 -0
  101. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.h +24 -0
  102. numpy-1.10.0.post2/numpy/core/src/multiarray/conversion_utils.c +1217 -0
  103. numpy-1.10.0.post2/numpy/core/src/multiarray/convert.c +590 -0
  104. numpy-1.10.0.post2/numpy/core/src/multiarray/convert_datatype.c +2155 -0
  105. numpy-1.10.0.post2/numpy/core/src/multiarray/ctors.c +3838 -0
  106. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime.c +3821 -0
  107. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busday.c +1322 -0
  108. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busdaycal.c +552 -0
  109. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_strings.c +1772 -0
  110. numpy-1.10.0.post2/numpy/core/src/multiarray/descriptor.c +3719 -0
  111. numpy-1.10.0.post2/numpy/core/src/multiarray/dtype_transfer.c +4239 -0
  112. numpy-1.10.0.post2/numpy/core/src/multiarray/einsum.c.src +3005 -0
  113. numpy-1.10.0.post2/numpy/core/src/multiarray/getset.c +986 -0
  114. numpy-1.10.0.post2/numpy/core/src/multiarray/hashdescr.c +318 -0
  115. numpy-1.10.0.post2/numpy/core/src/multiarray/item_selection.c +2413 -0
  116. numpy-1.10.0.post2/numpy/core/src/multiarray/iterators.c +2192 -0
  117. numpy-1.10.0.post2/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +1769 -0
  118. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.c +3380 -0
  119. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.h +77 -0
  120. numpy-1.10.0.post2/numpy/core/src/multiarray/methods.c +2514 -0
  121. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarray_tests.c.src +1035 -0
  122. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.c +4628 -0
  123. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.h +15 -0
  124. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_api.c +2809 -0
  125. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_constr.c +3160 -0
  126. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_pywrap.c +2499 -0
  127. numpy-1.10.0.post2/numpy/core/src/multiarray/number.c +1106 -0
  128. numpy-1.10.0.post2/numpy/core/src/multiarray/number.h +77 -0
  129. numpy-1.10.0.post2/numpy/core/src/multiarray/numpymemoryview.c +308 -0
  130. numpy-1.10.0.post2/numpy/core/src/multiarray/numpyos.c +683 -0
  131. numpy-1.10.0.post2/numpy/core/src/multiarray/scalarapi.c +870 -0
  132. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.c.src +4343 -0
  133. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.h +55 -0
  134. numpy-1.10.0.post2/numpy/core/src/multiarray/shape.c +1131 -0
  135. numpy-1.10.0.post2/numpy/core/src/multiarray/ucsnarrow.c +174 -0
  136. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.c +180 -0
  137. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.h +18 -0
  138. numpy-1.10.0.post2/numpy/core/src/npymath/ieee754.c.src +808 -0
  139. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math.c.src +597 -0
  140. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_complex.c.src +1788 -0
  141. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_private.h +544 -0
  142. numpy-1.10.0.post2/numpy/core/src/npysort/heapsort.c.src +402 -0
  143. numpy-1.10.0.post2/numpy/core/src/npysort/mergesort.c.src +488 -0
  144. numpy-1.10.0.post2/numpy/core/src/npysort/npysort_common.h +360 -0
  145. numpy-1.10.0.post2/numpy/core/src/npysort/quicksort.c.src +523 -0
  146. numpy-1.10.0.post2/numpy/core/src/npysort/selection.c.src +426 -0
  147. numpy-1.10.0.post2/numpy/core/src/private/npy_cblas.h +584 -0
  148. numpy-1.10.0.post2/numpy/core/src/private/npy_config.h +101 -0
  149. numpy-1.10.0.post2/numpy/core/src/private/npy_import.h +32 -0
  150. numpy-1.10.0.post2/numpy/core/src/private/npy_partition.h.src +122 -0
  151. numpy-1.10.0.post2/numpy/core/src/private/npy_sort.h +196 -0
  152. numpy-1.10.0.post2/numpy/core/src/private/templ_common.h.src +43 -0
  153. numpy-1.10.0.post2/numpy/core/src/private/ufunc_override.h +397 -0
  154. numpy-1.10.0.post2/numpy/core/src/umath/funcs.inc.src +356 -0
  155. numpy-1.10.0.post2/numpy/core/src/umath/loops.c.src +2675 -0
  156. numpy-1.10.0.post2/numpy/core/src/umath/loops.h.src +497 -0
  157. numpy-1.10.0.post2/numpy/core/src/umath/operand_flag_tests.c.src +105 -0
  158. numpy-1.10.0.post2/numpy/core/src/umath/scalarmath.c.src +1738 -0
  159. numpy-1.10.0.post2/numpy/core/src/umath/simd.inc.src +903 -0
  160. numpy-1.10.0.post2/numpy/core/src/umath/test_rational.c.src +1404 -0
  161. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_object.c +5703 -0
  162. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_type_resolution.c +2159 -0
  163. numpy-1.10.0.post2/numpy/core/src/umath/umath_tests.c.src +392 -0
  164. numpy-1.10.0.post2/numpy/core/src/umath/umathmodule.c +443 -0
  165. numpy-1.10.0.post2/numpy/core/tests/test_abc.py +47 -0
  166. numpy-1.10.0.post2/numpy/core/tests/test_api.py +515 -0
  167. numpy-1.10.0.post2/numpy/core/tests/test_arrayprint.py +171 -0
  168. numpy-1.10.0.post2/numpy/core/tests/test_datetime.py +1820 -0
  169. numpy-1.10.0.post2/numpy/core/tests/test_defchararray.py +703 -0
  170. numpy-1.10.0.post2/numpy/core/tests/test_deprecations.py +619 -0
  171. numpy-1.10.0.post2/numpy/core/tests/test_dtype.py +578 -0
  172. numpy-1.10.0.post2/numpy/core/tests/test_einsum.py +627 -0
  173. numpy-1.10.0.post2/numpy/core/tests/test_errstate.py +52 -0
  174. numpy-1.10.0.post2/numpy/core/tests/test_function_base.py +142 -0
  175. numpy-1.10.0.post2/numpy/core/tests/test_getlimits.py +77 -0
  176. numpy-1.10.0.post2/numpy/core/tests/test_half.py +436 -0
  177. numpy-1.10.0.post2/numpy/core/tests/test_indexerrors.py +126 -0
  178. numpy-1.10.0.post2/numpy/core/tests/test_indexing.py +1047 -0
  179. numpy-1.10.0.post2/numpy/core/tests/test_item_selection.py +73 -0
  180. numpy-1.10.0.post2/numpy/core/tests/test_machar.py +29 -0
  181. numpy-1.10.0.post2/numpy/core/tests/test_memmap.py +130 -0
  182. numpy-1.10.0.post2/numpy/core/tests/test_multiarray.py +5924 -0
  183. numpy-1.10.0.post2/numpy/core/tests/test_multiarray_assignment.py +84 -0
  184. numpy-1.10.0.post2/numpy/core/tests/test_nditer.py +2638 -0
  185. numpy-1.10.0.post2/numpy/core/tests/test_numeric.py +2204 -0
  186. numpy-1.10.0.post2/numpy/core/tests/test_numerictypes.py +382 -0
  187. numpy-1.10.0.post2/numpy/core/tests/test_print.py +248 -0
  188. numpy-1.10.0.post2/numpy/core/tests/test_records.py +299 -0
  189. numpy-1.10.0.post2/numpy/core/tests/test_regression.py +2177 -0
  190. numpy-1.10.0.post2/numpy/core/tests/test_scalarinherit.py +41 -0
  191. numpy-1.10.0.post2/numpy/core/tests/test_scalarmath.py +316 -0
  192. numpy-1.10.0.post2/numpy/core/tests/test_shape_base.py +319 -0
  193. numpy-1.10.0.post2/numpy/core/tests/test_ufunc.py +1227 -0
  194. numpy-1.10.0.post2/numpy/core/tests/test_umath.py +1933 -0
  195. numpy-1.10.0.post2/numpy/core/tests/test_umath_complex.py +538 -0
  196. numpy-1.10.0.post2/numpy/core/tests/test_unicode.py +360 -0
  197. numpy-1.10.0.post2/numpy/distutils/__init__.py +23 -0
  198. numpy-1.10.0.post2/numpy/distutils/ccompiler.py +690 -0
  199. numpy-1.10.0.post2/numpy/distutils/command/autodist.py +94 -0
  200. numpy-1.10.0.post2/numpy/distutils/command/build.py +47 -0
  201. numpy-1.10.0.post2/numpy/distutils/command/build_clib.py +295 -0
  202. numpy-1.10.0.post2/numpy/distutils/command/build_ext.py +522 -0
  203. numpy-1.10.0.post2/numpy/distutils/command/config.py +437 -0
  204. numpy-1.10.0.post2/numpy/distutils/exec_command.py +651 -0
  205. numpy-1.10.0.post2/numpy/distutils/fcompiler/compaq.py +128 -0
  206. numpy-1.10.0.post2/numpy/distutils/fcompiler/gnu.py +403 -0
  207. numpy-1.10.0.post2/numpy/distutils/fcompiler/intel.py +217 -0
  208. numpy-1.10.0.post2/numpy/distutils/fcompiler/pg.py +63 -0
  209. numpy-1.10.0.post2/numpy/distutils/fcompiler/sun.py +55 -0
  210. numpy-1.10.0.post2/numpy/distutils/intelccompiler.py +95 -0
  211. numpy-1.10.0.post2/numpy/distutils/lib2def.py +116 -0
  212. numpy-1.10.0.post2/numpy/distutils/mingw32ccompiler.py +599 -0
  213. numpy-1.10.0.post2/numpy/distutils/misc_util.py +2306 -0
  214. numpy-1.10.0.post2/numpy/distutils/msvc9compiler.py +23 -0
  215. numpy-1.10.0.post2/numpy/distutils/msvccompiler.py +17 -0
  216. numpy-1.10.0.post2/numpy/distutils/npy_pkg_config.py +451 -0
  217. numpy-1.10.0.post2/numpy/distutils/system_info.py +2397 -0
  218. numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +12 -0
  219. numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +11 -0
  220. numpy-1.10.0.post2/numpy/distutils/tests/gen_ext/tests/test_fib3.py +11 -0
  221. numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +13 -0
  222. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/__init__.py +1 -0
  223. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example.py +17 -0
  224. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example2.py +15 -0
  225. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_gnu.py +60 -0
  226. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_intel.py +36 -0
  227. numpy-1.10.0.post2/numpy/distutils/tests/test_misc_util.py +79 -0
  228. numpy-1.10.0.post2/numpy/distutils/tests/test_npy_pkg_config.py +102 -0
  229. numpy-1.10.0.post2/numpy/distutils/tests/test_system_info.py +209 -0
  230. numpy-1.10.0.post2/numpy/distutils/unixccompiler.py +125 -0
  231. numpy-1.10.0.post2/numpy/doc/byteswapping.py +156 -0
  232. numpy-1.10.0.post2/numpy/doc/creation.py +144 -0
  233. numpy-1.10.0.post2/numpy/doc/glossary.py +423 -0
  234. numpy-1.10.0.post2/numpy/doc/indexing.py +439 -0
  235. numpy-1.10.0.post2/numpy/doc/structured_arrays.py +290 -0
  236. numpy-1.10.0.post2/numpy/f2py/__init__.py +49 -0
  237. numpy-1.10.0.post2/numpy/f2py/__main__.py +25 -0
  238. numpy-1.10.0.post2/numpy/f2py/auxfuncs.py +858 -0
  239. numpy-1.10.0.post2/numpy/f2py/capi_maps.py +851 -0
  240. numpy-1.10.0.post2/numpy/f2py/cb_rules.py +554 -0
  241. numpy-1.10.0.post2/numpy/f2py/cfuncs.py +1261 -0
  242. numpy-1.10.0.post2/numpy/f2py/common_rules.py +150 -0
  243. numpy-1.10.0.post2/numpy/f2py/crackfortran.py +3314 -0
  244. numpy-1.10.0.post2/numpy/f2py/diagnose.py +156 -0
  245. numpy-1.10.0.post2/numpy/f2py/f2py2e.py +656 -0
  246. numpy-1.10.0.post2/numpy/f2py/f2py_testing.py +48 -0
  247. numpy-1.10.0.post2/numpy/f2py/f90mod_rules.py +272 -0
  248. numpy-1.10.0.post2/numpy/f2py/func2subr.py +299 -0
  249. numpy-1.10.0.post2/numpy/f2py/rules.py +1475 -0
  250. numpy-1.10.0.post2/numpy/f2py/setup.py +117 -0
  251. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.c +1037 -0
  252. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.h +162 -0
  253. numpy-1.10.0.post2/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +223 -0
  254. numpy-1.10.0.post2/numpy/f2py/tests/test_array_from_pyobj.py +593 -0
  255. numpy-1.10.0.post2/numpy/f2py/tests/test_assumed_shape.py +35 -0
  256. numpy-1.10.0.post2/numpy/f2py/tests/test_callback.py +136 -0
  257. numpy-1.10.0.post2/numpy/f2py/tests/test_kind.py +36 -0
  258. numpy-1.10.0.post2/numpy/f2py/tests/test_mixed.py +40 -0
  259. numpy-1.10.0.post2/numpy/f2py/tests/test_regression.py +34 -0
  260. numpy-1.10.0.post2/numpy/f2py/tests/test_return_character.py +148 -0
  261. numpy-1.10.0.post2/numpy/f2py/tests/test_return_complex.py +170 -0
  262. numpy-1.10.0.post2/numpy/f2py/tests/test_return_integer.py +180 -0
  263. numpy-1.10.0.post2/numpy/f2py/tests/test_return_logical.py +189 -0
  264. numpy-1.10.0.post2/numpy/f2py/tests/test_return_real.py +206 -0
  265. numpy-1.10.0.post2/numpy/f2py/tests/test_size.py +44 -0
  266. numpy-1.10.0.post2/numpy/f2py/tests/util.py +367 -0
  267. numpy-1.10.0.post2/numpy/f2py/use_rules.py +115 -0
  268. numpy-1.10.0.post2/numpy/fft/fftpack.c +1501 -0
  269. numpy-1.10.0.post2/numpy/fft/fftpack.h +28 -0
  270. numpy-1.10.0.post2/numpy/fft/fftpack.py +1241 -0
  271. numpy-1.10.0.post2/numpy/fft/fftpack_litemodule.c +363 -0
  272. numpy-1.10.0.post2/numpy/fft/info.py +187 -0
  273. numpy-1.10.0.post2/numpy/fft/setup.py +19 -0
  274. numpy-1.10.0.post2/numpy/fft/tests/test_fftpack.py +166 -0
  275. numpy-1.10.0.post2/numpy/fft/tests/test_helper.py +78 -0
  276. numpy-1.10.0.post2/numpy/lib/_iotools.py +917 -0
  277. numpy-1.10.0.post2/numpy/lib/arraypad.py +1497 -0
  278. numpy-1.10.0.post2/numpy/lib/arraysetops.py +480 -0
  279. numpy-1.10.0.post2/numpy/lib/arrayterator.py +226 -0
  280. numpy-1.10.0.post2/numpy/lib/financial.py +737 -0
  281. numpy-1.10.0.post2/numpy/lib/format.py +814 -0
  282. numpy-1.10.0.post2/numpy/lib/function_base.py +4150 -0
  283. numpy-1.10.0.post2/numpy/lib/index_tricks.py +874 -0
  284. numpy-1.10.0.post2/numpy/lib/info.py +152 -0
  285. numpy-1.10.0.post2/numpy/lib/nanfunctions.py +1237 -0
  286. numpy-1.10.0.post2/numpy/lib/npyio.py +1992 -0
  287. numpy-1.10.0.post2/numpy/lib/polynomial.py +1277 -0
  288. numpy-1.10.0.post2/numpy/lib/recfunctions.py +1003 -0
  289. numpy-1.10.0.post2/numpy/lib/setup.py +12 -0
  290. numpy-1.10.0.post2/numpy/lib/shape_base.py +872 -0
  291. numpy-1.10.0.post2/numpy/lib/stride_tricks.py +200 -0
  292. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npy +0 -0
  293. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npz +0 -0
  294. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npy +0 -0
  295. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npz +0 -0
  296. numpy-1.10.0.post2/numpy/lib/tests/test__iotools.py +348 -0
  297. numpy-1.10.0.post2/numpy/lib/tests/test__version.py +70 -0
  298. numpy-1.10.0.post2/numpy/lib/tests/test_arraypad.py +1047 -0
  299. numpy-1.10.0.post2/numpy/lib/tests/test_arraysetops.py +309 -0
  300. numpy-1.10.0.post2/numpy/lib/tests/test_financial.py +163 -0
  301. numpy-1.10.0.post2/numpy/lib/tests/test_format.py +841 -0
  302. numpy-1.10.0.post2/numpy/lib/tests/test_function_base.py +2555 -0
  303. numpy-1.10.0.post2/numpy/lib/tests/test_index_tricks.py +326 -0
  304. numpy-1.10.0.post2/numpy/lib/tests/test_io.py +1916 -0
  305. numpy-1.10.0.post2/numpy/lib/tests/test_nanfunctions.py +707 -0
  306. numpy-1.10.0.post2/numpy/lib/tests/test_packbits.py +26 -0
  307. numpy-1.10.0.post2/numpy/lib/tests/test_polynomial.py +188 -0
  308. numpy-1.10.0.post2/numpy/lib/tests/test_recfunctions.py +734 -0
  309. numpy-1.10.0.post2/numpy/lib/tests/test_shape_base.py +386 -0
  310. numpy-1.10.0.post2/numpy/lib/tests/test_stride_tricks.py +405 -0
  311. numpy-1.10.0.post2/numpy/lib/tests/test_twodim_base.py +535 -0
  312. numpy-1.10.0.post2/numpy/lib/tests/test_type_check.py +332 -0
  313. numpy-1.10.0.post2/numpy/lib/twodim_base.py +1007 -0
  314. numpy-1.10.0.post2/numpy/lib/type_check.py +596 -0
  315. numpy-1.10.0.post2/numpy/lib/utils.py +1122 -0
  316. numpy-1.10.0.post2/numpy/linalg/lapack_lite/python_xerbla.c +46 -0
  317. numpy-1.10.0.post2/numpy/linalg/lapack_litemodule.c +358 -0
  318. numpy-1.10.0.post2/numpy/linalg/linalg.py +2406 -0
  319. numpy-1.10.0.post2/numpy/linalg/tests/test_build.py +59 -0
  320. numpy-1.10.0.post2/numpy/linalg/tests/test_linalg.py +1351 -0
  321. numpy-1.10.0.post2/numpy/linalg/tests/test_regression.py +95 -0
  322. numpy-1.10.0.post2/numpy/linalg/umath_linalg.c.src +3236 -0
  323. numpy-1.10.0.post2/numpy/ma/__init__.py +56 -0
  324. numpy-1.10.0.post2/numpy/ma/bench.py +131 -0
  325. numpy-1.10.0.post2/numpy/ma/core.py +7608 -0
  326. numpy-1.10.0.post2/numpy/ma/extras.py +1953 -0
  327. numpy-1.10.0.post2/numpy/ma/mrecords.py +796 -0
  328. numpy-1.10.0.post2/numpy/ma/setup.py +13 -0
  329. numpy-1.10.0.post2/numpy/ma/tests/test_core.py +4100 -0
  330. numpy-1.10.0.post2/numpy/ma/tests/test_extras.py +1132 -0
  331. numpy-1.10.0.post2/numpy/ma/tests/test_mrecords.py +520 -0
  332. numpy-1.10.0.post2/numpy/ma/tests/test_old_ma.py +879 -0
  333. numpy-1.10.0.post2/numpy/ma/tests/test_regression.py +80 -0
  334. numpy-1.10.0.post2/numpy/ma/tests/test_subclassing.py +338 -0
  335. numpy-1.10.0.post2/numpy/ma/testutils.py +289 -0
  336. numpy-1.10.0.post2/numpy/ma/timer_comparison.py +440 -0
  337. numpy-1.10.0.post2/numpy/matlib.py +358 -0
  338. numpy-1.10.0.post2/numpy/matrixlib/defmatrix.py +1232 -0
  339. numpy-1.10.0.post2/numpy/matrixlib/tests/test_defmatrix.py +449 -0
  340. numpy-1.10.0.post2/numpy/matrixlib/tests/test_multiarray.py +23 -0
  341. numpy-1.10.0.post2/numpy/matrixlib/tests/test_numeric.py +23 -0
  342. numpy-1.10.0.post2/numpy/matrixlib/tests/test_regression.py +37 -0
  343. numpy-1.10.0.post2/numpy/polynomial/_polybase.py +962 -0
  344. numpy-1.10.0.post2/numpy/polynomial/chebyshev.py +2056 -0
  345. numpy-1.10.0.post2/numpy/polynomial/hermite.py +1831 -0
  346. numpy-1.10.0.post2/numpy/polynomial/hermite_e.py +1828 -0
  347. numpy-1.10.0.post2/numpy/polynomial/laguerre.py +1780 -0
  348. numpy-1.10.0.post2/numpy/polynomial/legendre.py +1808 -0
  349. numpy-1.10.0.post2/numpy/polynomial/polyutils.py +403 -0
  350. numpy-1.10.0.post2/numpy/random/mtrand/distributions.c +912 -0
  351. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.c +34805 -0
  352. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.pyx +4766 -0
  353. numpy-1.10.0.post2/numpy/random/setup.py +61 -0
  354. numpy-1.10.0.post2/numpy/random/tests/test_random.py +723 -0
  355. numpy-1.10.0.post2/numpy/random/tests/test_regression.py +117 -0
  356. numpy-1.10.0.post2/numpy/setup.py +29 -0
  357. numpy-1.10.0.post2/numpy/testing/__init__.py +15 -0
  358. numpy-1.10.0.post2/numpy/testing/decorators.py +271 -0
  359. numpy-1.10.0.post2/numpy/testing/noseclasses.py +353 -0
  360. numpy-1.10.0.post2/numpy/testing/nosetester.py +511 -0
  361. numpy-1.10.0.post2/numpy/testing/print_coercion_tables.py +91 -0
  362. numpy-1.10.0.post2/numpy/testing/setup.py +20 -0
  363. numpy-1.10.0.post2/numpy/testing/tests/test_decorators.py +182 -0
  364. numpy-1.10.0.post2/numpy/testing/tests/test_utils.py +781 -0
  365. numpy-1.10.0.post2/numpy/testing/utils.py +1831 -0
  366. numpy-1.10.0.post2/numpy/tests/test_ctypeslib.py +106 -0
  367. numpy-1.10.0.post2/numpy/tests/test_matlib.py +55 -0
  368. numpy-1.10.0.post2/numpy/tests/test_scripts.py +69 -0
  369. numpy-1.10.0.post2/numpy/version.py +10 -0
  370. numpy-1.10.0.post2/setup.py +260 -0
  371. numpy-1.10.0.post2/site.cfg.example +193 -0
  372. numpy-1.10.0.post2/tmp.txt +789 -0
  373. numpy-1.10.0.post2/tools/swig/README +145 -0
  374. numpy-1.10.0.post2/tools/swig/numpy.i +3161 -0
  375. numpy-1.10.0.post2/tools/swig/test/Array.i +135 -0
  376. numpy-1.10.0.post2/tools/swig/test/ArrayZ.cxx +131 -0
  377. numpy-1.10.0.post2/tools/swig/test/ArrayZ.h +56 -0
  378. numpy-1.10.0.post2/tools/swig/test/Flat.cxx +36 -0
  379. numpy-1.10.0.post2/tools/swig/test/Flat.h +34 -0
  380. numpy-1.10.0.post2/tools/swig/test/Flat.i +36 -0
  381. numpy-1.10.0.post2/tools/swig/test/Makefile +37 -0
  382. numpy-1.10.0.post2/tools/swig/test/setup.py +71 -0
  383. numpy-1.10.0.post2/tools/swig/test/testArray.py +385 -0
  384. numpy-1.10.0.post2/tools/swig/test/testFarray.py +159 -0
  385. numpy-1.10.0.post2/tools/swig/test/testFlat.py +200 -0
  386. numpy-1.10.0.post2/tools/swig/test/testFortran.py +173 -0
  387. numpy-1.10.0.post2/tools/swig/test/testMatrix.py +362 -0
  388. numpy-1.10.0.post2/tools/swig/test/testSuperTensor.py +388 -0
  389. numpy-1.10.0.post2/tools/swig/test/testTensor.py +402 -0
  390. numpy-1.10.0.post2/tools/swig/test/testVector.py +381 -0
  391. numpy-1.9.3/INSTALL.txt +0 -138
  392. numpy-1.9.3/LICENSE.txt +0 -30
  393. numpy-1.9.3/MANIFEST.in +0 -26
  394. numpy-1.9.3/PKG-INFO +0 -39
  395. numpy-1.9.3/doc/release/1.9.3-notes.rst +0 -23
  396. numpy-1.9.3/doc/source/conf.py +0 -331
  397. numpy-1.9.3/doc/source/dev/gitwash/branch_list.png +0 -0
  398. numpy-1.9.3/doc/source/dev/gitwash/branch_list_compare.png +0 -0
  399. numpy-1.9.3/doc/source/dev/gitwash/development_workflow.rst +0 -568
  400. numpy-1.9.3/doc/source/dev/gitwash/git_links.inc +0 -88
  401. numpy-1.9.3/doc/source/dev/gitwash/index.rst +0 -14
  402. numpy-1.9.3/doc/source/dev/index.rst +0 -10
  403. numpy-1.9.3/doc/source/reference/arrays.classes.rst +0 -427
  404. numpy-1.9.3/doc/source/reference/arrays.dtypes.rst +0 -534
  405. numpy-1.9.3/doc/source/reference/arrays.indexing.rst +0 -550
  406. numpy-1.9.3/doc/source/reference/arrays.interface.rst +0 -336
  407. numpy-1.9.3/doc/source/reference/arrays.ndarray.rst +0 -609
  408. numpy-1.9.3/doc/source/reference/arrays.scalars.rst +0 -291
  409. numpy-1.9.3/doc/source/reference/c-api.array.rst +0 -3362
  410. numpy-1.9.3/doc/source/reference/c-api.config.rst +0 -103
  411. numpy-1.9.3/doc/source/reference/c-api.coremath.rst +0 -420
  412. numpy-1.9.3/doc/source/reference/c-api.dtype.rst +0 -376
  413. numpy-1.9.3/doc/source/reference/c-api.generalized-ufuncs.rst +0 -171
  414. numpy-1.9.3/doc/source/reference/c-api.iterator.rst +0 -1298
  415. numpy-1.9.3/doc/source/reference/c-api.types-and-structures.rst +0 -1204
  416. numpy-1.9.3/doc/source/reference/c-api.ufunc.rst +0 -399
  417. numpy-1.9.3/doc/source/reference/index.rst +0 -44
  418. numpy-1.9.3/doc/source/reference/internals.code-explanations.rst +0 -666
  419. numpy-1.9.3/doc/source/reference/routines.array-manipulation.rst +0 -113
  420. numpy-1.9.3/doc/source/reference/routines.io.rst +0 -74
  421. numpy-1.9.3/doc/source/reference/routines.linalg.rst +0 -88
  422. numpy-1.9.3/doc/source/reference/routines.ma.rst +0 -405
  423. numpy-1.9.3/doc/source/reference/routines.sort.rst +0 -42
  424. numpy-1.9.3/doc/source/reference/routines.statistics.rst +0 -55
  425. numpy-1.9.3/doc/source/reference/swig.interface-file.rst +0 -1055
  426. numpy-1.9.3/doc/source/reference/swig.testing.rst +0 -166
  427. numpy-1.9.3/doc/source/reference/ufuncs.rst +0 -651
  428. numpy-1.9.3/doc/source/release.rst +0 -19
  429. numpy-1.9.3/doc/source/user/basics.io.genfromtxt.rst +0 -531
  430. numpy-1.9.3/doc/source/user/basics.rec.rst +0 -7
  431. numpy-1.9.3/doc/source/user/c-info.beyond-basics.rst +0 -560
  432. numpy-1.9.3/doc/source/user/c-info.how-to-extend.rst +0 -642
  433. numpy-1.9.3/doc/source/user/c-info.python-as-glue.rst +0 -1528
  434. numpy-1.9.3/doc/source/user/c-info.ufunc-tutorial.rst +0 -1211
  435. numpy-1.9.3/doc/source/user/install.rst +0 -180
  436. numpy-1.9.3/numpy/__init__.py +0 -216
  437. numpy-1.9.3/numpy/_import_tools.py +0 -348
  438. numpy-1.9.3/numpy/add_newdocs.py +0 -7518
  439. numpy-1.9.3/numpy/compat/_inspect.py +0 -221
  440. numpy-1.9.3/numpy/compat/py3k.py +0 -89
  441. numpy-1.9.3/numpy/compat/setup.py +0 -12
  442. numpy-1.9.3/numpy/core/__init__.py +0 -78
  443. numpy-1.9.3/numpy/core/_internal.py +0 -570
  444. numpy-1.9.3/numpy/core/_methods.py +0 -134
  445. numpy-1.9.3/numpy/core/arrayprint.py +0 -752
  446. numpy-1.9.3/numpy/core/blasdot/_dotblas.c +0 -1255
  447. numpy-1.9.3/numpy/core/blasdot/apple_sgemv_patch.c +0 -216
  448. numpy-1.9.3/numpy/core/blasdot/cblas.h +0 -578
  449. numpy-1.9.3/numpy/core/code_generators/cversions.txt +0 -31
  450. numpy-1.9.3/numpy/core/code_generators/generate_ufunc_api.py +0 -219
  451. numpy-1.9.3/numpy/core/code_generators/generate_umath.py +0 -972
  452. numpy-1.9.3/numpy/core/code_generators/numpy_api.py +0 -412
  453. numpy-1.9.3/numpy/core/code_generators/ufunc_docstrings.py +0 -3419
  454. numpy-1.9.3/numpy/core/defchararray.py +0 -2687
  455. numpy-1.9.3/numpy/core/fromnumeric.py +0 -2938
  456. numpy-1.9.3/numpy/core/function_base.py +0 -190
  457. numpy-1.9.3/numpy/core/getlimits.py +0 -306
  458. numpy-1.9.3/numpy/core/include/numpy/fenv/fenv.c +0 -38
  459. numpy-1.9.3/numpy/core/include/numpy/fenv/fenv.h +0 -224
  460. numpy-1.9.3/numpy/core/include/numpy/ndarrayobject.h +0 -237
  461. numpy-1.9.3/numpy/core/include/numpy/ndarraytypes.h +0 -1820
  462. numpy-1.9.3/numpy/core/include/numpy/npy_3kcompat.h +0 -506
  463. numpy-1.9.3/numpy/core/include/numpy/npy_common.h +0 -1038
  464. numpy-1.9.3/numpy/core/include/numpy/npy_cpu.h +0 -122
  465. numpy-1.9.3/numpy/core/include/numpy/npy_endian.h +0 -49
  466. numpy-1.9.3/numpy/core/include/numpy/npy_math.h +0 -479
  467. numpy-1.9.3/numpy/core/include/numpy/numpyconfig.h +0 -35
  468. numpy-1.9.3/numpy/core/machar.py +0 -338
  469. numpy-1.9.3/numpy/core/memmap.py +0 -308
  470. numpy-1.9.3/numpy/core/numeric.py +0 -2842
  471. numpy-1.9.3/numpy/core/numerictypes.py +0 -1042
  472. numpy-1.9.3/numpy/core/records.py +0 -804
  473. numpy-1.9.3/numpy/core/setup.py +0 -1016
  474. numpy-1.9.3/numpy/core/setup_common.py +0 -330
  475. numpy-1.9.3/numpy/core/shape_base.py +0 -277
  476. numpy-1.9.3/numpy/core/src/multiarray/alloc.c +0 -241
  477. numpy-1.9.3/numpy/core/src/multiarray/arrayobject.c +0 -1791
  478. numpy-1.9.3/numpy/core/src/multiarray/arraytypes.c.src +0 -4372
  479. numpy-1.9.3/numpy/core/src/multiarray/arraytypes.h +0 -13
  480. numpy-1.9.3/numpy/core/src/multiarray/buffer.c +0 -954
  481. numpy-1.9.3/numpy/core/src/multiarray/calculation.c +0 -1229
  482. numpy-1.9.3/numpy/core/src/multiarray/common.c +0 -798
  483. numpy-1.9.3/numpy/core/src/multiarray/common.h +0 -328
  484. numpy-1.9.3/numpy/core/src/multiarray/conversion_utils.c +0 -1240
  485. numpy-1.9.3/numpy/core/src/multiarray/convert.c +0 -589
  486. numpy-1.9.3/numpy/core/src/multiarray/convert_datatype.c +0 -2199
  487. numpy-1.9.3/numpy/core/src/multiarray/ctors.c +0 -3785
  488. numpy-1.9.3/numpy/core/src/multiarray/datetime.c +0 -3823
  489. numpy-1.9.3/numpy/core/src/multiarray/datetime_busday.c +0 -1322
  490. numpy-1.9.3/numpy/core/src/multiarray/datetime_busdaycal.c +0 -552
  491. numpy-1.9.3/numpy/core/src/multiarray/datetime_strings.c +0 -1772
  492. numpy-1.9.3/numpy/core/src/multiarray/descriptor.c +0 -3658
  493. numpy-1.9.3/numpy/core/src/multiarray/dtype_transfer.c +0 -4232
  494. numpy-1.9.3/numpy/core/src/multiarray/einsum.c.src +0 -3013
  495. numpy-1.9.3/numpy/core/src/multiarray/getset.c +0 -984
  496. numpy-1.9.3/numpy/core/src/multiarray/hashdescr.c +0 -319
  497. numpy-1.9.3/numpy/core/src/multiarray/item_selection.c +0 -2711
  498. numpy-1.9.3/numpy/core/src/multiarray/iterators.c +0 -2160
  499. numpy-1.9.3/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +0 -1767
  500. numpy-1.9.3/numpy/core/src/multiarray/mapping.c +0 -3316
  501. numpy-1.9.3/numpy/core/src/multiarray/mapping.h +0 -73
  502. numpy-1.9.3/numpy/core/src/multiarray/methods.c +0 -2497
  503. numpy-1.9.3/numpy/core/src/multiarray/multiarray_tests.c.src +0 -977
  504. numpy-1.9.3/numpy/core/src/multiarray/multiarraymodule.c +0 -4200
  505. numpy-1.9.3/numpy/core/src/multiarray/multiarraymodule.h +0 -4
  506. numpy-1.9.3/numpy/core/src/multiarray/nditer_api.c +0 -2809
  507. numpy-1.9.3/numpy/core/src/multiarray/nditer_constr.c +0 -3159
  508. numpy-1.9.3/numpy/core/src/multiarray/nditer_pywrap.c +0 -2492
  509. numpy-1.9.3/numpy/core/src/multiarray/number.c +0 -1057
  510. numpy-1.9.3/numpy/core/src/multiarray/number.h +0 -76
  511. numpy-1.9.3/numpy/core/src/multiarray/numpymemoryview.c +0 -309
  512. numpy-1.9.3/numpy/core/src/multiarray/numpyos.c +0 -683
  513. numpy-1.9.3/numpy/core/src/multiarray/scalarapi.c +0 -861
  514. numpy-1.9.3/numpy/core/src/multiarray/scalartypes.c.src +0 -4270
  515. numpy-1.9.3/numpy/core/src/multiarray/scalartypes.h +0 -52
  516. numpy-1.9.3/numpy/core/src/multiarray/shape.c +0 -1141
  517. numpy-1.9.3/numpy/core/src/multiarray/ucsnarrow.c +0 -173
  518. numpy-1.9.3/numpy/core/src/npymath/ieee754.c.src +0 -814
  519. numpy-1.9.3/numpy/core/src/npymath/npy_math.c.src +0 -527
  520. numpy-1.9.3/numpy/core/src/npymath/npy_math_complex.c.src +0 -291
  521. numpy-1.9.3/numpy/core/src/npymath/npy_math_private.h +0 -539
  522. numpy-1.9.3/numpy/core/src/npysort/heapsort.c.src +0 -341
  523. numpy-1.9.3/numpy/core/src/npysort/mergesort.c.src +0 -428
  524. numpy-1.9.3/numpy/core/src/npysort/npysort_common.h +0 -367
  525. numpy-1.9.3/numpy/core/src/npysort/quicksort.c.src +0 -363
  526. numpy-1.9.3/numpy/core/src/npysort/selection.c.src +0 -474
  527. numpy-1.9.3/numpy/core/src/private/npy_config.h +0 -68
  528. numpy-1.9.3/numpy/core/src/private/npy_partition.h.src +0 -138
  529. numpy-1.9.3/numpy/core/src/private/npy_sort.h +0 -194
  530. numpy-1.9.3/numpy/core/src/private/scalarmathmodule.h.src +0 -42
  531. numpy-1.9.3/numpy/core/src/private/ufunc_override.h +0 -384
  532. numpy-1.9.3/numpy/core/src/scalarmathmodule.c.src +0 -1980
  533. numpy-1.9.3/numpy/core/src/umath/funcs.inc.src +0 -715
  534. numpy-1.9.3/numpy/core/src/umath/loops.c.src +0 -2654
  535. numpy-1.9.3/numpy/core/src/umath/loops.h.src +0 -501
  536. numpy-1.9.3/numpy/core/src/umath/operand_flag_tests.c.src +0 -105
  537. numpy-1.9.3/numpy/core/src/umath/simd.inc.src +0 -881
  538. numpy-1.9.3/numpy/core/src/umath/test_rational.c.src +0 -1404
  539. numpy-1.9.3/numpy/core/src/umath/ufunc_object.c +0 -5520
  540. numpy-1.9.3/numpy/core/src/umath/ufunc_type_resolution.c +0 -2164
  541. numpy-1.9.3/numpy/core/src/umath/umath_tests.c.src +0 -341
  542. numpy-1.9.3/numpy/core/src/umath/umathmodule.c +0 -561
  543. numpy-1.9.3/numpy/core/tests/test_abc.py +0 -45
  544. numpy-1.9.3/numpy/core/tests/test_api.py +0 -514
  545. numpy-1.9.3/numpy/core/tests/test_arrayprint.py +0 -167
  546. numpy-1.9.3/numpy/core/tests/test_blasdot.py +0 -249
  547. numpy-1.9.3/numpy/core/tests/test_datetime.py +0 -1781
  548. numpy-1.9.3/numpy/core/tests/test_defchararray.py +0 -642
  549. numpy-1.9.3/numpy/core/tests/test_deprecations.py +0 -512
  550. numpy-1.9.3/numpy/core/tests/test_dtype.py +0 -542
  551. numpy-1.9.3/numpy/core/tests/test_einsum.py +0 -583
  552. numpy-1.9.3/numpy/core/tests/test_errstate.py +0 -51
  553. numpy-1.9.3/numpy/core/tests/test_function_base.py +0 -111
  554. numpy-1.9.3/numpy/core/tests/test_getlimits.py +0 -86
  555. numpy-1.9.3/numpy/core/tests/test_half.py +0 -439
  556. numpy-1.9.3/numpy/core/tests/test_indexerrors.py +0 -127
  557. numpy-1.9.3/numpy/core/tests/test_indexing.py +0 -1014
  558. numpy-1.9.3/numpy/core/tests/test_item_selection.py +0 -70
  559. numpy-1.9.3/numpy/core/tests/test_machar.py +0 -30
  560. numpy-1.9.3/numpy/core/tests/test_memmap.py +0 -127
  561. numpy-1.9.3/numpy/core/tests/test_multiarray.py +0 -4645
  562. numpy-1.9.3/numpy/core/tests/test_multiarray_assignment.py +0 -80
  563. numpy-1.9.3/numpy/core/tests/test_nditer.py +0 -2630
  564. numpy-1.9.3/numpy/core/tests/test_numeric.py +0 -2117
  565. numpy-1.9.3/numpy/core/tests/test_numerictypes.py +0 -377
  566. numpy-1.9.3/numpy/core/tests/test_print.py +0 -245
  567. numpy-1.9.3/numpy/core/tests/test_records.py +0 -185
  568. numpy-1.9.3/numpy/core/tests/test_regression.py +0 -2115
  569. numpy-1.9.3/numpy/core/tests/test_scalarinherit.py +0 -34
  570. numpy-1.9.3/numpy/core/tests/test_scalarmath.py +0 -275
  571. numpy-1.9.3/numpy/core/tests/test_shape_base.py +0 -250
  572. numpy-1.9.3/numpy/core/tests/test_ufunc.py +0 -1153
  573. numpy-1.9.3/numpy/core/tests/test_umath.py +0 -1695
  574. numpy-1.9.3/numpy/core/tests/test_umath_complex.py +0 -537
  575. numpy-1.9.3/numpy/core/tests/test_unicode.py +0 -357
  576. numpy-1.9.3/numpy/distutils/__init__.py +0 -39
  577. numpy-1.9.3/numpy/distutils/ccompiler.py +0 -656
  578. numpy-1.9.3/numpy/distutils/command/autodist.py +0 -43
  579. numpy-1.9.3/numpy/distutils/command/build.py +0 -39
  580. numpy-1.9.3/numpy/distutils/command/build_clib.py +0 -284
  581. numpy-1.9.3/numpy/distutils/command/build_ext.py +0 -515
  582. numpy-1.9.3/numpy/distutils/command/config.py +0 -476
  583. numpy-1.9.3/numpy/distutils/exec_command.py +0 -618
  584. numpy-1.9.3/numpy/distutils/fcompiler/compaq.py +0 -128
  585. numpy-1.9.3/numpy/distutils/fcompiler/gnu.py +0 -390
  586. numpy-1.9.3/numpy/distutils/fcompiler/intel.py +0 -205
  587. numpy-1.9.3/numpy/distutils/fcompiler/pg.py +0 -60
  588. numpy-1.9.3/numpy/distutils/fcompiler/sun.py +0 -52
  589. numpy-1.9.3/numpy/distutils/intelccompiler.py +0 -45
  590. numpy-1.9.3/numpy/distutils/lib2def.py +0 -116
  591. numpy-1.9.3/numpy/distutils/mingw32ccompiler.py +0 -582
  592. numpy-1.9.3/numpy/distutils/misc_util.py +0 -2271
  593. numpy-1.9.3/numpy/distutils/npy_pkg_config.py +0 -464
  594. numpy-1.9.3/numpy/distutils/system_info.py +0 -2319
  595. numpy-1.9.3/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +0 -13
  596. numpy-1.9.3/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +0 -12
  597. numpy-1.9.3/numpy/distutils/tests/gen_ext/tests/test_fib3.py +0 -12
  598. numpy-1.9.3/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +0 -14
  599. numpy-1.9.3/numpy/distutils/tests/swig_ext/tests/test_example.py +0 -18
  600. numpy-1.9.3/numpy/distutils/tests/swig_ext/tests/test_example2.py +0 -16
  601. numpy-1.9.3/numpy/distutils/tests/test_fcompiler_gnu.py +0 -53
  602. numpy-1.9.3/numpy/distutils/tests/test_fcompiler_intel.py +0 -36
  603. numpy-1.9.3/numpy/distutils/tests/test_misc_util.py +0 -75
  604. numpy-1.9.3/numpy/distutils/tests/test_npy_pkg_config.py +0 -98
  605. numpy-1.9.3/numpy/distutils/unixccompiler.py +0 -113
  606. numpy-1.9.3/numpy/doc/byteswapping.py +0 -147
  607. numpy-1.9.3/numpy/doc/creation.py +0 -144
  608. numpy-1.9.3/numpy/doc/glossary.py +0 -418
  609. numpy-1.9.3/numpy/doc/indexing.py +0 -437
  610. numpy-1.9.3/numpy/doc/structured_arrays.py +0 -223
  611. numpy-1.9.3/numpy/f2py/__init__.py +0 -49
  612. numpy-1.9.3/numpy/f2py/auxfuncs.py +0 -711
  613. numpy-1.9.3/numpy/f2py/capi_maps.py +0 -773
  614. numpy-1.9.3/numpy/f2py/cb_rules.py +0 -539
  615. numpy-1.9.3/numpy/f2py/cfuncs.py +0 -1224
  616. numpy-1.9.3/numpy/f2py/common_rules.py +0 -132
  617. numpy-1.9.3/numpy/f2py/crackfortran.py +0 -2870
  618. numpy-1.9.3/numpy/f2py/diagnose.py +0 -149
  619. numpy-1.9.3/numpy/f2py/f2py2e.py +0 -598
  620. numpy-1.9.3/numpy/f2py/f2py_testing.py +0 -46
  621. numpy-1.9.3/numpy/f2py/f90mod_rules.py +0 -246
  622. numpy-1.9.3/numpy/f2py/func2subr.py +0 -291
  623. numpy-1.9.3/numpy/f2py/rules.py +0 -1448
  624. numpy-1.9.3/numpy/f2py/setup.py +0 -129
  625. numpy-1.9.3/numpy/f2py/src/fortranobject.c +0 -972
  626. numpy-1.9.3/numpy/f2py/src/fortranobject.h +0 -162
  627. numpy-1.9.3/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +0 -223
  628. numpy-1.9.3/numpy/f2py/tests/test_array_from_pyobj.py +0 -559
  629. numpy-1.9.3/numpy/f2py/tests/test_assumed_shape.py +0 -37
  630. numpy-1.9.3/numpy/f2py/tests/test_callback.py +0 -132
  631. numpy-1.9.3/numpy/f2py/tests/test_kind.py +0 -36
  632. numpy-1.9.3/numpy/f2py/tests/test_mixed.py +0 -41
  633. numpy-1.9.3/numpy/f2py/tests/test_regression.py +0 -32
  634. numpy-1.9.3/numpy/f2py/tests/test_return_character.py +0 -142
  635. numpy-1.9.3/numpy/f2py/tests/test_return_complex.py +0 -169
  636. numpy-1.9.3/numpy/f2py/tests/test_return_integer.py +0 -178
  637. numpy-1.9.3/numpy/f2py/tests/test_return_logical.py +0 -187
  638. numpy-1.9.3/numpy/f2py/tests/test_return_real.py +0 -203
  639. numpy-1.9.3/numpy/f2py/tests/test_size.py +0 -47
  640. numpy-1.9.3/numpy/f2py/tests/util.py +0 -353
  641. numpy-1.9.3/numpy/f2py/use_rules.py +0 -109
  642. numpy-1.9.3/numpy/fft/fftpack.c +0 -1501
  643. numpy-1.9.3/numpy/fft/fftpack.h +0 -28
  644. numpy-1.9.3/numpy/fft/fftpack.py +0 -1169
  645. numpy-1.9.3/numpy/fft/fftpack_litemodule.c +0 -371
  646. numpy-1.9.3/numpy/fft/info.py +0 -179
  647. numpy-1.9.3/numpy/fft/setup.py +0 -20
  648. numpy-1.9.3/numpy/fft/tests/test_fftpack.py +0 -75
  649. numpy-1.9.3/numpy/fft/tests/test_helper.py +0 -78
  650. numpy-1.9.3/numpy/lib/_iotools.py +0 -891
  651. numpy-1.9.3/numpy/lib/arraypad.py +0 -1475
  652. numpy-1.9.3/numpy/lib/arraysetops.py +0 -464
  653. numpy-1.9.3/numpy/lib/arrayterator.py +0 -226
  654. numpy-1.9.3/numpy/lib/financial.py +0 -737
  655. numpy-1.9.3/numpy/lib/format.py +0 -771
  656. numpy-1.9.3/numpy/lib/function_base.py +0 -3884
  657. numpy-1.9.3/numpy/lib/index_tricks.py +0 -869
  658. numpy-1.9.3/numpy/lib/info.py +0 -151
  659. numpy-1.9.3/numpy/lib/nanfunctions.py +0 -1158
  660. numpy-1.9.3/numpy/lib/npyio.py +0 -1871
  661. numpy-1.9.3/numpy/lib/polynomial.py +0 -1271
  662. numpy-1.9.3/numpy/lib/recfunctions.py +0 -1003
  663. numpy-1.9.3/numpy/lib/setup.py +0 -23
  664. numpy-1.9.3/numpy/lib/shape_base.py +0 -865
  665. numpy-1.9.3/numpy/lib/src/_compiled_base.c +0 -1761
  666. numpy-1.9.3/numpy/lib/stride_tricks.py +0 -123
  667. numpy-1.9.3/numpy/lib/tests/test__iotools.py +0 -326
  668. numpy-1.9.3/numpy/lib/tests/test__version.py +0 -57
  669. numpy-1.9.3/numpy/lib/tests/test_arraypad.py +0 -560
  670. numpy-1.9.3/numpy/lib/tests/test_arraysetops.py +0 -301
  671. numpy-1.9.3/numpy/lib/tests/test_financial.py +0 -160
  672. numpy-1.9.3/numpy/lib/tests/test_format.py +0 -716
  673. numpy-1.9.3/numpy/lib/tests/test_function_base.py +0 -2145
  674. numpy-1.9.3/numpy/lib/tests/test_index_tricks.py +0 -289
  675. numpy-1.9.3/numpy/lib/tests/test_io.py +0 -1754
  676. numpy-1.9.3/numpy/lib/tests/test_nanfunctions.py +0 -774
  677. numpy-1.9.3/numpy/lib/tests/test_polynomial.py +0 -177
  678. numpy-1.9.3/numpy/lib/tests/test_recfunctions.py +0 -705
  679. numpy-1.9.3/numpy/lib/tests/test_shape_base.py +0 -368
  680. numpy-1.9.3/numpy/lib/tests/test_stride_tricks.py +0 -238
  681. numpy-1.9.3/numpy/lib/tests/test_twodim_base.py +0 -504
  682. numpy-1.9.3/numpy/lib/tests/test_type_check.py +0 -328
  683. numpy-1.9.3/numpy/lib/twodim_base.py +0 -1003
  684. numpy-1.9.3/numpy/lib/type_check.py +0 -605
  685. numpy-1.9.3/numpy/lib/utils.py +0 -1176
  686. numpy-1.9.3/numpy/linalg/lapack_lite/python_xerbla.c +0 -47
  687. numpy-1.9.3/numpy/linalg/lapack_litemodule.c +0 -362
  688. numpy-1.9.3/numpy/linalg/linalg.py +0 -2136
  689. numpy-1.9.3/numpy/linalg/tests/test_build.py +0 -53
  690. numpy-1.9.3/numpy/linalg/tests/test_linalg.py +0 -1156
  691. numpy-1.9.3/numpy/linalg/tests/test_regression.py +0 -90
  692. numpy-1.9.3/numpy/linalg/umath_linalg.c.src +0 -3210
  693. numpy-1.9.3/numpy/ma/__init__.py +0 -58
  694. numpy-1.9.3/numpy/ma/bench.py +0 -166
  695. numpy-1.9.3/numpy/ma/core.py +0 -7374
  696. numpy-1.9.3/numpy/ma/extras.py +0 -1932
  697. numpy-1.9.3/numpy/ma/mrecords.py +0 -734
  698. numpy-1.9.3/numpy/ma/setup.py +0 -20
  699. numpy-1.9.3/numpy/ma/tests/test_core.py +0 -3706
  700. numpy-1.9.3/numpy/ma/tests/test_extras.py +0 -954
  701. numpy-1.9.3/numpy/ma/tests/test_mrecords.py +0 -521
  702. numpy-1.9.3/numpy/ma/tests/test_old_ma.py +0 -869
  703. numpy-1.9.3/numpy/ma/tests/test_regression.py +0 -75
  704. numpy-1.9.3/numpy/ma/tests/test_subclassing.py +0 -236
  705. numpy-1.9.3/numpy/ma/testutils.py +0 -240
  706. numpy-1.9.3/numpy/ma/timer_comparison.py +0 -459
  707. numpy-1.9.3/numpy/matlib.py +0 -358
  708. numpy-1.9.3/numpy/matrixlib/defmatrix.py +0 -1094
  709. numpy-1.9.3/numpy/matrixlib/tests/test_defmatrix.py +0 -400
  710. numpy-1.9.3/numpy/matrixlib/tests/test_multiarray.py +0 -18
  711. numpy-1.9.3/numpy/matrixlib/tests/test_numeric.py +0 -10
  712. numpy-1.9.3/numpy/matrixlib/tests/test_regression.py +0 -34
  713. numpy-1.9.3/numpy/polynomial/_polybase.py +0 -962
  714. numpy-1.9.3/numpy/polynomial/chebyshev.py +0 -2056
  715. numpy-1.9.3/numpy/polynomial/hermite.py +0 -1789
  716. numpy-1.9.3/numpy/polynomial/hermite_e.py +0 -1786
  717. numpy-1.9.3/numpy/polynomial/laguerre.py +0 -1781
  718. numpy-1.9.3/numpy/polynomial/legendre.py +0 -1809
  719. numpy-1.9.3/numpy/polynomial/polytemplate.py +0 -927
  720. numpy-1.9.3/numpy/polynomial/polyutils.py +0 -403
  721. numpy-1.9.3/numpy/random/mtrand/distributions.c +0 -892
  722. numpy-1.9.3/numpy/random/mtrand/mtrand.c +0 -36656
  723. numpy-1.9.3/numpy/random/mtrand/mtrand.pyx +0 -4706
  724. numpy-1.9.3/numpy/random/setup.py +0 -74
  725. numpy-1.9.3/numpy/random/tests/test_random.py +0 -707
  726. numpy-1.9.3/numpy/random/tests/test_regression.py +0 -86
  727. numpy-1.9.3/numpy/setup.py +0 -27
  728. numpy-1.9.3/numpy/testing/__init__.py +0 -16
  729. numpy-1.9.3/numpy/testing/decorators.py +0 -271
  730. numpy-1.9.3/numpy/testing/noseclasses.py +0 -353
  731. numpy-1.9.3/numpy/testing/nosetester.py +0 -504
  732. numpy-1.9.3/numpy/testing/print_coercion_tables.py +0 -89
  733. numpy-1.9.3/numpy/testing/setup.py +0 -20
  734. numpy-1.9.3/numpy/testing/tests/test_decorators.py +0 -185
  735. numpy-1.9.3/numpy/testing/tests/test_utils.py +0 -558
  736. numpy-1.9.3/numpy/testing/utils.py +0 -1715
  737. numpy-1.9.3/numpy/tests/test_ctypeslib.py +0 -102
  738. numpy-1.9.3/numpy/tests/test_matlib.py +0 -55
  739. numpy-1.9.3/numpy/version.py +0 -10
  740. numpy-1.9.3/setup.py +0 -251
  741. numpy-1.9.3/site.cfg.example +0 -157
  742. numpy-1.9.3/tools/swig/README +0 -135
  743. numpy-1.9.3/tools/swig/numpy.i +0 -3085
  744. numpy-1.9.3/tools/swig/test/Array.i +0 -102
  745. numpy-1.9.3/tools/swig/test/Makefile +0 -34
  746. numpy-1.9.3/tools/swig/test/setup.py +0 -64
  747. numpy-1.9.3/tools/swig/test/testArray.py +0 -284
  748. numpy-1.9.3/tools/swig/test/testFarray.py +0 -159
  749. numpy-1.9.3/tools/swig/test/testFortran.py +0 -173
  750. numpy-1.9.3/tools/swig/test/testMatrix.py +0 -362
  751. numpy-1.9.3/tools/swig/test/testSuperTensor.py +0 -388
  752. numpy-1.9.3/tools/swig/test/testTensor.py +0 -402
  753. numpy-1.9.3/tools/swig/test/testVector.py +0 -381
  754. {numpy-1.9.3 → numpy-1.10.0.post2}/BENTO_BUILD.txt +0 -0
  755. {numpy-1.9.3 → numpy-1.10.0.post2}/COMPATIBILITY +0 -0
  756. {numpy-1.9.3 → numpy-1.10.0.post2}/DEV_README.txt +0 -0
  757. {numpy-1.9.3 → numpy-1.10.0.post2}/README.txt +0 -0
  758. {numpy-1.9.3 → numpy-1.10.0.post2}/THANKS.txt +0 -0
  759. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/Makefile +0 -0
  760. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/BUGS.txt +0 -0
  761. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/FAQ.txt +0 -0
  762. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/HISTORY.txt +0 -0
  763. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/Makefile +0 -0
  764. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/OLDNEWS.txt +0 -0
  765. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/README.txt +0 -0
  766. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/Release-1.x.txt +0 -0
  767. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/Release-2.x.txt +0 -0
  768. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/Release-3.x.txt +0 -0
  769. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/Release-4.x.txt +0 -0
  770. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/TESTING.txt +0 -0
  771. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/THANKS.txt +0 -0
  772. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/TODO.txt +0 -0
  773. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/apps.tex +0 -0
  774. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/bugs.tex +0 -0
  775. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/collectinput.py +0 -0
  776. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/commands.tex +0 -0
  777. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/default.css +0 -0
  778. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/docutils.conf +0 -0
  779. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/arr.f +0 -0
  780. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/bar.f +0 -0
  781. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/foo.f +0 -0
  782. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar-smart.f90 +0 -0
  783. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar.f90 +0 -0
  784. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/foobarmodule.tex +0 -0
  785. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/ex1/runme +0 -0
  786. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2py.1 +0 -0
  787. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2py2e.tex +0 -0
  788. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/README.txt +0 -0
  789. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/aerostructure.jpg +0 -0
  790. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/flow.jpg +0 -0
  791. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_html.sh +0 -0
  792. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_pdf.sh +0 -0
  793. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_ps.sh +0 -0
  794. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1.f +0 -0
  795. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1mess.txt +0 -0
  796. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1session.txt +0 -0
  797. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foo.pyf +0 -0
  798. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foom.pyf +0 -0
  799. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/structure.jpg +0 -0
  800. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/fortranobject.tex +0 -0
  801. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/hello.f +0 -0
  802. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/index.html +0 -0
  803. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/intro.tex +0 -0
  804. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/array_from_pyobj.c +0 -0
  805. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/bar.c +0 -0
  806. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/foo.f +0 -0
  807. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/fortran_array_from_pyobj.txt +0 -0
  808. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/fun.pyf +0 -0
  809. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/run.pyf +0 -0
  810. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarray/transpose.txt +0 -0
  811. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/multiarrays.txt +0 -0
  812. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/notes.tex +0 -0
  813. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/oldnews.html +0 -0
  814. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/options.tex +0 -0
  815. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/pyforttest.pyf +0 -0
  816. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/pytest.py +0 -0
  817. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/python9.tex +0 -0
  818. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/signaturefile.tex +0 -0
  819. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/simple.f +0 -0
  820. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/simple_session.dat +0 -0
  821. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/using_F_compiler.txt +0 -0
  822. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/f2py/win32_notes.txt +0 -0
  823. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/postprocess.py +0 -0
  824. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.3.0-notes.rst +0 -0
  825. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.4.0-notes.rst +0 -0
  826. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.5.0-notes.rst +0 -0
  827. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.6.0-notes.rst +0 -0
  828. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.6.1-notes.rst +0 -0
  829. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.6.2-notes.rst +0 -0
  830. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.7.0-notes.rst +0 -0
  831. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.7.1-notes.rst +0 -0
  832. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.7.2-notes.rst +0 -0
  833. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.8.0-notes.rst +0 -0
  834. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.8.1-notes.rst +0 -0
  835. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.8.2-notes.rst +0 -0
  836. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.9.0-notes.rst +0 -0
  837. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.9.1-notes.rst +0 -0
  838. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/1.9.2-notes.rst +0 -0
  839. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/release/time_based_proposal.rst +0 -0
  840. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/.git +0 -0
  841. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/.gitignore +0 -0
  842. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/Makefile +0 -0
  843. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/README.rst +0 -0
  844. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_static/scipyshiny_small.png +0 -0
  845. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/layout.html +0 -0
  846. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/searchbox.html +0 -0
  847. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/sourcelink.html +0 -0
  848. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/extend.css +0 -0
  849. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/pygments.css +0 -0
  850. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/scipy-central.css +0 -0
  851. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-bootstrap.css +0 -0
  852. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-extend.css +0 -0
  853. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/all-icons.svg +0 -0
  854. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/contents.png +0 -0
  855. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/create-new-account-icon.png +0 -0
  856. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon-shrunk.png +0 -0
  857. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.png +0 -0
  858. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.svg +0 -0
  859. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiniest.png +0 -0
  860. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiny.png +0 -0
  861. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon.png +0 -0
  862. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ad.png +0 -0
  863. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ae.png +0 -0
  864. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-af.png +0 -0
  865. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ag.png +0 -0
  866. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ai.png +0 -0
  867. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-al.png +0 -0
  868. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-am.png +0 -0
  869. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ao.png +0 -0
  870. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aq.png +0 -0
  871. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ar.png +0 -0
  872. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-as.png +0 -0
  873. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-at.png +0 -0
  874. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-au.png +0 -0
  875. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aw.png +0 -0
  876. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-az.png +0 -0
  877. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ba.png +0 -0
  878. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bb.png +0 -0
  879. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bd.png +0 -0
  880. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-be.png +0 -0
  881. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bf.png +0 -0
  882. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bg.png +0 -0
  883. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bh.png +0 -0
  884. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bi.png +0 -0
  885. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bj.png +0 -0
  886. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bl.png +0 -0
  887. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bm.png +0 -0
  888. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bn.png +0 -0
  889. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bo.png +0 -0
  890. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-br.png +0 -0
  891. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bs.png +0 -0
  892. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bt.png +0 -0
  893. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bw.png +0 -0
  894. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-by.png +0 -0
  895. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bz.png +0 -0
  896. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ca.png +0 -0
  897. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cc.png +0 -0
  898. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cd.png +0 -0
  899. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cf.png +0 -0
  900. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cg.png +0 -0
  901. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ch.png +0 -0
  902. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ci.png +0 -0
  903. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ck.png +0 -0
  904. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cl.png +0 -0
  905. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cm.png +0 -0
  906. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cn.png +0 -0
  907. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-co.png +0 -0
  908. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cr.png +0 -0
  909. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cu.png +0 -0
  910. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cv.png +0 -0
  911. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cw.png +0 -0
  912. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cx.png +0 -0
  913. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cy.png +0 -0
  914. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cz.png +0 -0
  915. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-de.png +0 -0
  916. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dj.png +0 -0
  917. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dk.png +0 -0
  918. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dm.png +0 -0
  919. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-do.png +0 -0
  920. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dz.png +0 -0
  921. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ec.png +0 -0
  922. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ee.png +0 -0
  923. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-eg.png +0 -0
  924. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-er.png +0 -0
  925. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-es.png +0 -0
  926. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-et.png +0 -0
  927. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fi.png +0 -0
  928. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fj.png +0 -0
  929. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fk.png +0 -0
  930. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fm.png +0 -0
  931. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fo.png +0 -0
  932. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fr.png +0 -0
  933. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ga.png +0 -0
  934. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gb.png +0 -0
  935. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gd.png +0 -0
  936. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ge.png +0 -0
  937. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gf.png +0 -0
  938. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gg.png +0 -0
  939. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gh.png +0 -0
  940. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gi.png +0 -0
  941. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gl.png +0 -0
  942. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gm.png +0 -0
  943. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gn.png +0 -0
  944. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gq.png +0 -0
  945. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gr.png +0 -0
  946. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gs.png +0 -0
  947. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gt.png +0 -0
  948. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gu.png +0 -0
  949. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gw.png +0 -0
  950. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gy.png +0 -0
  951. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hk.png +0 -0
  952. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hm.png +0 -0
  953. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hn.png +0 -0
  954. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hr.png +0 -0
  955. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ht.png +0 -0
  956. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hu.png +0 -0
  957. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-id.png +0 -0
  958. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ie.png +0 -0
  959. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-il.png +0 -0
  960. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-im.png +0 -0
  961. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-in.png +0 -0
  962. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-io.png +0 -0
  963. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-iq.png +0 -0
  964. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ir.png +0 -0
  965. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-is.png +0 -0
  966. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-it.png +0 -0
  967. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-je.png +0 -0
  968. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jm.png +0 -0
  969. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jo.png +0 -0
  970. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jp.png +0 -0
  971. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ke.png +0 -0
  972. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kg.png +0 -0
  973. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kh.png +0 -0
  974. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ki.png +0 -0
  975. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-km.png +0 -0
  976. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kn.png +0 -0
  977. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kp.png +0 -0
  978. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kr.png +0 -0
  979. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kw.png +0 -0
  980. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ky.png +0 -0
  981. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kz.png +0 -0
  982. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-la.png +0 -0
  983. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lb.png +0 -0
  984. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lc.png +0 -0
  985. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-li.png +0 -0
  986. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lk.png +0 -0
  987. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lr.png +0 -0
  988. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ls.png +0 -0
  989. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lt.png +0 -0
  990. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lu.png +0 -0
  991. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lv.png +0 -0
  992. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ly.png +0 -0
  993. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ma.png +0 -0
  994. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mc.png +0 -0
  995. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-md.png +0 -0
  996. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-me.png +0 -0
  997. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mf.png +0 -0
  998. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mg.png +0 -0
  999. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mh.png +0 -0
  1000. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mk.png +0 -0
  1001. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ml.png +0 -0
  1002. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mm.png +0 -0
  1003. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mn.png +0 -0
  1004. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mo.png +0 -0
  1005. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mp.png +0 -0
  1006. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mq.png +0 -0
  1007. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mr.png +0 -0
  1008. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ms.png +0 -0
  1009. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mt.png +0 -0
  1010. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mu.png +0 -0
  1011. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mv.png +0 -0
  1012. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mw.png +0 -0
  1013. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mx.png +0 -0
  1014. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-my.png +0 -0
  1015. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mz.png +0 -0
  1016. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-na.png +0 -0
  1017. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nc.png +0 -0
  1018. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ne.png +0 -0
  1019. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nf.png +0 -0
  1020. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ng.png +0 -0
  1021. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ni.png +0 -0
  1022. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nl.png +0 -0
  1023. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-no.png +0 -0
  1024. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-np.png +0 -0
  1025. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nr.png +0 -0
  1026. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nu.png +0 -0
  1027. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nz.png +0 -0
  1028. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-om.png +0 -0
  1029. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pa.png +0 -0
  1030. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pe.png +0 -0
  1031. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pf.png +0 -0
  1032. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pg.png +0 -0
  1033. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ph.png +0 -0
  1034. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pk.png +0 -0
  1035. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pl.png +0 -0
  1036. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pm.png +0 -0
  1037. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pn.png +0 -0
  1038. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pr.png +0 -0
  1039. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ps.png +0 -0
  1040. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pt.png +0 -0
  1041. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pw.png +0 -0
  1042. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-py.png +0 -0
  1043. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-qa.png +0 -0
  1044. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-re.png +0 -0
  1045. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ro.png +0 -0
  1046. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rs.png +0 -0
  1047. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ru.png +0 -0
  1048. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rw.png +0 -0
  1049. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sa.png +0 -0
  1050. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sb.png +0 -0
  1051. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sc.png +0 -0
  1052. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sd.png +0 -0
  1053. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-se.png +0 -0
  1054. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sg.png +0 -0
  1055. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sh.png +0 -0
  1056. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-si.png +0 -0
  1057. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sj.png +0 -0
  1058. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sk.png +0 -0
  1059. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sl.png +0 -0
  1060. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sm.png +0 -0
  1061. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sn.png +0 -0
  1062. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-so.png +0 -0
  1063. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sr.png +0 -0
  1064. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-st.png +0 -0
  1065. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sv.png +0 -0
  1066. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sy.png +0 -0
  1067. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sz.png +0 -0
  1068. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tc.png +0 -0
  1069. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-td.png +0 -0
  1070. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tf.png +0 -0
  1071. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tg.png +0 -0
  1072. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-th.png +0 -0
  1073. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tj.png +0 -0
  1074. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tk.png +0 -0
  1075. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tl.png +0 -0
  1076. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tm.png +0 -0
  1077. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tn.png +0 -0
  1078. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-to.png +0 -0
  1079. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tr.png +0 -0
  1080. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tt.png +0 -0
  1081. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tv.png +0 -0
  1082. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tw.png +0 -0
  1083. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tz.png +0 -0
  1084. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ua.png +0 -0
  1085. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ug.png +0 -0
  1086. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-um.png +0 -0
  1087. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-us.png +0 -0
  1088. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uy.png +0 -0
  1089. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uz.png +0 -0
  1090. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-va.png +0 -0
  1091. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vc.png +0 -0
  1092. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ve.png +0 -0
  1093. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vg.png +0 -0
  1094. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vi.png +0 -0
  1095. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vn.png +0 -0
  1096. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vu.png +0 -0
  1097. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-wf.png +0 -0
  1098. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ws.png +0 -0
  1099. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ye.png +0 -0
  1100. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-za.png +0 -0
  1101. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zm.png +0 -0
  1102. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zw.png +0 -0
  1103. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings-white.png +0 -0
  1104. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings.png +0 -0
  1105. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/important-icon.png +0 -0
  1106. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/information-icon.png +0 -0
  1107. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/internet-web-browser.png +0 -0
  1108. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon-shrunk.png +0 -0
  1109. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.png +0 -0
  1110. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.svg +0 -0
  1111. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon-tiny.png +0 -0
  1112. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon.png +0 -0
  1113. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/navigation.png +0 -0
  1114. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon-tiny.png +0 -0
  1115. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon.png +0 -0
  1116. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy-logo.png +0 -0
  1117. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy_org_logo.gif +0 -0
  1118. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipycentral_logo.png +0 -0
  1119. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipyshiny_small.png +0 -0
  1120. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/send-email-icon.png +0 -0
  1121. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon-shrunk.png +0 -0
  1122. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.png +0 -0
  1123. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.svg +0 -0
  1124. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiniest.png +0 -0
  1125. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiny.png +0 -0
  1126. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon.png +0 -0
  1127. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/transparent-pixel.gif +0 -0
  1128. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/ui-anim_basic_16x16.gif +0 -0
  1129. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/js/copybutton.js +0 -0
  1130. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/accordion.less +0 -0
  1131. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/alerts.less +0 -0
  1132. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/bootstrap.less +0 -0
  1133. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/breadcrumbs.less +0 -0
  1134. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/button-groups.less +0 -0
  1135. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/buttons.less +0 -0
  1136. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/carousel.less +0 -0
  1137. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/close.less +0 -0
  1138. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/code.less +0 -0
  1139. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/component-animations.less +0 -0
  1140. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/dropdowns.less +0 -0
  1141. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/forms.less +0 -0
  1142. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/grid.less +0 -0
  1143. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/hero-unit.less +0 -0
  1144. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/labels-badges.less +0 -0
  1145. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/layouts.less +0 -0
  1146. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/media.less +0 -0
  1147. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/mixins.less +0 -0
  1148. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/modals.less +0 -0
  1149. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navbar.less +0 -0
  1150. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navs.less +0 -0
  1151. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pager.less +0 -0
  1152. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pagination.less +0 -0
  1153. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/popovers.less +0 -0
  1154. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/progress-bars.less +0 -0
  1155. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/reset.less +0 -0
  1156. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-1200px-min.less +0 -0
  1157. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-767px-max.less +0 -0
  1158. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-768px-979px.less +0 -0
  1159. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-navbar.less +0 -0
  1160. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-utilities.less +0 -0
  1161. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive.less +0 -0
  1162. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/scaffolding.less +0 -0
  1163. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/sprites.less +0 -0
  1164. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tables.less +0 -0
  1165. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/thumbnails.less +0 -0
  1166. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tooltip.less +0 -0
  1167. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/type.less +0 -0
  1168. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/utilities.less +0 -0
  1169. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/variables.less +0 -0
  1170. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/wells.less +0 -0
  1171. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-bootstrap.less +0 -0
  1172. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-content.less +0 -0
  1173. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-extend.less +0 -0
  1174. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-footer.less +0 -0
  1175. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-header.less +0 -0
  1176. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-rightsidebar.less +0 -0
  1177. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-utils.less +0 -0
  1178. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/scipy.css_t +0 -0
  1179. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/theme.conf +0 -0
  1180. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/conf.py +0 -0
  1181. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/index.rst +0 -0
  1182. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc.rst +0 -0
  1183. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_2.rst +0 -0
  1184. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_3.rst +0 -0
  1185. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_4.rst +0 -0
  1186. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_optimize.rst +0 -0
  1187. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/_templates/autosummary/class.rst +0 -0
  1188. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/_templates/indexcontent.html +0 -0
  1189. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/_templates/indexsidebar.html +0 -0
  1190. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/_templates/layout.html +0 -0
  1191. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/about.rst +0 -0
  1192. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/bugs.rst +0 -0
  1193. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/contents.rst +0 -0
  1194. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/configure_git.rst +0 -0
  1195. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/development_setup.rst +0 -0
  1196. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/dot2_dot3.rst +0 -0
  1197. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/following_latest.rst +0 -0
  1198. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/forking_button.png +0 -0
  1199. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_development.rst +0 -0
  1200. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_intro.rst +0 -0
  1201. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_resources.rst +0 -0
  1202. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash/pull_button.png +0 -0
  1203. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/dev/gitwash_links.txt +0 -0
  1204. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/advanced.rst +0 -0
  1205. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/allocarr.f90 +0 -0
  1206. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/allocarr_session.dat +0 -0
  1207. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/array.f +0 -0
  1208. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/array_session.dat +0 -0
  1209. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/calculate.f +0 -0
  1210. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/calculate_session.dat +0 -0
  1211. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/callback.f +0 -0
  1212. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/callback2.pyf +0 -0
  1213. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/callback_session.dat +0 -0
  1214. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/common.f +0 -0
  1215. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/common_session.dat +0 -0
  1216. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/compile_session.dat +0 -0
  1217. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/distutils.rst +0 -0
  1218. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/extcallback.f +0 -0
  1219. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/extcallback_session.dat +0 -0
  1220. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/fib1.f +0 -0
  1221. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/fib1.pyf +0 -0
  1222. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/fib2.pyf +0 -0
  1223. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/fib3.f +0 -0
  1224. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/ftype.f +0 -0
  1225. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/ftype_session.dat +0 -0
  1226. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/getting-started.rst +0 -0
  1227. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/index.rst +0 -0
  1228. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/moddata.f90 +0 -0
  1229. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/moddata_session.dat +0 -0
  1230. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/python-usage.rst +0 -0
  1231. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/run_main_session.dat +0 -0
  1232. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/scalar.f +0 -0
  1233. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/scalar_session.dat +0 -0
  1234. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/setup_example.py +0 -0
  1235. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/signature-file.rst +0 -0
  1236. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/spam.pyf +0 -0
  1237. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/spam_session.dat +0 -0
  1238. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/string.f +0 -0
  1239. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/string_session.dat +0 -0
  1240. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/usage.rst +0 -0
  1241. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/var.pyf +0 -0
  1242. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/f2py/var_session.dat +0 -0
  1243. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/glossary.rst +0 -0
  1244. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/license.rst +0 -0
  1245. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal.rst +0 -0
  1246. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal3.rst +0 -0
  1247. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/deferred-ufunc-evaluation.rst +0 -0
  1248. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/generalized-ufuncs.rst +0 -0
  1249. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/groupby_additions.rst +0 -0
  1250. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/index.rst +0 -0
  1251. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/math_config_clean.rst +0 -0
  1252. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/missing-data.rst +0 -0
  1253. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/new-iterator-ufunc.rst +0 -0
  1254. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/newbugtracker.rst +0 -0
  1255. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/npy-format.rst +0 -0
  1256. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/structured_array_extensions.rst +0 -0
  1257. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/ufunc-overrides.rst +0 -0
  1258. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/neps/warnfix.rst +0 -0
  1259. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/arrays.datetime.rst +0 -0
  1260. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/arrays.nditer.rst +0 -0
  1261. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/arrays.rst +0 -0
  1262. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/c-api.deprecations.rst +0 -0
  1263. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/c-api.rst +0 -0
  1264. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/distutils.rst +0 -0
  1265. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.dia +0 -0
  1266. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.pdf +0 -0
  1267. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.png +0 -0
  1268. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.fig +0 -0
  1269. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.pdf +0 -0
  1270. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.png +0 -0
  1271. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/internals.rst +0 -0
  1272. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.baseclass.rst +0 -0
  1273. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.generic.rst +0 -0
  1274. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.rst +0 -0
  1275. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.array-creation.rst +0 -0
  1276. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.bitwise.rst +0 -0
  1277. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.char.rst +0 -0
  1278. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.ctypeslib.rst +0 -0
  1279. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.datetime.rst +0 -0
  1280. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.dtype.rst +0 -0
  1281. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.dual.rst +0 -0
  1282. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.emath.rst +0 -0
  1283. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.err.rst +0 -0
  1284. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.fft.rst +0 -0
  1285. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.financial.rst +0 -0
  1286. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.functional.rst +0 -0
  1287. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.help.rst +0 -0
  1288. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.indexing.rst +0 -0
  1289. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.logic.rst +0 -0
  1290. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.math.rst +0 -0
  1291. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.matlib.rst +0 -0
  1292. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.numarray.rst +0 -0
  1293. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.oldnumeric.rst +0 -0
  1294. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.other.rst +0 -0
  1295. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.padding.rst +0 -0
  1296. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.chebyshev.rst +0 -0
  1297. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.classes.rst +0 -0
  1298. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite.rst +0 -0
  1299. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite_e.rst +0 -0
  1300. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.laguerre.rst +0 -0
  1301. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.legendre.rst +0 -0
  1302. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.package.rst +0 -0
  1303. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.poly1d.rst +0 -0
  1304. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.polynomial.rst +0 -0
  1305. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.rst +0 -0
  1306. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.random.rst +0 -0
  1307. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.rst +0 -0
  1308. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.set.rst +0 -0
  1309. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.testing.rst +0 -0
  1310. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/routines.window.rst +0 -0
  1311. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/reference/swig.rst +0 -0
  1312. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.broadcasting.rst +0 -0
  1313. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.byteswapping.rst +0 -0
  1314. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.creation.rst +0 -0
  1315. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.indexing.rst +0 -0
  1316. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.io.rst +0 -0
  1317. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.rst +0 -0
  1318. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.subclassing.rst +0 -0
  1319. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/basics.types.rst +0 -0
  1320. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/c-info.rst +0 -0
  1321. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/howtofind.rst +0 -0
  1322. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/index.rst +0 -0
  1323. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/introduction.rst +0 -0
  1324. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/misc.rst +0 -0
  1325. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/performance.rst +0 -0
  1326. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/source/user/whatisnumpy.rst +0 -0
  1327. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/.git +0 -0
  1328. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/.gitignore +0 -0
  1329. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/.travis.yml +0 -0
  1330. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/LICENSE.txt +0 -0
  1331. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/MANIFEST.in +0 -0
  1332. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/README.rst +0 -0
  1333. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/__init__.py +0 -0
  1334. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/comment_eater.py +0 -0
  1335. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/compiler_unparse.py +0 -0
  1336. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape.py +0 -0
  1337. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape_sphinx.py +0 -0
  1338. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/linkcode.py +0 -0
  1339. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/numpydoc.py +0 -0
  1340. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/phantom_import.py +0 -0
  1341. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/plot_directive.py +0 -0
  1342. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_docscrape.py +0 -0
  1343. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_linkcode.py +0 -0
  1344. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_phantom_import.py +0 -0
  1345. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_plot_directive.py +0 -0
  1346. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_traitsdoc.py +0 -0
  1347. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/traitsdoc.py +0 -0
  1348. {numpy-1.9.3 → numpy-1.10.0.post2}/doc/sphinxext/setup.py +0 -0
  1349. {numpy-1.9.3/numpy/core/code_generators → numpy-1.10.0.post2/numpy/_build_utils}/__init__.py +0 -0
  1350. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/compat/__init__.py +0 -0
  1351. {numpy-1.9.3/numpy/distutils/tests/f2py_ext → numpy-1.10.0.post2/numpy/core/code_generators}/__init__.py +0 -0
  1352. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/code_generators/genapi.py +0 -0
  1353. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/code_generators/generate_numpy_api.py +0 -0
  1354. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/cversions.py +0 -0
  1355. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/_neighborhood_iterator_imp.h +0 -0
  1356. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/_numpyconfig.h.in +0 -0
  1357. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayobject.h +0 -0
  1358. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayscalars.h +0 -0
  1359. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/halffloat.h +0 -0
  1360. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/noprefix.h +0 -0
  1361. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_1_7_deprecated_api.h +0 -0
  1362. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_interrupt.h +0 -0
  1363. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_no_deprecated_api.h +0 -0
  1364. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_os.h +0 -0
  1365. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/old_defines.h +0 -0
  1366. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/oldnumeric.h +0 -0
  1367. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/ufuncobject.h +0 -0
  1368. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/include/numpy/utils.h +0 -0
  1369. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/info.py +0 -0
  1370. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/mlib.ini.in +0 -0
  1371. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/npymath.ini.in +0 -0
  1372. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/dummymodule.c +0 -0
  1373. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/_datetime.h +0 -0
  1374. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/alloc.h +0 -0
  1375. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.c +0 -0
  1376. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.h +0 -0
  1377. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_array.c +0 -0
  1378. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_scalar.c +0 -0
  1379. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/arrayobject.h +0 -0
  1380. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/buffer.h +0 -0
  1381. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/calculation.h +0 -0
  1382. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/conversion_utils.h +0 -0
  1383. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert.h +0 -0
  1384. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert_datatype.h +0 -0
  1385. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ctors.h +0 -0
  1386. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busday.h +0 -0
  1387. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busdaycal.h +0 -0
  1388. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_strings.h +0 -0
  1389. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/descriptor.h +0 -0
  1390. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/flagsobject.c +0 -0
  1391. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/getset.h +0 -0
  1392. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/hashdescr.h +0 -0
  1393. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/item_selection.h +0 -0
  1394. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/iterators.h +0 -0
  1395. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/methods.h +0 -0
  1396. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_impl.h +0 -0
  1397. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_pywrap.h +0 -0
  1398. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_templ.c.src +0 -0
  1399. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpymemoryview.h +0 -0
  1400. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpyos.h +0 -0
  1401. {numpy-1.9.3/numpy/core/blasdot → numpy-1.10.0.post2/numpy/core/src/multiarray}/python_xerbla.c +0 -0
  1402. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.c +0 -0
  1403. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.h +0 -0
  1404. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.c +0 -0
  1405. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.h +0 -0
  1406. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/shape.h +0 -0
  1407. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ucsnarrow.h +0 -0
  1408. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.c +0 -0
  1409. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.h +0 -0
  1410. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/npymath/_signbit.c +0 -0
  1411. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/npymath/halffloat.c +0 -0
  1412. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/npymath/npy_math_common.h +0 -0
  1413. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/npysort/binsearch.c.src +0 -0
  1414. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/private/lowlevel_strided_loops.h +0 -0
  1415. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/private/npy_binsearch.h.src +0 -0
  1416. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/private/npy_fpmath.h +0 -0
  1417. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/private/npy_pycompat.h +0 -0
  1418. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.c +0 -0
  1419. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.h +0 -0
  1420. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/umath/struct_ufunc_test.c.src +0 -0
  1421. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_object.h +0 -0
  1422. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_type_resolution.h +0 -0
  1423. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/tests/data/astype_copy.pkl +0 -0
  1424. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/tests/data/recarray_from_file.fits +0 -0
  1425. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/core/tests/test_scalarprint.py +0 -0
  1426. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/ctypeslib.py +0 -0
  1427. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/__version__.py +0 -0
  1428. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/__init__.py +0 -0
  1429. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/bdist_rpm.py +0 -0
  1430. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/build_py.py +0 -0
  1431. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/build_scripts.py +0 -0
  1432. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/build_src.py +0 -0
  1433. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/config_compiler.py +0 -0
  1434. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/develop.py +0 -0
  1435. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/egg_info.py +0 -0
  1436. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/install.py +0 -0
  1437. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/install_clib.py +0 -0
  1438. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/install_data.py +0 -0
  1439. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/install_headers.py +0 -0
  1440. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/command/sdist.py +0 -0
  1441. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/compat.py +0 -0
  1442. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/conv_template.py +0 -0
  1443. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/core.py +0 -0
  1444. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/cpuinfo.py +0 -0
  1445. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/environment.py +0 -0
  1446. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/extension.py +0 -0
  1447. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/__init__.py +0 -0
  1448. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/absoft.py +0 -0
  1449. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/g95.py +0 -0
  1450. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/hpux.py +0 -0
  1451. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/ibm.py +0 -0
  1452. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/lahey.py +0 -0
  1453. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/mips.py +0 -0
  1454. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/nag.py +0 -0
  1455. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/none.py +0 -0
  1456. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/pathf95.py +0 -0
  1457. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/vast.py +0 -0
  1458. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/from_template.py +0 -0
  1459. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/info.py +0 -0
  1460. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/line_endings.py +0 -0
  1461. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/log.py +0 -0
  1462. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/mingw/gfortran_vs2003_hack.c +0 -0
  1463. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/numpy_distribution.py +0 -0
  1464. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/pathccompiler.py +0 -0
  1465. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/setup.py +0 -0
  1466. {numpy-1.9.3/numpy/distutils/tests/f2py_f90_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext}/__init__.py +0 -0
  1467. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/setup.py +0 -0
  1468. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib1.f +0 -0
  1469. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib2.pyf +0 -0
  1470. {numpy-1.9.3/numpy/distutils/tests/gen_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext}/__init__.py +0 -0
  1471. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/include/body.f90 +0 -0
  1472. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/setup.py +0 -0
  1473. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/src/foo_free.f90 +0 -0
  1474. {numpy-1.9.3/numpy/distutils/tests/pyrex_ext → numpy-1.10.0.post2/numpy/distutils/tests/gen_ext}/__init__.py +0 -0
  1475. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/gen_ext/setup.py +0 -0
  1476. {numpy-1.9.3/numpy/distutils/tests/swig_ext → numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext}/__init__.py +0 -0
  1477. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/primes.pyx +0 -0
  1478. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/setup.py +0 -0
  1479. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/setup.py +0 -0
  1480. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/setup.py +0 -0
  1481. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.c +0 -0
  1482. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.i +0 -0
  1483. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.cc +0 -0
  1484. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.h +0 -0
  1485. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.i +0 -0
  1486. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/distutils/tests/test_exec_command.py +0 -0
  1487. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/__init__.py +0 -0
  1488. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/basics.py +0 -0
  1489. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/broadcasting.py +0 -0
  1490. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/constants.py +0 -0
  1491. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/howtofind.py +0 -0
  1492. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/internals.py +0 -0
  1493. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/io.py +0 -0
  1494. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/jargon.py +0 -0
  1495. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/methods_vs_functions.py +0 -0
  1496. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/misc.py +0 -0
  1497. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/performance.py +0 -0
  1498. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/subclassing.py +0 -0
  1499. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/doc/ufuncs.py +0 -0
  1500. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/dual.py +0 -0
  1501. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/__version__.py +0 -0
  1502. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/info.py +0 -0
  1503. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap +0 -0
  1504. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_free.f90 +0 -0
  1505. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_mod.f90 +0 -0
  1506. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_use.f90 +0 -0
  1507. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/precision.f90 +0 -0
  1508. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/kind/foo.f90 +0 -0
  1509. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo.f +0 -0
  1510. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_fixed.f90 +0 -0
  1511. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_free.f90 +0 -0
  1512. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/regression/inout.f90 +0 -0
  1513. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/f2py/tests/src/size/foo.f90 +0 -0
  1514. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/fft/__init__.py +0 -0
  1515. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/fft/helper.py +0 -0
  1516. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/__init__.py +0 -0
  1517. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/_datasource.py +0 -0
  1518. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/_version.py +0 -0
  1519. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/scimath.py +0 -0
  1520. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/data/python3.npy +0 -0
  1521. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/data/win64python2.npy +0 -0
  1522. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/test__datasource.py +0 -0
  1523. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/test_arrayterator.py +0 -0
  1524. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/test_regression.py +0 -0
  1525. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/test_ufunclike.py +0 -0
  1526. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/tests/test_utils.py +0 -0
  1527. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/ufunclike.py +0 -0
  1528. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/lib/user_array.py +0 -0
  1529. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/__init__.py +0 -0
  1530. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/info.py +0 -0
  1531. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/blas_lite.c +0 -0
  1532. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlamch.c +0 -0
  1533. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlapack_lite.c +0 -0
  1534. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c.h +0 -0
  1535. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c_lite.c +0 -0
  1536. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/zlapack_lite.c +0 -0
  1537. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/setup.py +0 -0
  1538. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/linalg/tests/test_deprecations.py +0 -0
  1539. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/ma/version.py +0 -0
  1540. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/matrixlib/__init__.py +0 -0
  1541. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/matrixlib/setup.py +0 -0
  1542. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/__init__.py +0 -0
  1543. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/polynomial.py +0 -0
  1544. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/setup.py +0 -0
  1545. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_chebyshev.py +0 -0
  1546. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_classes.py +0 -0
  1547. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite.py +0 -0
  1548. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite_e.py +0 -0
  1549. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_laguerre.py +0 -0
  1550. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_legendre.py +0 -0
  1551. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polynomial.py +0 -0
  1552. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polyutils.py +0 -0
  1553. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_printing.py +0 -0
  1554. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/__init__.py +0 -0
  1555. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/info.py +0 -0
  1556. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/Python.pxi +0 -0
  1557. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/distributions.h +0 -0
  1558. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/generate_mtrand_c.py +0 -0
  1559. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.c +0 -0
  1560. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.h +0 -0
  1561. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/mtrand_py_helper.h +0 -0
  1562. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/numpy.pxd +0 -0
  1563. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.c +0 -0
  1564. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.h +0 -0
  1565. {numpy-1.9.3 → numpy-1.10.0.post2}/numpy/testing/tests/test_doctesting.py +0 -0
  1566. {numpy-1.9.3 → numpy-1.10.0.post2}/setupegg.py +0 -0
  1567. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/Makefile +0 -0
  1568. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/pyfragments.swg +0 -0
  1569. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Array1.cxx +0 -0
  1570. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Array1.h +0 -0
  1571. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Array2.cxx +0 -0
  1572. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Array2.h +0 -0
  1573. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Farray.cxx +0 -0
  1574. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Farray.h +0 -0
  1575. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Farray.i +0 -0
  1576. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Fortran.cxx +0 -0
  1577. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Fortran.h +0 -0
  1578. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Fortran.i +0 -0
  1579. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Matrix.cxx +0 -0
  1580. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Matrix.h +0 -0
  1581. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Matrix.i +0 -0
  1582. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.cxx +0 -0
  1583. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.h +0 -0
  1584. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.i +0 -0
  1585. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Tensor.cxx +0 -0
  1586. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Tensor.h +0 -0
  1587. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Tensor.i +0 -0
  1588. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Vector.cxx +0 -0
  1589. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Vector.h +0 -0
  1590. {numpy-1.9.3 → numpy-1.10.0.post2}/tools/swig/test/Vector.i +0 -0
@@ -0,0 +1,3393 @@
1
+ Array API
2
+ =========
3
+
4
+ .. sectionauthor:: Travis E. Oliphant
5
+
6
+ | The test of a first-rate intelligence is the ability to hold two
7
+ | opposed ideas in the mind at the same time, and still retain the
8
+ | ability to function.
9
+ | --- *F. Scott Fitzgerald*
10
+
11
+ | For a successful technology, reality must take precedence over public
12
+ | relations, for Nature cannot be fooled.
13
+ | --- *Richard P. Feynman*
14
+
15
+ .. index::
16
+ pair: ndarray; C-API
17
+ pair: C-API; array
18
+
19
+
20
+ Array structure and data access
21
+ -------------------------------
22
+
23
+ These macros all access the :c:type:`PyArrayObject` structure members. The input
24
+ argument, arr, can be any :c:type:`PyObject *` that is directly interpretable
25
+ as a :c:type:`PyArrayObject *` (any instance of the :c:data:`PyArray_Type` and its
26
+ sub-types).
27
+
28
+ .. c:function:: int PyArray_NDIM(PyArrayObject *arr)
29
+
30
+ The number of dimensions in the array.
31
+
32
+ .. c:function:: npy_intp *PyArray_DIMS(PyArrayObject *arr)
33
+
34
+ Returns a pointer to the dimensions/shape of the array. The
35
+ number of elements matches the number of dimensions
36
+ of the array.
37
+
38
+ .. c:function:: npy_intp *PyArray_SHAPE(PyArrayObject *arr)
39
+
40
+ .. versionadded:: 1.7
41
+
42
+ A synonym for PyArray_DIMS, named to be consistent with the
43
+ 'shape' usage within Python.
44
+
45
+ .. c:function:: void *PyArray_DATA(PyArrayObject *arr)
46
+
47
+ .. c:function:: char *PyArray_BYTES(PyArrayObject *arr)
48
+
49
+ These two macros are similar and obtain the pointer to the
50
+ data-buffer for the array. The first macro can (and should be)
51
+ assigned to a particular pointer where the second is for generic
52
+ processing. If you have not guaranteed a contiguous and/or aligned
53
+ array then be sure you understand how to access the data in the
54
+ array to avoid memory and/or alignment problems.
55
+
56
+ .. c:function:: npy_intp *PyArray_STRIDES(PyArrayObject* arr)
57
+
58
+ Returns a pointer to the strides of the array. The
59
+ number of elements matches the number of dimensions
60
+ of the array.
61
+
62
+ .. c:function:: npy_intp PyArray_DIM(PyArrayObject* arr, int n)
63
+
64
+ Return the shape in the *n* :math:`^{\textrm{th}}` dimension.
65
+
66
+ .. c:function:: npy_intp PyArray_STRIDE(PyArrayObject* arr, int n)
67
+
68
+ Return the stride in the *n* :math:`^{\textrm{th}}` dimension.
69
+
70
+ .. c:function:: PyObject *PyArray_BASE(PyArrayObject* arr)
71
+
72
+ This returns the base object of the array. In most cases, this
73
+ means the object which owns the memory the array is pointing at.
74
+
75
+ If you are constructing an array using the C API, and specifying
76
+ your own memory, you should use the function :c:func:`PyArray_SetBaseObject`
77
+ to set the base to an object which owns the memory.
78
+
79
+ If the :c:data:`NPY_ARRAY_UPDATEIFCOPY` flag is set, it has a different
80
+ meaning, namely base is the array into which the current array will
81
+ be copied upon destruction. This overloading of the base property
82
+ for two functions is likely to change in a future version of NumPy.
83
+
84
+ .. c:function:: PyArray_Descr *PyArray_DESCR(PyArrayObject* arr)
85
+
86
+ Returns a borrowed reference to the dtype property of the array.
87
+
88
+ .. c:function:: PyArray_Descr *PyArray_DTYPE(PyArrayObject* arr)
89
+
90
+ .. versionadded:: 1.7
91
+
92
+ A synonym for PyArray_DESCR, named to be consistent with the
93
+ 'dtype' usage within Python.
94
+
95
+ .. c:function:: void PyArray_ENABLEFLAGS(PyArrayObject* arr, int flags)
96
+
97
+ .. versionadded:: 1.7
98
+
99
+ Enables the specified array flags. This function does no validation,
100
+ and assumes that you know what you're doing.
101
+
102
+ .. c:function:: void PyArray_CLEARFLAGS(PyArrayObject* arr, int flags)
103
+
104
+ .. versionadded:: 1.7
105
+
106
+ Clears the specified array flags. This function does no validation,
107
+ and assumes that you know what you're doing.
108
+
109
+ .. c:function:: int PyArray_FLAGS(PyArrayObject* arr)
110
+
111
+ .. c:function:: npy_intp PyArray_ITEMSIZE(PyArrayObject* arr)
112
+
113
+ Return the itemsize for the elements of this array.
114
+
115
+ Note that, in the old API that was deprecated in version 1.7, this function
116
+ had the return type ``int``.
117
+
118
+ .. c:function:: int PyArray_TYPE(PyArrayObject* arr)
119
+
120
+ Return the (builtin) typenumber for the elements of this array.
121
+
122
+ .. c:function:: PyObject *PyArray_GETITEM(PyArrayObject* arr, void* itemptr)
123
+
124
+ Get a Python object from the ndarray, *arr*, at the location
125
+ pointed to by itemptr. Return ``NULL`` on failure.
126
+
127
+ .. c:function:: int PyArray_SETITEM(PyArrayObject* arr, void* itemptr, PyObject* obj)
128
+
129
+ Convert obj and place it in the ndarray, *arr*, at the place
130
+ pointed to by itemptr. Return -1 if an error occurs or 0 on
131
+ success.
132
+
133
+ .. c:function:: npy_intp PyArray_SIZE(PyArrayObject* arr)
134
+
135
+ Returns the total size (in number of elements) of the array.
136
+
137
+ .. c:function:: npy_intp PyArray_Size(PyArrayObject* obj)
138
+
139
+ Returns 0 if *obj* is not a sub-class of bigndarray. Otherwise,
140
+ returns the total number of elements in the array. Safer version
141
+ of :c:func:`PyArray_SIZE` (*obj*).
142
+
143
+ .. c:function:: npy_intp PyArray_NBYTES(PyArrayObject* arr)
144
+
145
+ Returns the total number of bytes consumed by the array.
146
+
147
+
148
+ Data access
149
+ ^^^^^^^^^^^
150
+
151
+ These functions and macros provide easy access to elements of the
152
+ ndarray from C. These work for all arrays. You may need to take care
153
+ when accessing the data in the array, however, if it is not in machine
154
+ byte-order, misaligned, or not writeable. In other words, be sure to
155
+ respect the state of the flags unless you know what you are doing, or
156
+ have previously guaranteed an array that is writeable, aligned, and in
157
+ machine byte-order using :c:func:`PyArray_FromAny`. If you wish to handle all
158
+ types of arrays, the copyswap function for each type is useful for
159
+ handling misbehaved arrays. Some platforms (e.g. Solaris) do not like
160
+ misaligned data and will crash if you de-reference a misaligned
161
+ pointer. Other platforms (e.g. x86 Linux) will just work more slowly
162
+ with misaligned data.
163
+
164
+ .. c:function:: void* PyArray_GetPtr(PyArrayObject* aobj, npy_intp* ind)
165
+
166
+ Return a pointer to the data of the ndarray, *aobj*, at the
167
+ N-dimensional index given by the c-array, *ind*, (which must be
168
+ at least *aobj* ->nd in size). You may want to typecast the
169
+ returned pointer to the data type of the ndarray.
170
+
171
+ .. c:function:: void* PyArray_GETPTR1(PyArrayObject* obj, npy_intp i)
172
+
173
+ .. c:function:: void* PyArray_GETPTR2(PyArrayObject* obj, npy_intp i, npy_intp j)
174
+
175
+ .. c:function:: void* PyArray_GETPTR3(PyArrayObject* obj, npy_intp i, npy_intp j, npy_intp k)
176
+
177
+ .. c:function:: void* PyArray_GETPTR4(PyArrayObject* obj, npy_intp i, npy_intp j, npy_intp k, npy_intp l)
178
+
179
+ Quick, inline access to the element at the given coordinates in
180
+ the ndarray, *obj*, which must have respectively 1, 2, 3, or 4
181
+ dimensions (this is not checked). The corresponding *i*, *j*,
182
+ *k*, and *l* coordinates can be any integer but will be
183
+ interpreted as ``npy_intp``. You may want to typecast the
184
+ returned pointer to the data type of the ndarray.
185
+
186
+
187
+ Creating arrays
188
+ ---------------
189
+
190
+
191
+ From scratch
192
+ ^^^^^^^^^^^^
193
+
194
+ .. c:function:: PyObject* PyArray_NewFromDescr(PyTypeObject* subtype, PyArray_Descr* descr, int nd, npy_intp* dims, npy_intp* strides, void* data, int flags, PyObject* obj)
195
+
196
+ This function steals a reference to *descr*.
197
+
198
+ This is the main array creation function. Most new arrays are
199
+ created with this flexible function.
200
+
201
+ The returned object is an object of Python-type *subtype*, which
202
+ must be a subtype of :c:data:`PyArray_Type`. The array has *nd*
203
+ dimensions, described by *dims*. The data-type descriptor of the
204
+ new array is *descr*.
205
+
206
+ If *subtype* is of an array subclass instead of the base
207
+ :c:data:`&PyArray_Type`, then *obj* is the object to pass to
208
+ the :obj:`__array_finalize__` method of the subclass.
209
+
210
+ If *data* is ``NULL``, then new memory will be allocated and *flags*
211
+ can be non-zero to indicate a Fortran-style contiguous array. If
212
+ *data* is not ``NULL``, then it is assumed to point to the memory
213
+ to be used for the array and the *flags* argument is used as the
214
+ new flags for the array (except the state of :c:data:`NPY_OWNDATA`
215
+ and :c:data:`NPY_ARRAY_UPDATEIFCOPY` flags of the new array will
216
+ be reset).
217
+
218
+ In addition, if *data* is non-NULL, then *strides* can
219
+ also be provided. If *strides* is ``NULL``, then the array strides
220
+ are computed as C-style contiguous (default) or Fortran-style
221
+ contiguous (*flags* is nonzero for *data* = ``NULL`` or *flags* &
222
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` is nonzero non-NULL *data*). Any
223
+ provided *dims* and *strides* are copied into newly allocated
224
+ dimension and strides arrays for the new array object.
225
+
226
+ .. c:function:: PyObject* PyArray_NewLikeArray(PyArrayObject* prototype, NPY_ORDER order, PyArray_Descr* descr, int subok)
227
+
228
+ .. versionadded:: 1.6
229
+
230
+ This function steals a reference to *descr* if it is not NULL.
231
+
232
+ This array creation routine allows for the convenient creation of
233
+ a new array matching an existing array's shapes and memory layout,
234
+ possibly changing the layout and/or data type.
235
+
236
+ When *order* is :c:data:`NPY_ANYORDER`, the result order is
237
+ :c:data:`NPY_FORTRANORDER` if *prototype* is a fortran array,
238
+ :c:data:`NPY_CORDER` otherwise. When *order* is
239
+ :c:data:`NPY_KEEPORDER`, the result order matches that of *prototype*, even
240
+ when the axes of *prototype* aren't in C or Fortran order.
241
+
242
+ If *descr* is NULL, the data type of *prototype* is used.
243
+
244
+ If *subok* is 1, the newly created array will use the sub-type of
245
+ *prototype* to create the new array, otherwise it will create a
246
+ base-class array.
247
+
248
+ .. c:function:: PyObject* PyArray_New(PyTypeObject* subtype, int nd, npy_intp* dims, int type_num, npy_intp* strides, void* data, int itemsize, int flags, PyObject* obj)
249
+
250
+ This is similar to :c:func:`PyArray_DescrNew` (...) except you
251
+ specify the data-type descriptor with *type_num* and *itemsize*,
252
+ where *type_num* corresponds to a builtin (or user-defined)
253
+ type. If the type always has the same number of bytes, then
254
+ itemsize is ignored. Otherwise, itemsize specifies the particular
255
+ size of this array.
256
+
257
+
258
+
259
+ .. warning::
260
+
261
+ If data is passed to :c:func:`PyArray_NewFromDescr` or :c:func:`PyArray_New`,
262
+ this memory must not be deallocated until the new array is
263
+ deleted. If this data came from another Python object, this can
264
+ be accomplished using :c:func:`Py_INCREF` on that object and setting the
265
+ base member of the new array to point to that object. If strides
266
+ are passed in they must be consistent with the dimensions, the
267
+ itemsize, and the data of the array.
268
+
269
+ .. c:function:: PyObject* PyArray_SimpleNew(int nd, npy_intp* dims, int typenum)
270
+
271
+ Create a new unitialized array of type, *typenum*, whose size in
272
+ each of *nd* dimensions is given by the integer array, *dims*.
273
+ This function cannot be used to create a flexible-type array (no
274
+ itemsize given).
275
+
276
+ .. c:function:: PyObject* PyArray_SimpleNewFromData(int nd, npy_intp* dims, int typenum, void* data)
277
+
278
+ Create an array wrapper around *data* pointed to by the given
279
+ pointer. The array flags will have a default that the data area is
280
+ well-behaved and C-style contiguous. The shape of the array is
281
+ given by the *dims* c-array of length *nd*. The data-type of the
282
+ array is indicated by *typenum*.
283
+
284
+ .. c:function:: PyObject* PyArray_SimpleNewFromDescr(int nd, npy_intp* dims, PyArray_Descr* descr)
285
+
286
+ This function steals a reference to *descr* if it is not NULL.
287
+
288
+ Create a new array with the provided data-type descriptor, *descr*
289
+ , of the shape deteremined by *nd* and *dims*.
290
+
291
+ .. c:function:: PyArray_FILLWBYTE(PyObject* obj, int val)
292
+
293
+ Fill the array pointed to by *obj* ---which must be a (subclass
294
+ of) bigndarray---with the contents of *val* (evaluated as a byte).
295
+ This macro calls memset, so obj must be contiguous.
296
+
297
+ .. c:function:: PyObject* PyArray_Zeros(int nd, npy_intp* dims, PyArray_Descr* dtype, int fortran)
298
+
299
+ Construct a new *nd* -dimensional array with shape given by *dims*
300
+ and data type given by *dtype*. If *fortran* is non-zero, then a
301
+ Fortran-order array is created, otherwise a C-order array is
302
+ created. Fill the memory with zeros (or the 0 object if *dtype*
303
+ corresponds to :c:type:`NPY_OBJECT` ).
304
+
305
+ .. c:function:: PyObject* PyArray_ZEROS(int nd, npy_intp* dims, int type_num, int fortran)
306
+
307
+ Macro form of :c:func:`PyArray_Zeros` which takes a type-number instead
308
+ of a data-type object.
309
+
310
+ .. c:function:: PyObject* PyArray_Empty(int nd, npy_intp* dims, PyArray_Descr* dtype, int fortran)
311
+
312
+ Construct a new *nd* -dimensional array with shape given by *dims*
313
+ and data type given by *dtype*. If *fortran* is non-zero, then a
314
+ Fortran-order array is created, otherwise a C-order array is
315
+ created. The array is uninitialized unless the data type
316
+ corresponds to :c:type:`NPY_OBJECT` in which case the array is
317
+ filled with :c:data:`Py_None`.
318
+
319
+ .. c:function:: PyObject* PyArray_EMPTY(int nd, npy_intp* dims, int typenum, int fortran)
320
+
321
+ Macro form of :c:func:`PyArray_Empty` which takes a type-number,
322
+ *typenum*, instead of a data-type object.
323
+
324
+ .. c:function:: PyObject* PyArray_Arange(double start, double stop, double step, int typenum)
325
+
326
+ Construct a new 1-dimensional array of data-type, *typenum*, that
327
+ ranges from *start* to *stop* (exclusive) in increments of *step*
328
+ . Equivalent to **arange** (*start*, *stop*, *step*, dtype).
329
+
330
+ .. c:function:: PyObject* PyArray_ArangeObj(PyObject* start, PyObject* stop, PyObject* step, PyArray_Descr* descr)
331
+
332
+ Construct a new 1-dimensional array of data-type determined by
333
+ ``descr``, that ranges from ``start`` to ``stop`` (exclusive) in
334
+ increments of ``step``. Equivalent to arange( ``start``,
335
+ ``stop``, ``step``, ``typenum`` ).
336
+
337
+ .. c:function:: int PyArray_SetBaseObject(PyArrayObject* arr, PyObject* obj)
338
+
339
+ .. versionadded:: 1.7
340
+
341
+ This function **steals a reference** to ``obj`` and sets it as the
342
+ base property of ``arr``.
343
+
344
+ If you construct an array by passing in your own memory buffer as
345
+ a parameter, you need to set the array's `base` property to ensure
346
+ the lifetime of the memory buffer is appropriate.
347
+
348
+ The return value is 0 on success, -1 on failure.
349
+
350
+ If the object provided is an array, this function traverses the
351
+ chain of `base` pointers so that each array points to the owner
352
+ of the memory directly. Once the base is set, it may not be changed
353
+ to another value.
354
+
355
+ From other objects
356
+ ^^^^^^^^^^^^^^^^^^
357
+
358
+ .. c:function:: PyObject* PyArray_FromAny(PyObject* op, PyArray_Descr* dtype, int min_depth, int max_depth, int requirements, PyObject* context)
359
+
360
+ This is the main function used to obtain an array from any nested
361
+ sequence, or object that exposes the array interface, *op*. The
362
+ parameters allow specification of the required *dtype*, the
363
+ minimum (*min_depth*) and maximum (*max_depth*) number of
364
+ dimensions acceptable, and other *requirements* for the array. The
365
+ *dtype* argument needs to be a :c:type:`PyArray_Descr` structure
366
+ indicating the desired data-type (including required
367
+ byteorder). The *dtype* argument may be NULL, indicating that any
368
+ data-type (and byteorder) is acceptable. Unless ``FORCECAST`` is
369
+ present in ``flags``, this call will generate an error if the data
370
+ type cannot be safely obtained from the object. If you want to use
371
+ ``NULL`` for the *dtype* and ensure the array is notswapped then
372
+ use :c:func:`PyArray_CheckFromAny`. A value of 0 for either of the
373
+ depth parameters causes the parameter to be ignored. Any of the
374
+ following array flags can be added (*e.g.* using \|) to get the
375
+ *requirements* argument. If your code can handle general (*e.g.*
376
+ strided, byte-swapped, or unaligned arrays) then *requirements*
377
+ may be 0. Also, if *op* is not already an array (or does not
378
+ expose the array interface), then a new array will be created (and
379
+ filled from *op* using the sequence protocol). The new array will
380
+ have :c:data:`NPY_DEFAULT` as its flags member. The *context* argument
381
+ is passed to the :obj:`__array__` method of *op* and is only used if
382
+ the array is constructed that way. Almost always this
383
+ parameter is ``NULL``.
384
+
385
+ In versions 1.6 and earlier of NumPy, the following flags
386
+ did not have the _ARRAY_ macro namespace in them. That form
387
+ of the constant names is deprecated in 1.7.
388
+
389
+ .. c:var:: NPY_ARRAY_C_CONTIGUOUS
390
+
391
+ Make sure the returned array is C-style contiguous
392
+
393
+ .. c:var:: NPY_ARRAY_F_CONTIGUOUS
394
+
395
+ Make sure the returned array is Fortran-style contiguous.
396
+
397
+ .. c:var:: NPY_ARRAY_ALIGNED
398
+
399
+ Make sure the returned array is aligned on proper boundaries for its
400
+ data type. An aligned array has the data pointer and every strides
401
+ factor as a multiple of the alignment factor for the data-type-
402
+ descriptor.
403
+
404
+ .. c:var:: NPY_ARRAY_WRITEABLE
405
+
406
+ Make sure the returned array can be written to.
407
+
408
+ .. c:var:: NPY_ARRAY_ENSURECOPY
409
+
410
+ Make sure a copy is made of *op*. If this flag is not
411
+ present, data is not copied if it can be avoided.
412
+
413
+ .. c:var:: NPY_ARRAY_ENSUREARRAY
414
+
415
+ Make sure the result is a base-class ndarray or bigndarray. By
416
+ default, if *op* is an instance of a subclass of the
417
+ bigndarray, an instance of that same subclass is returned. If
418
+ this flag is set, an ndarray object will be returned instead.
419
+
420
+ .. c:var:: NPY_ARRAY_FORCECAST
421
+
422
+ Force a cast to the output type even if it cannot be done
423
+ safely. Without this flag, a data cast will occur only if it
424
+ can be done safely, otherwise an error is reaised.
425
+
426
+ .. c:var:: NPY_ARRAY_UPDATEIFCOPY
427
+
428
+ If *op* is already an array, but does not satisfy the
429
+ requirements, then a copy is made (which will satisfy the
430
+ requirements). If this flag is present and a copy (of an object
431
+ that is already an array) must be made, then the corresponding
432
+ :c:data:`NPY_ARRAY_UPDATEIFCOPY` flag is set in the returned
433
+ copy and *op* is made to be read-only. When the returned copy
434
+ is deleted (presumably after your calculations are complete),
435
+ its contents will be copied back into *op* and the *op* array
436
+ will be made writeable again. If *op* is not writeable to begin
437
+ with, then an error is raised. If *op* is not already an array,
438
+ then this flag has no effect.
439
+
440
+ .. c:var:: NPY_ARRAY_BEHAVED
441
+
442
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE`
443
+
444
+ .. c:var:: NPY_ARRAY_CARRAY
445
+
446
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_BEHAVED`
447
+
448
+ .. c:var:: NPY_ARRAY_CARRAY_RO
449
+
450
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
451
+
452
+ .. c:var:: NPY_ARRAY_FARRAY
453
+
454
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_BEHAVED`
455
+
456
+ .. c:var:: NPY_ARRAY_FARRAY_RO
457
+
458
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
459
+
460
+ .. c:var:: NPY_ARRAY_DEFAULT
461
+
462
+ :c:data:`NPY_ARRAY_CARRAY`
463
+
464
+ .. c:var:: NPY_ARRAY_IN_ARRAY
465
+
466
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
467
+
468
+ .. c:var:: NPY_ARRAY_IN_FARRAY
469
+
470
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
471
+
472
+ .. c:var:: NPY_OUT_ARRAY
473
+
474
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
475
+ :c:data:`NPY_ARRAY_ALIGNED`
476
+
477
+ .. c:var:: NPY_ARRAY_OUT_FARRAY
478
+
479
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
480
+ :c:data:`NPY_ARRAY_ALIGNED`
481
+
482
+ .. c:var:: NPY_ARRAY_INOUT_ARRAY
483
+
484
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
485
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_UPDATEIFCOPY`
486
+
487
+ .. c:var:: NPY_ARRAY_INOUT_FARRAY
488
+
489
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_WRITEABLE` \|
490
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_UPDATEIFCOPY`
491
+
492
+ .. c:function:: int PyArray_GetArrayParamsFromObject(PyObject* op, PyArray_Descr* requested_dtype, npy_bool writeable, PyArray_Descr** out_dtype, int* out_ndim, npy_intp* out_dims, PyArrayObject** out_arr, PyObject* context)
493
+
494
+ .. versionadded:: 1.6
495
+
496
+ Retrieves the array parameters for viewing/converting an arbitrary
497
+ PyObject* to a NumPy array. This allows the "innate type and shape"
498
+ of Python list-of-lists to be discovered without
499
+ actually converting to an array. PyArray_FromAny calls this function
500
+ to analyze its input.
501
+
502
+ In some cases, such as structured arrays and the __array__ interface,
503
+ a data type needs to be used to make sense of the object. When
504
+ this is needed, provide a Descr for 'requested_dtype', otherwise
505
+ provide NULL. This reference is not stolen. Also, if the requested
506
+ dtype doesn't modify the interpretation of the input, out_dtype will
507
+ still get the "innate" dtype of the object, not the dtype passed
508
+ in 'requested_dtype'.
509
+
510
+ If writing to the value in 'op' is desired, set the boolean
511
+ 'writeable' to 1. This raises an error when 'op' is a scalar, list
512
+ of lists, or other non-writeable 'op'. This differs from passing
513
+ NPY_ARRAY_WRITEABLE to PyArray_FromAny, where the writeable array may
514
+ be a copy of the input.
515
+
516
+ When success (0 return value) is returned, either out_arr
517
+ is filled with a non-NULL PyArrayObject and
518
+ the rest of the parameters are untouched, or out_arr is
519
+ filled with NULL, and the rest of the parameters are filled.
520
+
521
+ Typical usage:
522
+
523
+ .. code-block:: c
524
+
525
+ PyArrayObject *arr = NULL;
526
+ PyArray_Descr *dtype = NULL;
527
+ int ndim = 0;
528
+ npy_intp dims[NPY_MAXDIMS];
529
+
530
+ if (PyArray_GetArrayParamsFromObject(op, NULL, 1, &dtype,
531
+ &ndim, &dims, &arr, NULL) < 0) {
532
+ return NULL;
533
+ }
534
+ if (arr == NULL) {
535
+ ... validate/change dtype, validate flags, ndim, etc ...
536
+ // Could make custom strides here too
537
+ arr = PyArray_NewFromDescr(&PyArray_Type, dtype, ndim,
538
+ dims, NULL,
539
+ fortran ? NPY_ARRAY_F_CONTIGUOUS : 0,
540
+ NULL);
541
+ if (arr == NULL) {
542
+ return NULL;
543
+ }
544
+ if (PyArray_CopyObject(arr, op) < 0) {
545
+ Py_DECREF(arr);
546
+ return NULL;
547
+ }
548
+ }
549
+ else {
550
+ ... in this case the other parameters weren't filled, just
551
+ validate and possibly copy arr itself ...
552
+ }
553
+ ... use arr ...
554
+
555
+ .. c:function:: PyObject* PyArray_CheckFromAny(PyObject* op, PyArray_Descr* dtype, int min_depth, int max_depth, int requirements, PyObject* context)
556
+
557
+ Nearly identical to :c:func:`PyArray_FromAny` (...) except
558
+ *requirements* can contain :c:data:`NPY_ARRAY_NOTSWAPPED` (over-riding the
559
+ specification in *dtype*) and :c:data:`NPY_ARRAY_ELEMENTSTRIDES` which
560
+ indicates that the array should be aligned in the sense that the
561
+ strides are multiples of the element size.
562
+
563
+ In versions 1.6 and earlier of NumPy, the following flags
564
+ did not have the _ARRAY_ macro namespace in them. That form
565
+ of the constant names is deprecated in 1.7.
566
+
567
+ .. c:var:: NPY_ARRAY_NOTSWAPPED
568
+
569
+ Make sure the returned array has a data-type descriptor that is in
570
+ machine byte-order, over-riding any specification in the *dtype*
571
+ argument. Normally, the byte-order requirement is determined by
572
+ the *dtype* argument. If this flag is set and the dtype argument
573
+ does not indicate a machine byte-order descriptor (or is NULL and
574
+ the object is already an array with a data-type descriptor that is
575
+ not in machine byte- order), then a new data-type descriptor is
576
+ created and used with its byte-order field set to native.
577
+
578
+ .. c:var:: NPY_ARRAY_BEHAVED_NS
579
+
580
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE` \| :c:data:`NPY_ARRAY_NOTSWAPPED`
581
+
582
+ .. c:var:: NPY_ARRAY_ELEMENTSTRIDES
583
+
584
+ Make sure the returned array has strides that are multiples of the
585
+ element size.
586
+
587
+ .. c:function:: PyObject* PyArray_FromArray(PyArrayObject* op, PyArray_Descr* newtype, int requirements)
588
+
589
+ Special case of :c:func:`PyArray_FromAny` for when *op* is already an
590
+ array but it needs to be of a specific *newtype* (including
591
+ byte-order) or has certain *requirements*.
592
+
593
+ .. c:function:: PyObject* PyArray_FromStructInterface(PyObject* op)
594
+
595
+ Returns an ndarray object from a Python object that exposes the
596
+ :obj:`__array_struct__` attribute and follows the array interface
597
+ protocol. If the object does not contain this attribute then a
598
+ borrowed reference to :c:data:`Py_NotImplemented` is returned.
599
+
600
+ .. c:function:: PyObject* PyArray_FromInterface(PyObject* op)
601
+
602
+ Returns an ndarray object from a Python object that exposes the
603
+ :obj:`__array_interface__` attribute following the array interface
604
+ protocol. If the object does not contain this attribute then a
605
+ borrowed reference to :c:data:`Py_NotImplemented` is returned.
606
+
607
+ .. c:function:: PyObject* PyArray_FromArrayAttr(PyObject* op, PyArray_Descr* dtype, PyObject* context)
608
+
609
+ Return an ndarray object from a Python object that exposes the
610
+ :obj:`__array__` method. The :obj:`__array__` method can take 0, 1, or 2
611
+ arguments ([dtype, context]) where *context* is used to pass
612
+ information about where the :obj:`__array__` method is being called
613
+ from (currently only used in ufuncs).
614
+
615
+ .. c:function:: PyObject* PyArray_ContiguousFromAny(PyObject* op, int typenum, int min_depth, int max_depth)
616
+
617
+ This function returns a (C-style) contiguous and behaved function
618
+ array from any nested sequence or array interface exporting
619
+ object, *op*, of (non-flexible) type given by the enumerated
620
+ *typenum*, of minimum depth *min_depth*, and of maximum depth
621
+ *max_depth*. Equivalent to a call to :c:func:`PyArray_FromAny` with
622
+ requirements set to :c:data:`NPY_DEFAULT` and the type_num member of the
623
+ type argument set to *typenum*.
624
+
625
+ .. c:function:: PyObject *PyArray_FromObject(PyObject *op, int typenum, int min_depth, int max_depth)
626
+
627
+ Return an aligned and in native-byteorder array from any nested
628
+ sequence or array-interface exporting object, op, of a type given by
629
+ the enumerated typenum. The minimum number of dimensions the array can
630
+ have is given by min_depth while the maximum is max_depth. This is
631
+ equivalent to a call to :c:func:`PyArray_FromAny` with requirements set to
632
+ BEHAVED.
633
+
634
+ .. c:function:: PyObject* PyArray_EnsureArray(PyObject* op)
635
+
636
+ This function **steals a reference** to ``op`` and makes sure that
637
+ ``op`` is a base-class ndarray. It special cases array scalars,
638
+ but otherwise calls :c:func:`PyArray_FromAny` ( ``op``, NULL, 0, 0,
639
+ :c:data:`NPY_ARRAY_ENSUREARRAY`).
640
+
641
+ .. c:function:: PyObject* PyArray_FromString(char* string, npy_intp slen, PyArray_Descr* dtype, npy_intp num, char* sep)
642
+
643
+ Construct a one-dimensional ndarray of a single type from a binary
644
+ or (ASCII) text ``string`` of length ``slen``. The data-type of
645
+ the array to-be-created is given by ``dtype``. If num is -1, then
646
+ **copy** the entire string and return an appropriately sized
647
+ array, otherwise, ``num`` is the number of items to **copy** from
648
+ the string. If ``sep`` is NULL (or ""), then interpret the string
649
+ as bytes of binary data, otherwise convert the sub-strings
650
+ separated by ``sep`` to items of data-type ``dtype``. Some
651
+ data-types may not be readable in text mode and an error will be
652
+ raised if that occurs. All errors return NULL.
653
+
654
+ .. c:function:: PyObject* PyArray_FromFile(FILE* fp, PyArray_Descr* dtype, npy_intp num, char* sep)
655
+
656
+ Construct a one-dimensional ndarray of a single type from a binary
657
+ or text file. The open file pointer is ``fp``, the data-type of
658
+ the array to be created is given by ``dtype``. This must match
659
+ the data in the file. If ``num`` is -1, then read until the end of
660
+ the file and return an appropriately sized array, otherwise,
661
+ ``num`` is the number of items to read. If ``sep`` is NULL (or
662
+ ""), then read from the file in binary mode, otherwise read from
663
+ the file in text mode with ``sep`` providing the item
664
+ separator. Some array types cannot be read in text mode in which
665
+ case an error is raised.
666
+
667
+ .. c:function:: PyObject* PyArray_FromBuffer(PyObject* buf, PyArray_Descr* dtype, npy_intp count, npy_intp offset)
668
+
669
+ Construct a one-dimensional ndarray of a single type from an
670
+ object, ``buf``, that exports the (single-segment) buffer protocol
671
+ (or has an attribute __buffer\__ that returns an object that
672
+ exports the buffer protocol). A writeable buffer will be tried
673
+ first followed by a read- only buffer. The :c:data:`NPY_ARRAY_WRITEABLE`
674
+ flag of the returned array will reflect which one was
675
+ successful. The data is assumed to start at ``offset`` bytes from
676
+ the start of the memory location for the object. The type of the
677
+ data in the buffer will be interpreted depending on the data- type
678
+ descriptor, ``dtype.`` If ``count`` is negative then it will be
679
+ determined from the size of the buffer and the requested itemsize,
680
+ otherwise, ``count`` represents how many elements should be
681
+ converted from the buffer.
682
+
683
+ .. c:function:: int PyArray_CopyInto(PyArrayObject* dest, PyArrayObject* src)
684
+
685
+ Copy from the source array, ``src``, into the destination array,
686
+ ``dest``, performing a data-type conversion if necessary. If an
687
+ error occurs return -1 (otherwise 0). The shape of ``src`` must be
688
+ broadcastable to the shape of ``dest``. The data areas of dest
689
+ and src must not overlap.
690
+
691
+ .. c:function:: int PyArray_MoveInto(PyArrayObject* dest, PyArrayObject* src)
692
+
693
+ Move data from the source array, ``src``, into the destination
694
+ array, ``dest``, performing a data-type conversion if
695
+ necessary. If an error occurs return -1 (otherwise 0). The shape
696
+ of ``src`` must be broadcastable to the shape of ``dest``. The
697
+ data areas of dest and src may overlap.
698
+
699
+ .. c:function:: PyArrayObject* PyArray_GETCONTIGUOUS(PyObject* op)
700
+
701
+ If ``op`` is already (C-style) contiguous and well-behaved then
702
+ just return a reference, otherwise return a (contiguous and
703
+ well-behaved) copy of the array. The parameter op must be a
704
+ (sub-class of an) ndarray and no checking for that is done.
705
+
706
+ .. c:function:: PyObject* PyArray_FROM_O(PyObject* obj)
707
+
708
+ Convert ``obj`` to an ndarray. The argument can be any nested
709
+ sequence or object that exports the array interface. This is a
710
+ macro form of :c:func:`PyArray_FromAny` using ``NULL``, 0, 0, 0 for the
711
+ other arguments. Your code must be able to handle any data-type
712
+ descriptor and any combination of data-flags to use this macro.
713
+
714
+ .. c:function:: PyObject* PyArray_FROM_OF(PyObject* obj, int requirements)
715
+
716
+ Similar to :c:func:`PyArray_FROM_O` except it can take an argument
717
+ of *requirements* indicating properties the resulting array must
718
+ have. Available requirements that can be enforced are
719
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS`, :c:data:`NPY_ARRAY_F_CONTIGUOUS`,
720
+ :c:data:`NPY_ARRAY_ALIGNED`, :c:data:`NPY_ARRAY_WRITEABLE`,
721
+ :c:data:`NPY_ARRAY_NOTSWAPPED`, :c:data:`NPY_ARRAY_ENSURECOPY`,
722
+ :c:data:`NPY_ARRAY_UPDATEIFCOPY`, :c:data:`NPY_ARRAY_FORCECAST`, and
723
+ :c:data:`NPY_ARRAY_ENSUREARRAY`. Standard combinations of flags can also
724
+ be used:
725
+
726
+ .. c:function:: PyObject* PyArray_FROM_OT(PyObject* obj, int typenum)
727
+
728
+ Similar to :c:func:`PyArray_FROM_O` except it can take an argument of
729
+ *typenum* specifying the type-number the returned array.
730
+
731
+ .. c:function:: PyObject* PyArray_FROM_OTF(PyObject* obj, int typenum, int requirements)
732
+
733
+ Combination of :c:func:`PyArray_FROM_OF` and :c:func:`PyArray_FROM_OT`
734
+ allowing both a *typenum* and a *flags* argument to be provided..
735
+
736
+ .. c:function:: PyObject* PyArray_FROMANY(PyObject* obj, int typenum, int min, int max, int requirements)
737
+
738
+ Similar to :c:func:`PyArray_FromAny` except the data-type is
739
+ specified using a typenumber. :c:func:`PyArray_DescrFromType`
740
+ (*typenum*) is passed directly to :c:func:`PyArray_FromAny`. This
741
+ macro also adds :c:data:`NPY_DEFAULT` to requirements if
742
+ :c:data:`NPY_ARRAY_ENSURECOPY` is passed in as requirements.
743
+
744
+ .. c:function:: PyObject *PyArray_CheckAxis(PyObject* obj, int* axis, int requirements)
745
+
746
+ Encapsulate the functionality of functions and methods that take
747
+ the axis= keyword and work properly with None as the axis
748
+ argument. The input array is ``obj``, while ``*axis`` is a
749
+ converted integer (so that >=MAXDIMS is the None value), and
750
+ ``requirements`` gives the needed properties of ``obj``. The
751
+ output is a converted version of the input so that requirements
752
+ are met and if needed a flattening has occurred. On output
753
+ negative values of ``*axis`` are converted and the new value is
754
+ checked to ensure consistency with the shape of ``obj``.
755
+
756
+
757
+ Dealing with types
758
+ ------------------
759
+
760
+
761
+ General check of Python Type
762
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
763
+
764
+ .. c:function:: PyArray_Check(op)
765
+
766
+ Evaluates true if *op* is a Python object whose type is a sub-type
767
+ of :c:data:`PyArray_Type`.
768
+
769
+ .. c:function:: PyArray_CheckExact(op)
770
+
771
+ Evaluates true if *op* is a Python object with type
772
+ :c:data:`PyArray_Type`.
773
+
774
+ .. c:function:: PyArray_HasArrayInterface(op, out)
775
+
776
+ If ``op`` implements any part of the array interface, then ``out``
777
+ will contain a new reference to the newly created ndarray using
778
+ the interface or ``out`` will contain ``NULL`` if an error during
779
+ conversion occurs. Otherwise, out will contain a borrowed
780
+ reference to :c:data:`Py_NotImplemented` and no error condition is set.
781
+
782
+ .. c:function:: PyArray_HasArrayInterfaceType(op, type, context, out)
783
+
784
+ If ``op`` implements any part of the array interface, then ``out``
785
+ will contain a new reference to the newly created ndarray using
786
+ the interface or ``out`` will contain ``NULL`` if an error during
787
+ conversion occurs. Otherwise, out will contain a borrowed
788
+ reference to Py_NotImplemented and no error condition is set.
789
+ This version allows setting of the type and context in the part of
790
+ the array interface that looks for the :obj:`__array__` attribute.
791
+
792
+ .. c:function:: PyArray_IsZeroDim(op)
793
+
794
+ Evaluates true if *op* is an instance of (a subclass of)
795
+ :c:data:`PyArray_Type` and has 0 dimensions.
796
+
797
+ .. c:function:: PyArray_IsScalar(op, cls)
798
+
799
+ Evaluates true if *op* is an instance of :c:data:`Py{cls}ArrType_Type`.
800
+
801
+ .. c:function:: PyArray_CheckScalar(op)
802
+
803
+ Evaluates true if *op* is either an array scalar (an instance of a
804
+ sub-type of :c:data:`PyGenericArr_Type` ), or an instance of (a
805
+ sub-class of) :c:data:`PyArray_Type` whose dimensionality is 0.
806
+
807
+ .. c:function:: PyArray_IsPythonNumber(op)
808
+
809
+ Evaluates true if *op* is an instance of a builtin numeric type (int,
810
+ float, complex, long, bool)
811
+
812
+ .. c:function:: PyArray_IsPythonScalar(op)
813
+
814
+ Evaluates true if *op* is a builtin Python scalar object (int,
815
+ float, complex, str, unicode, long, bool).
816
+
817
+ .. c:function:: PyArray_IsAnyScalar(op)
818
+
819
+ Evaluates true if *op* is either a Python scalar object (see
820
+ :c:func:`PyArray_IsPythonScalar`) or an array scalar (an instance of a sub-
821
+ type of :c:data:`PyGenericArr_Type` ).
822
+
823
+ .. c:function:: PyArray_CheckAnyScalar(op)
824
+
825
+ Evaluates true if *op* is a Python scalar object (see
826
+ :c:func:`PyArray_IsPythonScalar`), an array scalar (an instance of a
827
+ sub-type of :c:data:`PyGenericArr_Type`) or an instance of a sub-type of
828
+ :c:data:`PyArray_Type` whose dimensionality is 0.
829
+
830
+
831
+ Data-type checking
832
+ ^^^^^^^^^^^^^^^^^^
833
+
834
+ For the typenum macros, the argument is an integer representing an
835
+ enumerated array data type. For the array type checking macros the
836
+ argument must be a :c:type:`PyObject *` that can be directly interpreted as a
837
+ :c:type:`PyArrayObject *`.
838
+
839
+ .. c:function:: PyTypeNum_ISUNSIGNED(num)
840
+
841
+ .. c:function:: PyDataType_ISUNSIGNED(descr)
842
+
843
+ .. c:function:: PyArray_ISUNSIGNED(obj)
844
+
845
+ Type represents an unsigned integer.
846
+
847
+ .. c:function:: PyTypeNum_ISSIGNED(num)
848
+
849
+ .. c:function:: PyDataType_ISSIGNED(descr)
850
+
851
+ .. c:function:: PyArray_ISSIGNED(obj)
852
+
853
+ Type represents a signed integer.
854
+
855
+ .. c:function:: PyTypeNum_ISINTEGER(num)
856
+
857
+ .. c:function:: PyDataType_ISINTEGER(descr)
858
+
859
+ .. c:function:: PyArray_ISINTEGER(obj)
860
+
861
+ Type represents any integer.
862
+
863
+ .. c:function:: PyTypeNum_ISFLOAT(num)
864
+
865
+ .. c:function:: PyDataType_ISFLOAT(descr)
866
+
867
+ .. c:function:: PyArray_ISFLOAT(obj)
868
+
869
+ Type represents any floating point number.
870
+
871
+ .. c:function:: PyTypeNum_ISCOMPLEX(num)
872
+
873
+ .. c:function:: PyDataType_ISCOMPLEX(descr)
874
+
875
+ .. c:function:: PyArray_ISCOMPLEX(obj)
876
+
877
+ Type represents any complex floating point number.
878
+
879
+ .. c:function:: PyTypeNum_ISNUMBER(num)
880
+
881
+ .. c:function:: PyDataType_ISNUMBER(descr)
882
+
883
+ .. c:function:: PyArray_ISNUMBER(obj)
884
+
885
+ Type represents any integer, floating point, or complex floating point
886
+ number.
887
+
888
+ .. c:function:: PyTypeNum_ISSTRING(num)
889
+
890
+ .. c:function:: PyDataType_ISSTRING(descr)
891
+
892
+ .. c:function:: PyArray_ISSTRING(obj)
893
+
894
+ Type represents a string data type.
895
+
896
+ .. c:function:: PyTypeNum_ISPYTHON(num)
897
+
898
+ .. c:function:: PyDataType_ISPYTHON(descr)
899
+
900
+ .. c:function:: PyArray_ISPYTHON(obj)
901
+
902
+ Type represents an enumerated type corresponding to one of the
903
+ standard Python scalar (bool, int, float, or complex).
904
+
905
+ .. c:function:: PyTypeNum_ISFLEXIBLE(num)
906
+
907
+ .. c:function:: PyDataType_ISFLEXIBLE(descr)
908
+
909
+ .. c:function:: PyArray_ISFLEXIBLE(obj)
910
+
911
+ Type represents one of the flexible array types ( :c:data:`NPY_STRING`,
912
+ :c:data:`NPY_UNICODE`, or :c:data:`NPY_VOID` ).
913
+
914
+ .. c:function:: PyTypeNum_ISUSERDEF(num)
915
+
916
+ .. c:function:: PyDataType_ISUSERDEF(descr)
917
+
918
+ .. c:function:: PyArray_ISUSERDEF(obj)
919
+
920
+ Type represents a user-defined type.
921
+
922
+ .. c:function:: PyTypeNum_ISEXTENDED(num)
923
+
924
+ .. c:function:: PyDataType_ISEXTENDED(descr)
925
+
926
+ .. c:function:: PyArray_ISEXTENDED(obj)
927
+
928
+ Type is either flexible or user-defined.
929
+
930
+ .. c:function:: PyTypeNum_ISOBJECT(num)
931
+
932
+ .. c:function:: PyDataType_ISOBJECT(descr)
933
+
934
+ .. c:function:: PyArray_ISOBJECT(obj)
935
+
936
+ Type represents object data type.
937
+
938
+ .. c:function:: PyTypeNum_ISBOOL(num)
939
+
940
+ .. c:function:: PyDataType_ISBOOL(descr)
941
+
942
+ .. c:function:: PyArray_ISBOOL(obj)
943
+
944
+ Type represents Boolean data type.
945
+
946
+ .. c:function:: PyDataType_HASFIELDS(descr)
947
+
948
+ .. c:function:: PyArray_HASFIELDS(obj)
949
+
950
+ Type has fields associated with it.
951
+
952
+ .. c:function:: PyArray_ISNOTSWAPPED(m)
953
+
954
+ Evaluates true if the data area of the ndarray *m* is in machine
955
+ byte-order according to the array's data-type descriptor.
956
+
957
+ .. c:function:: PyArray_ISBYTESWAPPED(m)
958
+
959
+ Evaluates true if the data area of the ndarray *m* is **not** in
960
+ machine byte-order according to the array's data-type descriptor.
961
+
962
+ .. c:function:: Bool PyArray_EquivTypes(PyArray_Descr* type1, PyArray_Descr* type2)
963
+
964
+ Return :c:data:`NPY_TRUE` if *type1* and *type2* actually represent
965
+ equivalent types for this platform (the fortran member of each
966
+ type is ignored). For example, on 32-bit platforms,
967
+ :c:data:`NPY_LONG` and :c:data:`NPY_INT` are equivalent. Otherwise
968
+ return :c:data:`NPY_FALSE`.
969
+
970
+ .. c:function:: Bool PyArray_EquivArrTypes(PyArrayObject* a1, PyArrayObject * a2)
971
+
972
+ Return :c:data:`NPY_TRUE` if *a1* and *a2* are arrays with equivalent
973
+ types for this platform.
974
+
975
+ .. c:function:: Bool PyArray_EquivTypenums(int typenum1, int typenum2)
976
+
977
+ Special case of :c:func:`PyArray_EquivTypes` (...) that does not accept
978
+ flexible data types but may be easier to call.
979
+
980
+ .. c:function:: int PyArray_EquivByteorders({byteorder} b1, {byteorder} b2)
981
+
982
+ True if byteorder characters ( :c:data:`NPY_LITTLE`,
983
+ :c:data:`NPY_BIG`, :c:data:`NPY_NATIVE`, :c:data:`NPY_IGNORE` ) are
984
+ either equal or equivalent as to their specification of a native
985
+ byte order. Thus, on a little-endian machine :c:data:`NPY_LITTLE`
986
+ and :c:data:`NPY_NATIVE` are equivalent where they are not
987
+ equivalent on a big-endian machine.
988
+
989
+
990
+ Converting data types
991
+ ^^^^^^^^^^^^^^^^^^^^^
992
+
993
+ .. c:function:: PyObject* PyArray_Cast(PyArrayObject* arr, int typenum)
994
+
995
+ Mainly for backwards compatibility to the Numeric C-API and for
996
+ simple casts to non-flexible types. Return a new array object with
997
+ the elements of *arr* cast to the data-type *typenum* which must
998
+ be one of the enumerated types and not a flexible type.
999
+
1000
+ .. c:function:: PyObject* PyArray_CastToType(PyArrayObject* arr, PyArray_Descr* type, int fortran)
1001
+
1002
+ Return a new array of the *type* specified, casting the elements
1003
+ of *arr* as appropriate. The fortran argument specifies the
1004
+ ordering of the output array.
1005
+
1006
+ .. c:function:: int PyArray_CastTo(PyArrayObject* out, PyArrayObject* in)
1007
+
1008
+ As of 1.6, this function simply calls :c:func:`PyArray_CopyInto`,
1009
+ which handles the casting.
1010
+
1011
+ Cast the elements of the array *in* into the array *out*. The
1012
+ output array should be writeable, have an integer-multiple of the
1013
+ number of elements in the input array (more than one copy can be
1014
+ placed in out), and have a data type that is one of the builtin
1015
+ types. Returns 0 on success and -1 if an error occurs.
1016
+
1017
+ .. c:function:: PyArray_VectorUnaryFunc* PyArray_GetCastFunc(PyArray_Descr* from, int totype)
1018
+
1019
+ Return the low-level casting function to cast from the given
1020
+ descriptor to the builtin type number. If no casting function
1021
+ exists return ``NULL`` and set an error. Using this function
1022
+ instead of direct access to *from* ->f->cast will allow support of
1023
+ any user-defined casting functions added to a descriptors casting
1024
+ dictionary.
1025
+
1026
+ .. c:function:: int PyArray_CanCastSafely(int fromtype, int totype)
1027
+
1028
+ Returns non-zero if an array of data type *fromtype* can be cast
1029
+ to an array of data type *totype* without losing information. An
1030
+ exception is that 64-bit integers are allowed to be cast to 64-bit
1031
+ floating point values even though this can lose precision on large
1032
+ integers so as not to proliferate the use of long doubles without
1033
+ explict requests. Flexible array types are not checked according
1034
+ to their lengths with this function.
1035
+
1036
+ .. c:function:: int PyArray_CanCastTo(PyArray_Descr* fromtype, PyArray_Descr* totype)
1037
+
1038
+ :c:func:`PyArray_CanCastTypeTo` supercedes this function in
1039
+ NumPy 1.6 and later.
1040
+
1041
+ Equivalent to PyArray_CanCastTypeTo(fromtype, totype, NPY_SAFE_CASTING).
1042
+
1043
+ .. c:function:: int PyArray_CanCastTypeTo(PyArray_Descr* fromtype, PyArray_Descr* totype, NPY_CASTING casting)
1044
+
1045
+ .. versionadded:: 1.6
1046
+
1047
+ Returns non-zero if an array of data type *fromtype* (which can
1048
+ include flexible types) can be cast safely to an array of data
1049
+ type *totype* (which can include flexible types) according to
1050
+ the casting rule *casting*. For simple types with :c:data:`NPY_SAFE_CASTING`,
1051
+ this is basically a wrapper around :c:func:`PyArray_CanCastSafely`, but
1052
+ for flexible types such as strings or unicode, it produces results
1053
+ taking into account their sizes. Integer and float types can only be cast
1054
+ to a string or unicode type using :c:data:`NPY_SAFE_CASTING` if the string
1055
+ or unicode type is big enough to hold the max value of the integer/float
1056
+ type being cast from.
1057
+
1058
+ .. c:function:: int PyArray_CanCastArrayTo(PyArrayObject* arr, PyArray_Descr* totype, NPY_CASTING casting)
1059
+
1060
+ .. versionadded:: 1.6
1061
+
1062
+ Returns non-zero if *arr* can be cast to *totype* according
1063
+ to the casting rule given in *casting*. If *arr* is an array
1064
+ scalar, its value is taken into account, and non-zero is also
1065
+ returned when the value will not overflow or be truncated to
1066
+ an integer when converting to a smaller type.
1067
+
1068
+ This is almost the same as the result of
1069
+ PyArray_CanCastTypeTo(PyArray_MinScalarType(arr), totype, casting),
1070
+ but it also handles a special case arising because the set
1071
+ of uint values is not a subset of the int values for types with the
1072
+ same number of bits.
1073
+
1074
+ .. c:function:: PyArray_Descr* PyArray_MinScalarType(PyArrayObject* arr)
1075
+
1076
+ .. versionadded:: 1.6
1077
+
1078
+ If *arr* is an array, returns its data type descriptor, but if
1079
+ *arr* is an array scalar (has 0 dimensions), it finds the data type
1080
+ of smallest size to which the value may be converted
1081
+ without overflow or truncation to an integer.
1082
+
1083
+ This function will not demote complex to float or anything to
1084
+ boolean, but will demote a signed integer to an unsigned integer
1085
+ when the scalar value is positive.
1086
+
1087
+ .. c:function:: PyArray_Descr* PyArray_PromoteTypes(PyArray_Descr* type1, PyArray_Descr* type2)
1088
+
1089
+ .. versionadded:: 1.6
1090
+
1091
+ Finds the data type of smallest size and kind to which *type1* and
1092
+ *type2* may be safely converted. This function is symmetric and
1093
+ associative. A string or unicode result will be the proper size for
1094
+ storing the max value of the input types converted to a string or unicode.
1095
+
1096
+ .. c:function:: PyArray_Descr* PyArray_ResultType(npy_intp narrs, PyArrayObject**arrs, npy_intp ndtypes, PyArray_Descr**dtypes)
1097
+
1098
+ .. versionadded:: 1.6
1099
+
1100
+ This applies type promotion to all the inputs,
1101
+ using the NumPy rules for combining scalars and arrays, to
1102
+ determine the output type of a set of operands. This is the
1103
+ same result type that ufuncs produce. The specific algorithm
1104
+ used is as follows.
1105
+
1106
+ Categories are determined by first checking which of boolean,
1107
+ integer (int/uint), or floating point (float/complex) the maximum
1108
+ kind of all the arrays and the scalars are.
1109
+
1110
+ If there are only scalars or the maximum category of the scalars
1111
+ is higher than the maximum category of the arrays,
1112
+ the data types are combined with :c:func:`PyArray_PromoteTypes`
1113
+ to produce the return value.
1114
+
1115
+ Otherwise, PyArray_MinScalarType is called on each array, and
1116
+ the resulting data types are all combined with
1117
+ :c:func:`PyArray_PromoteTypes` to produce the return value.
1118
+
1119
+ The set of int values is not a subset of the uint values for types
1120
+ with the same number of bits, something not reflected in
1121
+ :c:func:`PyArray_MinScalarType`, but handled as a special case in
1122
+ PyArray_ResultType.
1123
+
1124
+ .. c:function:: int PyArray_ObjectType(PyObject* op, int mintype)
1125
+
1126
+ This function is superceded by :c:func:`PyArray_MinScalarType` and/or
1127
+ :c:func:`PyArray_ResultType`.
1128
+
1129
+ This function is useful for determining a common type that two or
1130
+ more arrays can be converted to. It only works for non-flexible
1131
+ array types as no itemsize information is passed. The *mintype*
1132
+ argument represents the minimum type acceptable, and *op*
1133
+ represents the object that will be converted to an array. The
1134
+ return value is the enumerated typenumber that represents the
1135
+ data-type that *op* should have.
1136
+
1137
+ .. c:function:: void PyArray_ArrayType(PyObject* op, PyArray_Descr* mintype, PyArray_Descr* outtype)
1138
+
1139
+ This function is superceded by :c:func:`PyArray_ResultType`.
1140
+
1141
+ This function works similarly to :c:func:`PyArray_ObjectType` (...)
1142
+ except it handles flexible arrays. The *mintype* argument can have
1143
+ an itemsize member and the *outtype* argument will have an
1144
+ itemsize member at least as big but perhaps bigger depending on
1145
+ the object *op*.
1146
+
1147
+ .. c:function:: PyArrayObject** PyArray_ConvertToCommonType(PyObject* op, int* n)
1148
+
1149
+ The functionality this provides is largely superceded by iterator
1150
+ :c:type:`NpyIter` introduced in 1.6, with flag
1151
+ :c:data:`NPY_ITER_COMMON_DTYPE` or with the same dtype parameter for
1152
+ all operands.
1153
+
1154
+ Convert a sequence of Python objects contained in *op* to an array
1155
+ of ndarrays each having the same data type. The type is selected
1156
+ based on the typenumber (larger type number is chosen over a
1157
+ smaller one) ignoring objects that are only scalars. The length of
1158
+ the sequence is returned in *n*, and an *n* -length array of
1159
+ :c:type:`PyArrayObject` pointers is the return value (or ``NULL`` if an
1160
+ error occurs). The returned array must be freed by the caller of
1161
+ this routine (using :c:func:`PyDataMem_FREE` ) and all the array objects
1162
+ in it ``DECREF`` 'd or a memory-leak will occur. The example
1163
+ template-code below shows a typically usage:
1164
+
1165
+ .. code-block:: c
1166
+
1167
+ mps = PyArray_ConvertToCommonType(obj, &n);
1168
+ if (mps==NULL) return NULL;
1169
+ {code}
1170
+ <before return>
1171
+ for (i=0; i<n; i++) Py_DECREF(mps[i]);
1172
+ PyDataMem_FREE(mps);
1173
+ {return}
1174
+
1175
+ .. c:function:: char* PyArray_Zero(PyArrayObject* arr)
1176
+
1177
+ A pointer to newly created memory of size *arr* ->itemsize that
1178
+ holds the representation of 0 for that type. The returned pointer,
1179
+ *ret*, **must be freed** using :c:func:`PyDataMem_FREE` (ret) when it is
1180
+ not needed anymore.
1181
+
1182
+ .. c:function:: char* PyArray_One(PyArrayObject* arr)
1183
+
1184
+ A pointer to newly created memory of size *arr* ->itemsize that
1185
+ holds the representation of 1 for that type. The returned pointer,
1186
+ *ret*, **must be freed** using :c:func:`PyDataMem_FREE` (ret) when it
1187
+ is not needed anymore.
1188
+
1189
+ .. c:function:: int PyArray_ValidType(int typenum)
1190
+
1191
+ Returns :c:data:`NPY_TRUE` if *typenum* represents a valid type-number
1192
+ (builtin or user-defined or character code). Otherwise, this
1193
+ function returns :c:data:`NPY_FALSE`.
1194
+
1195
+
1196
+ New data types
1197
+ ^^^^^^^^^^^^^^
1198
+
1199
+ .. c:function:: void PyArray_InitArrFuncs(PyArray_ArrFuncs* f)
1200
+
1201
+ Initialize all function pointers and members to ``NULL``.
1202
+
1203
+ .. c:function:: int PyArray_RegisterDataType(PyArray_Descr* dtype)
1204
+
1205
+ Register a data-type as a new user-defined data type for
1206
+ arrays. The type must have most of its entries filled in. This is
1207
+ not always checked and errors can produce segfaults. In
1208
+ particular, the typeobj member of the ``dtype`` structure must be
1209
+ filled with a Python type that has a fixed-size element-size that
1210
+ corresponds to the elsize member of *dtype*. Also the ``f``
1211
+ member must have the required functions: nonzero, copyswap,
1212
+ copyswapn, getitem, setitem, and cast (some of the cast functions
1213
+ may be ``NULL`` if no support is desired). To avoid confusion, you
1214
+ should choose a unique character typecode but this is not enforced
1215
+ and not relied on internally.
1216
+
1217
+ A user-defined type number is returned that uniquely identifies
1218
+ the type. A pointer to the new structure can then be obtained from
1219
+ :c:func:`PyArray_DescrFromType` using the returned type number. A -1 is
1220
+ returned if an error occurs. If this *dtype* has already been
1221
+ registered (checked only by the address of the pointer), then
1222
+ return the previously-assigned type-number.
1223
+
1224
+ .. c:function:: int PyArray_RegisterCastFunc(PyArray_Descr* descr, int totype, PyArray_VectorUnaryFunc* castfunc)
1225
+
1226
+ Register a low-level casting function, *castfunc*, to convert
1227
+ from the data-type, *descr*, to the given data-type number,
1228
+ *totype*. Any old casting function is over-written. A ``0`` is
1229
+ returned on success or a ``-1`` on failure.
1230
+
1231
+ .. c:function:: int PyArray_RegisterCanCast(PyArray_Descr* descr, int totype, NPY_SCALARKIND scalar)
1232
+
1233
+ Register the data-type number, *totype*, as castable from
1234
+ data-type object, *descr*, of the given *scalar* kind. Use
1235
+ *scalar* = :c:data:`NPY_NOSCALAR` to register that an array of data-type
1236
+ *descr* can be cast safely to a data-type whose type_number is
1237
+ *totype*.
1238
+
1239
+
1240
+ Special functions for NPY_OBJECT
1241
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1242
+
1243
+ .. c:function:: int PyArray_INCREF(PyArrayObject* op)
1244
+
1245
+ Used for an array, *op*, that contains any Python objects. It
1246
+ increments the reference count of every object in the array
1247
+ according to the data-type of *op*. A -1 is returned if an error
1248
+ occurs, otherwise 0 is returned.
1249
+
1250
+ .. c:function:: void PyArray_Item_INCREF(char* ptr, PyArray_Descr* dtype)
1251
+
1252
+ A function to INCREF all the objects at the location *ptr*
1253
+ according to the data-type *dtype*. If *ptr* is the start of a
1254
+ structured type with an object at any offset, then this will (recursively)
1255
+ increment the reference count of all object-like items in the
1256
+ structured type.
1257
+
1258
+ .. c:function:: int PyArray_XDECREF(PyArrayObject* op)
1259
+
1260
+ Used for an array, *op*, that contains any Python objects. It
1261
+ decrements the reference count of every object in the array
1262
+ according to the data-type of *op*. Normal return value is 0. A
1263
+ -1 is returned if an error occurs.
1264
+
1265
+ .. c:function:: void PyArray_Item_XDECREF(char* ptr, PyArray_Descr* dtype)
1266
+
1267
+ A function to XDECREF all the object-like items at the location
1268
+ *ptr* as recorded in the data-type, *dtype*. This works
1269
+ recursively so that if ``dtype`` itself has fields with data-types
1270
+ that contain object-like items, all the object-like fields will be
1271
+ XDECREF ``'d``.
1272
+
1273
+ .. c:function:: void PyArray_FillObjectArray(PyArrayObject* arr, PyObject* obj)
1274
+
1275
+ Fill a newly created array with a single value obj at all
1276
+ locations in the structure with object data-types. No checking is
1277
+ performed but *arr* must be of data-type :c:type:`NPY_OBJECT` and be
1278
+ single-segment and uninitialized (no previous objects in
1279
+ position). Use :c:func:`PyArray_DECREF` (*arr*) if you need to
1280
+ decrement all the items in the object array prior to calling this
1281
+ function.
1282
+
1283
+
1284
+ Array flags
1285
+ -----------
1286
+
1287
+ The ``flags`` attribute of the ``PyArrayObject`` structure contains
1288
+ important information about the memory used by the array (pointed to
1289
+ by the data member) This flag information must be kept accurate or
1290
+ strange results and even segfaults may result.
1291
+
1292
+ There are 6 (binary) flags that describe the memory area used by the
1293
+ data buffer. These constants are defined in ``arrayobject.h`` and
1294
+ determine the bit-position of the flag. Python exposes a nice
1295
+ attribute- based interface as well as a dictionary-like interface for
1296
+ getting (and, if appropriate, setting) these flags.
1297
+
1298
+ Memory areas of all kinds can be pointed to by an ndarray, necessitating
1299
+ these flags. If you get an arbitrary ``PyArrayObject`` in C-code, you
1300
+ need to be aware of the flags that are set. If you need to guarantee
1301
+ a certain kind of array (like :c:data:`NPY_ARRAY_C_CONTIGUOUS` and
1302
+ :c:data:`NPY_ARRAY_BEHAVED`), then pass these requirements into the
1303
+ PyArray_FromAny function.
1304
+
1305
+
1306
+ Basic Array Flags
1307
+ ^^^^^^^^^^^^^^^^^
1308
+
1309
+ An ndarray can have a data segment that is not a simple contiguous
1310
+ chunk of well-behaved memory you can manipulate. It may not be aligned
1311
+ with word boundaries (very important on some platforms). It might have
1312
+ its data in a different byte-order than the machine recognizes. It
1313
+ might not be writeable. It might be in Fortan-contiguous order. The
1314
+ array flags are used to indicate what can be said about data
1315
+ associated with an array.
1316
+
1317
+ In versions 1.6 and earlier of NumPy, the following flags
1318
+ did not have the _ARRAY_ macro namespace in them. That form
1319
+ of the constant names is deprecated in 1.7.
1320
+
1321
+ .. c:var:: NPY_ARRAY_C_CONTIGUOUS
1322
+
1323
+ The data area is in C-style contiguous order (last index varies the
1324
+ fastest).
1325
+
1326
+ .. c:var:: NPY_ARRAY_F_CONTIGUOUS
1327
+
1328
+ The data area is in Fortran-style contiguous order (first index varies
1329
+ the fastest).
1330
+
1331
+ .. note::
1332
+
1333
+ Arrays can be both C-style and Fortran-style contiguous simultaneously.
1334
+ This is clear for 1-dimensional arrays, but can also be true for higher
1335
+ dimensional arrays.
1336
+
1337
+ Even for contiguous arrays a stride for a given dimension
1338
+ ``arr.strides[dim]`` may be *arbitrary* if ``arr.shape[dim] == 1``
1339
+ or the array has no elements.
1340
+ It does *not* generally hold that ``self.strides[-1] == self.itemsize``
1341
+ for C-style contiguous arrays or ``self.strides[0] == self.itemsize`` for
1342
+ Fortran-style contiguous arrays is true. The correct way to access the
1343
+ ``itemsize`` of an array from the C API is ``PyArray_ITEMSIZE(arr)``.
1344
+
1345
+ .. seealso:: :ref:`Internal memory layout of an ndarray <arrays.ndarray>`
1346
+
1347
+ .. c:var:: NPY_ARRAY_OWNDATA
1348
+
1349
+ The data area is owned by this array.
1350
+
1351
+ .. c:var:: NPY_ARRAY_ALIGNED
1352
+
1353
+ The data area and all array elements are aligned appropriately.
1354
+
1355
+ .. c:var:: NPY_ARRAY_WRITEABLE
1356
+
1357
+ The data area can be written to.
1358
+
1359
+ Notice that the above 3 flags are are defined so that a new, well-
1360
+ behaved array has these flags defined as true.
1361
+
1362
+ .. c:var:: NPY_ARRAY_UPDATEIFCOPY
1363
+
1364
+ The data area represents a (well-behaved) copy whose information
1365
+ should be transferred back to the original when this array is deleted.
1366
+
1367
+ This is a special flag that is set if this array represents a copy
1368
+ made because a user required certain flags in
1369
+ :c:func:`PyArray_FromAny` and a copy had to be made of some other
1370
+ array (and the user asked for this flag to be set in such a
1371
+ situation). The base attribute then points to the "misbehaved"
1372
+ array (which is set read_only). When the array with this flag set
1373
+ is deallocated, it will copy its contents back to the "misbehaved"
1374
+ array (casting if necessary) and will reset the "misbehaved" array
1375
+ to :c:data:`NPY_ARRAY_WRITEABLE`. If the "misbehaved" array was not
1376
+ :c:data:`NPY_ARRAY_WRITEABLE` to begin with then :c:func:`PyArray_FromAny`
1377
+ would have returned an error because :c:data:`NPY_ARRAY_UPDATEIFCOPY`
1378
+ would not have been possible.
1379
+
1380
+ :c:func:`PyArray_UpdateFlags` (obj, flags) will update the ``obj->flags``
1381
+ for ``flags`` which can be any of :c:data:`NPY_ARRAY_C_CONTIGUOUS`,
1382
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS`, :c:data:`NPY_ARRAY_ALIGNED`, or
1383
+ :c:data:`NPY_ARRAY_WRITEABLE`.
1384
+
1385
+
1386
+ Combinations of array flags
1387
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1388
+
1389
+ .. c:var:: NPY_ARRAY_BEHAVED
1390
+
1391
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE`
1392
+
1393
+ .. c:var:: NPY_ARRAY_CARRAY
1394
+
1395
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_BEHAVED`
1396
+
1397
+ .. c:var:: NPY_ARRAY_CARRAY_RO
1398
+
1399
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
1400
+
1401
+ .. c:var:: NPY_ARRAY_FARRAY
1402
+
1403
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_BEHAVED`
1404
+
1405
+ .. c:var:: NPY_ARRAY_FARRAY_RO
1406
+
1407
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
1408
+
1409
+ .. c:var:: NPY_ARRAY_DEFAULT
1410
+
1411
+ :c:data:`NPY_ARRAY_CARRAY`
1412
+
1413
+ .. c:var:: NPY_ARRAY_UPDATE_ALL
1414
+
1415
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS` \| :c:data:`NPY_ARRAY_F_CONTIGUOUS` \| :c:data:`NPY_ARRAY_ALIGNED`
1416
+
1417
+
1418
+ Flag-like constants
1419
+ ^^^^^^^^^^^^^^^^^^^
1420
+
1421
+ These constants are used in :c:func:`PyArray_FromAny` (and its macro forms) to
1422
+ specify desired properties of the new array.
1423
+
1424
+ .. c:var:: NPY_ARRAY_FORCECAST
1425
+
1426
+ Cast to the desired type, even if it can't be done without losing
1427
+ information.
1428
+
1429
+ .. c:var:: NPY_ARRAY_ENSURECOPY
1430
+
1431
+ Make sure the resulting array is a copy of the original.
1432
+
1433
+ .. c:var:: NPY_ARRAY_ENSUREARRAY
1434
+
1435
+ Make sure the resulting object is an actual ndarray (or bigndarray),
1436
+ and not a sub-class.
1437
+
1438
+ .. c:var:: NPY_ARRAY_NOTSWAPPED
1439
+
1440
+ Only used in :c:func:`PyArray_CheckFromAny` to over-ride the byteorder
1441
+ of the data-type object passed in.
1442
+
1443
+ .. c:var:: NPY_ARRAY_BEHAVED_NS
1444
+
1445
+ :c:data:`NPY_ARRAY_ALIGNED` \| :c:data:`NPY_ARRAY_WRITEABLE` \| :c:data:`NPY_ARRAY_NOTSWAPPED`
1446
+
1447
+
1448
+ Flag checking
1449
+ ^^^^^^^^^^^^^
1450
+
1451
+ For all of these macros *arr* must be an instance of a (subclass of)
1452
+ :c:data:`PyArray_Type`, but no checking is done.
1453
+
1454
+ .. c:function:: PyArray_CHKFLAGS(arr, flags)
1455
+
1456
+ The first parameter, arr, must be an ndarray or subclass. The
1457
+ parameter, *flags*, should be an integer consisting of bitwise
1458
+ combinations of the possible flags an array can have:
1459
+ :c:data:`NPY_ARRAY_C_CONTIGUOUS`, :c:data:`NPY_ARRAY_F_CONTIGUOUS`,
1460
+ :c:data:`NPY_ARRAY_OWNDATA`, :c:data:`NPY_ARRAY_ALIGNED`,
1461
+ :c:data:`NPY_ARRAY_WRITEABLE`, :c:data:`NPY_ARRAY_UPDATEIFCOPY`.
1462
+
1463
+ .. c:function:: PyArray_IS_C_CONTIGUOUS(arr)
1464
+
1465
+ Evaluates true if *arr* is C-style contiguous.
1466
+
1467
+ .. c:function:: PyArray_IS_F_CONTIGUOUS(arr)
1468
+
1469
+ Evaluates true if *arr* is Fortran-style contiguous.
1470
+
1471
+ .. c:function:: PyArray_ISFORTRAN(arr)
1472
+
1473
+ Evaluates true if *arr* is Fortran-style contiguous and *not*
1474
+ C-style contiguous. :c:func:`PyArray_IS_F_CONTIGUOUS`
1475
+ is the correct way to test for Fortran-style contiguity.
1476
+
1477
+ .. c:function:: PyArray_ISWRITEABLE(arr)
1478
+
1479
+ Evaluates true if the data area of *arr* can be written to
1480
+
1481
+ .. c:function:: PyArray_ISALIGNED(arr)
1482
+
1483
+ Evaluates true if the data area of *arr* is properly aligned on
1484
+ the machine.
1485
+
1486
+ .. c:function:: PyArray_ISBEHAVED(arr)
1487
+
1488
+ Evalutes true if the data area of *arr* is aligned and writeable
1489
+ and in machine byte-order according to its descriptor.
1490
+
1491
+ .. c:function:: PyArray_ISBEHAVED_RO(arr)
1492
+
1493
+ Evaluates true if the data area of *arr* is aligned and in machine
1494
+ byte-order.
1495
+
1496
+ .. c:function:: PyArray_ISCARRAY(arr)
1497
+
1498
+ Evaluates true if the data area of *arr* is C-style contiguous,
1499
+ and :c:func:`PyArray_ISBEHAVED` (*arr*) is true.
1500
+
1501
+ .. c:function:: PyArray_ISFARRAY(arr)
1502
+
1503
+ Evaluates true if the data area of *arr* is Fortran-style
1504
+ contiguous and :c:func:`PyArray_ISBEHAVED` (*arr*) is true.
1505
+
1506
+ .. c:function:: PyArray_ISCARRAY_RO(arr)
1507
+
1508
+ Evaluates true if the data area of *arr* is C-style contiguous,
1509
+ aligned, and in machine byte-order.
1510
+
1511
+ .. c:function:: PyArray_ISFARRAY_RO(arr)
1512
+
1513
+ Evaluates true if the data area of *arr* is Fortran-style
1514
+ contiguous, aligned, and in machine byte-order **.**
1515
+
1516
+ .. c:function:: PyArray_ISONESEGMENT(arr)
1517
+
1518
+ Evaluates true if the data area of *arr* consists of a single
1519
+ (C-style or Fortran-style) contiguous segment.
1520
+
1521
+ .. c:function:: void PyArray_UpdateFlags(PyArrayObject* arr, int flagmask)
1522
+
1523
+ The :c:data:`NPY_ARRAY_C_CONTIGUOUS`, :c:data:`NPY_ARRAY_ALIGNED`, and
1524
+ :c:data:`NPY_ARRAY_F_CONTIGUOUS` array flags can be "calculated" from the
1525
+ array object itself. This routine updates one or more of these
1526
+ flags of *arr* as specified in *flagmask* by performing the
1527
+ required calculation.
1528
+
1529
+
1530
+ .. warning::
1531
+
1532
+ It is important to keep the flags updated (using
1533
+ :c:func:`PyArray_UpdateFlags` can help) whenever a manipulation with an
1534
+ array is performed that might cause them to change. Later
1535
+ calculations in NumPy that rely on the state of these flags do not
1536
+ repeat the calculation to update them.
1537
+
1538
+
1539
+ Array method alternative API
1540
+ ----------------------------
1541
+
1542
+
1543
+ Conversion
1544
+ ^^^^^^^^^^
1545
+
1546
+ .. c:function:: PyObject* PyArray_GetField(PyArrayObject* self, PyArray_Descr* dtype, int offset)
1547
+
1548
+ Equivalent to :meth:`ndarray.getfield` (*self*, *dtype*, *offset*). Return
1549
+ a new array of the given *dtype* using the data in the current
1550
+ array at a specified *offset* in bytes. The *offset* plus the
1551
+ itemsize of the new array type must be less than *self*
1552
+ ->descr->elsize or an error is raised. The same shape and strides
1553
+ as the original array are used. Therefore, this function has the
1554
+ effect of returning a field from a structured array. But, it can also
1555
+ be used to select specific bytes or groups of bytes from any array
1556
+ type.
1557
+
1558
+ .. c:function:: int PyArray_SetField(PyArrayObject* self, PyArray_Descr* dtype, int offset, PyObject* val)
1559
+
1560
+ Equivalent to :meth:`ndarray.setfield` (*self*, *val*, *dtype*, *offset*
1561
+ ). Set the field starting at *offset* in bytes and of the given
1562
+ *dtype* to *val*. The *offset* plus *dtype* ->elsize must be less
1563
+ than *self* ->descr->elsize or an error is raised. Otherwise, the
1564
+ *val* argument is converted to an array and copied into the field
1565
+ pointed to. If necessary, the elements of *val* are repeated to
1566
+ fill the destination array, But, the number of elements in the
1567
+ destination must be an integer multiple of the number of elements
1568
+ in *val*.
1569
+
1570
+ .. c:function:: PyObject* PyArray_Byteswap(PyArrayObject* self, Bool inplace)
1571
+
1572
+ Equivalent to :meth:`ndarray.byteswap` (*self*, *inplace*). Return an array
1573
+ whose data area is byteswapped. If *inplace* is non-zero, then do
1574
+ the byteswap inplace and return a reference to self. Otherwise,
1575
+ create a byteswapped copy and leave self unchanged.
1576
+
1577
+ .. c:function:: PyObject* PyArray_NewCopy(PyArrayObject* old, NPY_ORDER order)
1578
+
1579
+ Equivalent to :meth:`ndarray.copy` (*self*, *fortran*). Make a copy of the
1580
+ *old* array. The returned array is always aligned and writeable
1581
+ with data interpreted the same as the old array. If *order* is
1582
+ :c:data:`NPY_CORDER`, then a C-style contiguous array is returned. If
1583
+ *order* is :c:data:`NPY_FORTRANORDER`, then a Fortran-style contiguous
1584
+ array is returned. If *order is* :c:data:`NPY_ANYORDER`, then the array
1585
+ returned is Fortran-style contiguous only if the old one is;
1586
+ otherwise, it is C-style contiguous.
1587
+
1588
+ .. c:function:: PyObject* PyArray_ToList(PyArrayObject* self)
1589
+
1590
+ Equivalent to :meth:`ndarray.tolist` (*self*). Return a nested Python list
1591
+ from *self*.
1592
+
1593
+ .. c:function:: PyObject* PyArray_ToString(PyArrayObject* self, NPY_ORDER order)
1594
+
1595
+ Equivalent to :meth:`ndarray.tobytes` (*self*, *order*). Return the bytes
1596
+ of this array in a Python string.
1597
+
1598
+ .. c:function:: PyObject* PyArray_ToFile(PyArrayObject* self, FILE* fp, char* sep, char* format)
1599
+
1600
+ Write the contents of *self* to the file pointer *fp* in C-style
1601
+ contiguous fashion. Write the data as binary bytes if *sep* is the
1602
+ string ""or ``NULL``. Otherwise, write the contents of *self* as
1603
+ text using the *sep* string as the item separator. Each item will
1604
+ be printed to the file. If the *format* string is not ``NULL`` or
1605
+ "", then it is a Python print statement format string showing how
1606
+ the items are to be written.
1607
+
1608
+ .. c:function:: int PyArray_Dump(PyObject* self, PyObject* file, int protocol)
1609
+
1610
+ Pickle the object in *self* to the given *file* (either a string
1611
+ or a Python file object). If *file* is a Python string it is
1612
+ considered to be the name of a file which is then opened in binary
1613
+ mode. The given *protocol* is used (if *protocol* is negative, or
1614
+ the highest available is used). This is a simple wrapper around
1615
+ cPickle.dump(*self*, *file*, *protocol*).
1616
+
1617
+ .. c:function:: PyObject* PyArray_Dumps(PyObject* self, int protocol)
1618
+
1619
+ Pickle the object in *self* to a Python string and return it. Use
1620
+ the Pickle *protocol* provided (or the highest available if
1621
+ *protocol* is negative).
1622
+
1623
+ .. c:function:: int PyArray_FillWithScalar(PyArrayObject* arr, PyObject* obj)
1624
+
1625
+ Fill the array, *arr*, with the given scalar object, *obj*. The
1626
+ object is first converted to the data type of *arr*, and then
1627
+ copied into every location. A -1 is returned if an error occurs,
1628
+ otherwise 0 is returned.
1629
+
1630
+ .. c:function:: PyObject* PyArray_View(PyArrayObject* self, PyArray_Descr* dtype, PyTypeObject *ptype)
1631
+
1632
+ Equivalent to :meth:`ndarray.view` (*self*, *dtype*). Return a new
1633
+ view of the array *self* as possibly a different data-type, *dtype*,
1634
+ and different array subclass *ptype*.
1635
+
1636
+ If *dtype* is ``NULL``, then the returned array will have the same
1637
+ data type as *self*. The new data-type must be consistent with the
1638
+ size of *self*. Either the itemsizes must be identical, or *self* must
1639
+ be single-segment and the total number of bytes must be the same.
1640
+ In the latter case the dimensions of the returned array will be
1641
+ altered in the last (or first for Fortran-style contiguous arrays)
1642
+ dimension. The data area of the returned array and self is exactly
1643
+ the same.
1644
+
1645
+
1646
+ Shape Manipulation
1647
+ ^^^^^^^^^^^^^^^^^^
1648
+
1649
+ .. c:function:: PyObject* PyArray_Newshape(PyArrayObject* self, PyArray_Dims* newshape, NPY_ORDER order)
1650
+
1651
+ Result will be a new array (pointing to the same memory location
1652
+ as *self* if possible), but having a shape given by *newshape*.
1653
+ If the new shape is not compatible with the strides of *self*,
1654
+ then a copy of the array with the new specified shape will be
1655
+ returned.
1656
+
1657
+ .. c:function:: PyObject* PyArray_Reshape(PyArrayObject* self, PyObject* shape)
1658
+
1659
+ Equivalent to :meth:`ndarray.reshape` (*self*, *shape*) where *shape* is a
1660
+ sequence. Converts *shape* to a :c:type:`PyArray_Dims` structure and
1661
+ calls :c:func:`PyArray_Newshape` internally.
1662
+ For back-ward compatability -- Not recommended
1663
+
1664
+ .. c:function:: PyObject* PyArray_Squeeze(PyArrayObject* self)
1665
+
1666
+ Equivalent to :meth:`ndarray.squeeze` (*self*). Return a new view of *self*
1667
+ with all of the dimensions of length 1 removed from the shape.
1668
+
1669
+ .. warning::
1670
+
1671
+ matrix objects are always 2-dimensional. Therefore,
1672
+ :c:func:`PyArray_Squeeze` has no effect on arrays of matrix sub-class.
1673
+
1674
+ .. c:function:: PyObject* PyArray_SwapAxes(PyArrayObject* self, int a1, int a2)
1675
+
1676
+ Equivalent to :meth:`ndarray.swapaxes` (*self*, *a1*, *a2*). The returned
1677
+ array is a new view of the data in *self* with the given axes,
1678
+ *a1* and *a2*, swapped.
1679
+
1680
+ .. c:function:: PyObject* PyArray_Resize(PyArrayObject* self, PyArray_Dims* newshape, int refcheck, NPY_ORDER fortran)
1681
+
1682
+ Equivalent to :meth:`ndarray.resize` (*self*, *newshape*, refcheck
1683
+ ``=`` *refcheck*, order= fortran ). This function only works on
1684
+ single-segment arrays. It changes the shape of *self* inplace and
1685
+ will reallocate the memory for *self* if *newshape* has a
1686
+ different total number of elements then the old shape. If
1687
+ reallocation is necessary, then *self* must own its data, have
1688
+ *self* - ``>base==NULL``, have *self* - ``>weakrefs==NULL``, and
1689
+ (unless refcheck is 0) not be referenced by any other array. A
1690
+ reference to the new array is returned. The fortran argument can
1691
+ be :c:data:`NPY_ANYORDER`, :c:data:`NPY_CORDER`, or
1692
+ :c:data:`NPY_FORTRANORDER`. It currently has no effect. Eventually
1693
+ it could be used to determine how the resize operation should view
1694
+ the data when constructing a differently-dimensioned array.
1695
+
1696
+ .. c:function:: PyObject* PyArray_Transpose(PyArrayObject* self, PyArray_Dims* permute)
1697
+
1698
+ Equivalent to :meth:`ndarray.transpose` (*self*, *permute*). Permute the
1699
+ axes of the ndarray object *self* according to the data structure
1700
+ *permute* and return the result. If *permute* is ``NULL``, then
1701
+ the resulting array has its axes reversed. For example if *self*
1702
+ has shape :math:`10\times20\times30`, and *permute* ``.ptr`` is
1703
+ (0,2,1) the shape of the result is :math:`10\times30\times20.` If
1704
+ *permute* is ``NULL``, the shape of the result is
1705
+ :math:`30\times20\times10.`
1706
+
1707
+ .. c:function:: PyObject* PyArray_Flatten(PyArrayObject* self, NPY_ORDER order)
1708
+
1709
+ Equivalent to :meth:`ndarray.flatten` (*self*, *order*). Return a 1-d copy
1710
+ of the array. If *order* is :c:data:`NPY_FORTRANORDER` the elements are
1711
+ scanned out in Fortran order (first-dimension varies the
1712
+ fastest). If *order* is :c:data:`NPY_CORDER`, the elements of ``self``
1713
+ are scanned in C-order (last dimension varies the fastest). If
1714
+ *order* :c:data:`NPY_ANYORDER`, then the result of
1715
+ :c:func:`PyArray_ISFORTRAN` (*self*) is used to determine which order
1716
+ to flatten.
1717
+
1718
+ .. c:function:: PyObject* PyArray_Ravel(PyArrayObject* self, NPY_ORDER order)
1719
+
1720
+ Equivalent to *self*.ravel(*order*). Same basic functionality
1721
+ as :c:func:`PyArray_Flatten` (*self*, *order*) except if *order* is 0
1722
+ and *self* is C-style contiguous, the shape is altered but no copy
1723
+ is performed.
1724
+
1725
+
1726
+ Item selection and manipulation
1727
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1728
+
1729
+ .. c:function:: PyObject* PyArray_TakeFrom(PyArrayObject* self, PyObject* indices, int axis, PyArrayObject* ret, NPY_CLIPMODE clipmode)
1730
+
1731
+ Equivalent to :meth:`ndarray.take` (*self*, *indices*, *axis*, *ret*,
1732
+ *clipmode*) except *axis* =None in Python is obtained by setting
1733
+ *axis* = :c:data:`NPY_MAXDIMS` in C. Extract the items from self
1734
+ indicated by the integer-valued *indices* along the given *axis.*
1735
+ The clipmode argument can be :c:data:`NPY_RAISE`, :c:data:`NPY_WRAP`, or
1736
+ :c:data:`NPY_CLIP` to indicate what to do with out-of-bound indices. The
1737
+ *ret* argument can specify an output array rather than having one
1738
+ created internally.
1739
+
1740
+ .. c:function:: PyObject* PyArray_PutTo(PyArrayObject* self, PyObject* values, PyObject* indices, NPY_CLIPMODE clipmode)
1741
+
1742
+ Equivalent to *self*.put(*values*, *indices*, *clipmode*
1743
+ ). Put *values* into *self* at the corresponding (flattened)
1744
+ *indices*. If *values* is too small it will be repeated as
1745
+ necessary.
1746
+
1747
+ .. c:function:: PyObject* PyArray_PutMask(PyArrayObject* self, PyObject* values, PyObject* mask)
1748
+
1749
+ Place the *values* in *self* wherever corresponding positions
1750
+ (using a flattened context) in *mask* are true. The *mask* and
1751
+ *self* arrays must have the same total number of elements. If
1752
+ *values* is too small, it will be repeated as necessary.
1753
+
1754
+ .. c:function:: PyObject* PyArray_Repeat(PyArrayObject* self, PyObject* op, int axis)
1755
+
1756
+ Equivalent to :meth:`ndarray.repeat` (*self*, *op*, *axis*). Copy the
1757
+ elements of *self*, *op* times along the given *axis*. Either
1758
+ *op* is a scalar integer or a sequence of length *self*
1759
+ ->dimensions[ *axis* ] indicating how many times to repeat each
1760
+ item along the axis.
1761
+
1762
+ .. c:function:: PyObject* PyArray_Choose(PyArrayObject* self, PyObject* op, PyArrayObject* ret, NPY_CLIPMODE clipmode)
1763
+
1764
+ Equivalent to :meth:`ndarray.choose` (*self*, *op*, *ret*, *clipmode*).
1765
+ Create a new array by selecting elements from the sequence of
1766
+ arrays in *op* based on the integer values in *self*. The arrays
1767
+ must all be broadcastable to the same shape and the entries in
1768
+ *self* should be between 0 and len(*op*). The output is placed
1769
+ in *ret* unless it is ``NULL`` in which case a new output is
1770
+ created. The *clipmode* argument determines behavior for when
1771
+ entries in *self* are not between 0 and len(*op*).
1772
+
1773
+ .. c:var:: NPY_RAISE
1774
+
1775
+ raise a ValueError;
1776
+
1777
+ .. c:var:: NPY_WRAP
1778
+
1779
+ wrap values < 0 by adding len(*op*) and values >=len(*op*)
1780
+ by subtracting len(*op*) until they are in range;
1781
+
1782
+ .. c:var:: NPY_CLIP
1783
+
1784
+ all values are clipped to the region [0, len(*op*) ).
1785
+
1786
+
1787
+ .. c:function:: PyObject* PyArray_Sort(PyArrayObject* self, int axis)
1788
+
1789
+ Equivalent to :meth:`ndarray.sort` (*self*, *axis*). Return an array with
1790
+ the items of *self* sorted along *axis*.
1791
+
1792
+ .. c:function:: PyObject* PyArray_ArgSort(PyArrayObject* self, int axis)
1793
+
1794
+ Equivalent to :meth:`ndarray.argsort` (*self*, *axis*). Return an array of
1795
+ indices such that selection of these indices along the given
1796
+ ``axis`` would return a sorted version of *self*. If *self*
1797
+ ->descr is a data-type with fields defined, then
1798
+ self->descr->names is used to determine the sort order. A
1799
+ comparison where the first field is equal will use the second
1800
+ field and so on. To alter the sort order of a structured array, create
1801
+ a new data-type with a different order of names and construct a
1802
+ view of the array with that new data-type.
1803
+
1804
+ .. c:function:: PyObject* PyArray_LexSort(PyObject* sort_keys, int axis)
1805
+
1806
+ Given a sequence of arrays (*sort_keys*) of the same shape,
1807
+ return an array of indices (similar to :c:func:`PyArray_ArgSort` (...))
1808
+ that would sort the arrays lexicographically. A lexicographic sort
1809
+ specifies that when two keys are found to be equal, the order is
1810
+ based on comparison of subsequent keys. A merge sort (which leaves
1811
+ equal entries unmoved) is required to be defined for the
1812
+ types. The sort is accomplished by sorting the indices first using
1813
+ the first *sort_key* and then using the second *sort_key* and so
1814
+ forth. This is equivalent to the lexsort(*sort_keys*, *axis*)
1815
+ Python command. Because of the way the merge-sort works, be sure
1816
+ to understand the order the *sort_keys* must be in (reversed from
1817
+ the order you would use when comparing two elements).
1818
+
1819
+ If these arrays are all collected in a structured array, then
1820
+ :c:func:`PyArray_Sort` (...) can also be used to sort the array
1821
+ directly.
1822
+
1823
+ .. c:function:: PyObject* PyArray_SearchSorted(PyArrayObject* self, PyObject* values, NPY_SEARCHSIDE side, PyObject* perm)
1824
+
1825
+ Equivalent to :meth:`ndarray.searchsorted` (*self*, *values*, *side*,
1826
+ *perm*). Assuming *self* is a 1-d array in ascending order, then the
1827
+ output is an array of indices the same shape as *values* such that, if
1828
+ the elements in *values* were inserted before the indices, the order of
1829
+ *self* would be preserved. No checking is done on whether or not self is
1830
+ in ascending order.
1831
+
1832
+ The *side* argument indicates whther the index returned should be that of
1833
+ the first suitable location (if :c:data:`NPY_SEARCHLEFT`) or of the last
1834
+ (if :c:data:`NPY_SEARCHRIGHT`).
1835
+
1836
+ The *sorter* argument, if not ``NULL``, must be a 1D array of integer
1837
+ indices the same length as *self*, that sorts it into ascending order.
1838
+ This is typically the result of a call to :c:func:`PyArray_ArgSort` (...)
1839
+ Binary search is used to find the required insertion points.
1840
+
1841
+ .. c:function:: int PyArray_Partition(PyArrayObject *self, PyArrayObject * ktharray, int axis, NPY_SELECTKIND which)
1842
+
1843
+ Equivalent to :meth:`ndarray.partition` (*self*, *ktharray*, *axis*,
1844
+ *kind*). Partitions the array so that the values of the element indexed by
1845
+ *ktharray* are in the positions they would be if the array is fully sorted
1846
+ and places all elements smaller than the kth before and all elements equal
1847
+ or greater after the kth element. The ordering of all elements within the
1848
+ partitions is undefined.
1849
+ If *self*->descr is a data-type with fields defined, then
1850
+ self->descr->names is used to determine the sort order. A comparison where
1851
+ the first field is equal will use the second field and so on. To alter the
1852
+ sort order of a structured array, create a new data-type with a different
1853
+ order of names and construct a view of the array with that new data-type.
1854
+ Returns zero on success and -1 on failure.
1855
+
1856
+ .. c:function:: PyObject* PyArray_ArgPartition(PyArrayObject *op, PyArrayObject * ktharray, int axis, NPY_SELECTKIND which)
1857
+
1858
+ Equivalent to :meth:`ndarray.argpartition` (*self*, *ktharray*, *axis*,
1859
+ *kind*). Return an array of indices such that selection of these indices
1860
+ along the given ``axis`` would return a partitioned version of *self*.
1861
+
1862
+ .. c:function:: PyObject* PyArray_Diagonal(PyArrayObject* self, int offset, int axis1, int axis2)
1863
+
1864
+ Equivalent to :meth:`ndarray.diagonal` (*self*, *offset*, *axis1*, *axis2*
1865
+ ). Return the *offset* diagonals of the 2-d arrays defined by
1866
+ *axis1* and *axis2*.
1867
+
1868
+ .. c:function:: npy_intp PyArray_CountNonzero(PyArrayObject* self)
1869
+
1870
+ .. versionadded:: 1.6
1871
+
1872
+ Counts the number of non-zero elements in the array object *self*.
1873
+
1874
+ .. c:function:: PyObject* PyArray_Nonzero(PyArrayObject* self)
1875
+
1876
+ Equivalent to :meth:`ndarray.nonzero` (*self*). Returns a tuple of index
1877
+ arrays that select elements of *self* that are nonzero. If (nd=
1878
+ :c:func:`PyArray_NDIM` ( ``self`` ))==1, then a single index array is
1879
+ returned. The index arrays have data type :c:data:`NPY_INTP`. If a
1880
+ tuple is returned (nd :math:`\neq` 1), then its length is nd.
1881
+
1882
+ .. c:function:: PyObject* PyArray_Compress(PyArrayObject* self, PyObject* condition, int axis, PyArrayObject* out)
1883
+
1884
+ Equivalent to :meth:`ndarray.compress` (*self*, *condition*, *axis*
1885
+ ). Return the elements along *axis* corresponding to elements of
1886
+ *condition* that are true.
1887
+
1888
+
1889
+ Calculation
1890
+ ^^^^^^^^^^^
1891
+
1892
+ .. tip::
1893
+
1894
+ Pass in :c:data:`NPY_MAXDIMS` for axis in order to achieve the same
1895
+ effect that is obtained by passing in *axis* = :const:`None` in Python
1896
+ (treating the array as a 1-d array).
1897
+
1898
+ .. c:function:: PyObject* PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject* out)
1899
+
1900
+ Equivalent to :meth:`ndarray.argmax` (*self*, *axis*). Return the index of
1901
+ the largest element of *self* along *axis*.
1902
+
1903
+ .. c:function:: PyObject* PyArray_ArgMin(PyArrayObject* self, int axis, PyArrayObject* out)
1904
+
1905
+ Equivalent to :meth:`ndarray.argmin` (*self*, *axis*). Return the index of
1906
+ the smallest element of *self* along *axis*.
1907
+
1908
+
1909
+
1910
+
1911
+ .. note::
1912
+
1913
+ The out argument specifies where to place the result. If out is
1914
+ NULL, then the output array is created, otherwise the output is
1915
+ placed in out which must be the correct size and type. A new
1916
+ reference to the ouput array is always returned even when out
1917
+ is not NULL. The caller of the routine has the responsability
1918
+ to ``DECREF`` out if not NULL or a memory-leak will occur.
1919
+
1920
+ .. c:function:: PyObject* PyArray_Max(PyArrayObject* self, int axis, PyArrayObject* out)
1921
+
1922
+ Equivalent to :meth:`ndarray.max` (*self*, *axis*). Return the largest
1923
+ element of *self* along the given *axis*.
1924
+
1925
+ .. c:function:: PyObject* PyArray_Min(PyArrayObject* self, int axis, PyArrayObject* out)
1926
+
1927
+ Equivalent to :meth:`ndarray.min` (*self*, *axis*). Return the smallest
1928
+ element of *self* along the given *axis*.
1929
+
1930
+ .. c:function:: PyObject* PyArray_Ptp(PyArrayObject* self, int axis, PyArrayObject* out)
1931
+
1932
+ Equivalent to :meth:`ndarray.ptp` (*self*, *axis*). Return the difference
1933
+ between the largest element of *self* along *axis* and the
1934
+ smallest element of *self* along *axis*.
1935
+
1936
+
1937
+
1938
+ .. note::
1939
+
1940
+ The rtype argument specifies the data-type the reduction should
1941
+ take place over. This is important if the data-type of the array
1942
+ is not "large" enough to handle the output. By default, all
1943
+ integer data-types are made at least as large as :c:data:`NPY_LONG`
1944
+ for the "add" and "multiply" ufuncs (which form the basis for
1945
+ mean, sum, cumsum, prod, and cumprod functions).
1946
+
1947
+ .. c:function:: PyObject* PyArray_Mean(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
1948
+
1949
+ Equivalent to :meth:`ndarray.mean` (*self*, *axis*, *rtype*). Returns the
1950
+ mean of the elements along the given *axis*, using the enumerated
1951
+ type *rtype* as the data type to sum in. Default sum behavior is
1952
+ obtained using :c:data:`NPY_NOTYPE` for *rtype*.
1953
+
1954
+ .. c:function:: PyObject* PyArray_Trace(PyArrayObject* self, int offset, int axis1, int axis2, int rtype, PyArrayObject* out)
1955
+
1956
+ Equivalent to :meth:`ndarray.trace` (*self*, *offset*, *axis1*, *axis2*,
1957
+ *rtype*). Return the sum (using *rtype* as the data type of
1958
+ summation) over the *offset* diagonal elements of the 2-d arrays
1959
+ defined by *axis1* and *axis2* variables. A positive offset
1960
+ chooses diagonals above the main diagonal. A negative offset
1961
+ selects diagonals below the main diagonal.
1962
+
1963
+ .. c:function:: PyObject* PyArray_Clip(PyArrayObject* self, PyObject* min, PyObject* max)
1964
+
1965
+ Equivalent to :meth:`ndarray.clip` (*self*, *min*, *max*). Clip an array,
1966
+ *self*, so that values larger than *max* are fixed to *max* and
1967
+ values less than *min* are fixed to *min*.
1968
+
1969
+ .. c:function:: PyObject* PyArray_Conjugate(PyArrayObject* self)
1970
+
1971
+ Equivalent to :meth:`ndarray.conjugate` (*self*).
1972
+ Return the complex conjugate of *self*. If *self* is not of
1973
+ complex data type, then return *self* with an reference.
1974
+
1975
+ .. c:function:: PyObject* PyArray_Round(PyArrayObject* self, int decimals, PyArrayObject* out)
1976
+
1977
+ Equivalent to :meth:`ndarray.round` (*self*, *decimals*, *out*). Returns
1978
+ the array with elements rounded to the nearest decimal place. The
1979
+ decimal place is defined as the :math:`10^{-\textrm{decimals}}`
1980
+ digit so that negative *decimals* cause rounding to the nearest 10's, 100's, etc. If out is ``NULL``, then the output array is created, otherwise the output is placed in *out* which must be the correct size and type.
1981
+
1982
+ .. c:function:: PyObject* PyArray_Std(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
1983
+
1984
+ Equivalent to :meth:`ndarray.std` (*self*, *axis*, *rtype*). Return the
1985
+ standard deviation using data along *axis* converted to data type
1986
+ *rtype*.
1987
+
1988
+ .. c:function:: PyObject* PyArray_Sum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
1989
+
1990
+ Equivalent to :meth:`ndarray.sum` (*self*, *axis*, *rtype*). Return 1-d
1991
+ vector sums of elements in *self* along *axis*. Perform the sum
1992
+ after converting data to data type *rtype*.
1993
+
1994
+ .. c:function:: PyObject* PyArray_CumSum(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
1995
+
1996
+ Equivalent to :meth:`ndarray.cumsum` (*self*, *axis*, *rtype*). Return
1997
+ cumulative 1-d sums of elements in *self* along *axis*. Perform
1998
+ the sum after converting data to data type *rtype*.
1999
+
2000
+ .. c:function:: PyObject* PyArray_Prod(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
2001
+
2002
+ Equivalent to :meth:`ndarray.prod` (*self*, *axis*, *rtype*). Return 1-d
2003
+ products of elements in *self* along *axis*. Perform the product
2004
+ after converting data to data type *rtype*.
2005
+
2006
+ .. c:function:: PyObject* PyArray_CumProd(PyArrayObject* self, int axis, int rtype, PyArrayObject* out)
2007
+
2008
+ Equivalent to :meth:`ndarray.cumprod` (*self*, *axis*, *rtype*). Return
2009
+ 1-d cumulative products of elements in ``self`` along ``axis``.
2010
+ Perform the product after converting data to data type ``rtype``.
2011
+
2012
+ .. c:function:: PyObject* PyArray_All(PyArrayObject* self, int axis, PyArrayObject* out)
2013
+
2014
+ Equivalent to :meth:`ndarray.all` (*self*, *axis*). Return an array with
2015
+ True elements for every 1-d sub-array of ``self`` defined by
2016
+ ``axis`` in which all the elements are True.
2017
+
2018
+ .. c:function:: PyObject* PyArray_Any(PyArrayObject* self, int axis, PyArrayObject* out)
2019
+
2020
+ Equivalent to :meth:`ndarray.any` (*self*, *axis*). Return an array with
2021
+ True elements for every 1-d sub-array of *self* defined by *axis*
2022
+ in which any of the elements are True.
2023
+
2024
+ Functions
2025
+ ---------
2026
+
2027
+
2028
+ Array Functions
2029
+ ^^^^^^^^^^^^^^^
2030
+
2031
+ .. c:function:: int PyArray_AsCArray(PyObject** op, void* ptr, npy_intp* dims, int nd, int typenum, int itemsize)
2032
+
2033
+ Sometimes it is useful to access a multidimensional array as a
2034
+ C-style multi-dimensional array so that algorithms can be
2035
+ implemented using C's a[i][j][k] syntax. This routine returns a
2036
+ pointer, *ptr*, that simulates this kind of C-style array, for
2037
+ 1-, 2-, and 3-d ndarrays.
2038
+
2039
+ :param op:
2040
+
2041
+ The address to any Python object. This Python object will be replaced
2042
+ with an equivalent well-behaved, C-style contiguous, ndarray of the
2043
+ given data type specifice by the last two arguments. Be sure that
2044
+ stealing a reference in this way to the input object is justified.
2045
+
2046
+ :param ptr:
2047
+
2048
+ The address to a (ctype* for 1-d, ctype** for 2-d or ctype*** for 3-d)
2049
+ variable where ctype is the equivalent C-type for the data type. On
2050
+ return, *ptr* will be addressable as a 1-d, 2-d, or 3-d array.
2051
+
2052
+ :param dims:
2053
+
2054
+ An output array that contains the shape of the array object. This
2055
+ array gives boundaries on any looping that will take place.
2056
+
2057
+ :param nd:
2058
+
2059
+ The dimensionality of the array (1, 2, or 3).
2060
+
2061
+ :param typenum:
2062
+
2063
+ The expected data type of the array.
2064
+
2065
+ :param itemsize:
2066
+
2067
+ This argument is only needed when *typenum* represents a
2068
+ flexible array. Otherwise it should be 0.
2069
+
2070
+ .. note::
2071
+
2072
+ The simulation of a C-style array is not complete for 2-d and 3-d
2073
+ arrays. For example, the simulated arrays of pointers cannot be passed
2074
+ to subroutines expecting specific, statically-defined 2-d and 3-d
2075
+ arrays. To pass to functions requiring those kind of inputs, you must
2076
+ statically define the required array and copy data.
2077
+
2078
+ .. c:function:: int PyArray_Free(PyObject* op, void* ptr)
2079
+
2080
+ Must be called with the same objects and memory locations returned
2081
+ from :c:func:`PyArray_AsCArray` (...). This function cleans up memory
2082
+ that otherwise would get leaked.
2083
+
2084
+ .. c:function:: PyObject* PyArray_Concatenate(PyObject* obj, int axis)
2085
+
2086
+ Join the sequence of objects in *obj* together along *axis* into a
2087
+ single array. If the dimensions or types are not compatible an
2088
+ error is raised.
2089
+
2090
+ .. c:function:: PyObject* PyArray_InnerProduct(PyObject* obj1, PyObject* obj2)
2091
+
2092
+ Compute a product-sum over the last dimensions of *obj1* and
2093
+ *obj2*. Neither array is conjugated.
2094
+
2095
+ .. c:function:: PyObject* PyArray_MatrixProduct(PyObject* obj1, PyObject* obj)
2096
+
2097
+ Compute a product-sum over the last dimension of *obj1* and the
2098
+ second-to-last dimension of *obj2*. For 2-d arrays this is a
2099
+ matrix-product. Neither array is conjugated.
2100
+
2101
+ .. c:function:: PyObject* PyArray_MatrixProduct2(PyObject* obj1, PyObject* obj, PyObject* out)
2102
+
2103
+ .. versionadded:: 1.6
2104
+
2105
+ Same as PyArray_MatrixProduct, but store the result in *out*. The
2106
+ output array must have the correct shape, type, and be
2107
+ C-contiguous, or an exception is raised.
2108
+
2109
+ .. c:function:: PyObject* PyArray_EinsteinSum(char* subscripts, npy_intp nop, PyArrayObject** op_in, PyArray_Descr* dtype, NPY_ORDER order, NPY_CASTING casting, PyArrayObject* out)
2110
+
2111
+ .. versionadded:: 1.6
2112
+
2113
+ Applies the einstein summation convention to the array operands
2114
+ provided, returning a new array or placing the result in *out*.
2115
+ The string in *subscripts* is a comma separated list of index
2116
+ letters. The number of operands is in *nop*, and *op_in* is an
2117
+ array containing those operands. The data type of the output can
2118
+ be forced with *dtype*, the output order can be forced with *order*
2119
+ (:c:data:`NPY_KEEPORDER` is recommended), and when *dtype* is specified,
2120
+ *casting* indicates how permissive the data conversion should be.
2121
+
2122
+ See the :func:`einsum` function for more details.
2123
+
2124
+ .. c:function:: PyObject* PyArray_CopyAndTranspose(PyObject \* op)
2125
+
2126
+ A specialized copy and transpose function that works only for 2-d
2127
+ arrays. The returned array is a transposed copy of *op*.
2128
+
2129
+ .. c:function:: PyObject* PyArray_Correlate(PyObject* op1, PyObject* op2, int mode)
2130
+
2131
+ Compute the 1-d correlation of the 1-d arrays *op1* and *op2*
2132
+ . The correlation is computed at each output point by multiplying
2133
+ *op1* by a shifted version of *op2* and summing the result. As a
2134
+ result of the shift, needed values outside of the defined range of
2135
+ *op1* and *op2* are interpreted as zero. The mode determines how
2136
+ many shifts to return: 0 - return only shifts that did not need to
2137
+ assume zero- values; 1 - return an object that is the same size as
2138
+ *op1*, 2 - return all possible shifts (any overlap at all is
2139
+ accepted).
2140
+
2141
+ .. rubric:: Notes
2142
+
2143
+ This does not compute the usual correlation: if op2 is larger than op1, the
2144
+ arguments are swapped, and the conjugate is never taken for complex arrays.
2145
+ See PyArray_Correlate2 for the usual signal processing correlation.
2146
+
2147
+ .. c:function:: PyObject* PyArray_Correlate2(PyObject* op1, PyObject* op2, int mode)
2148
+
2149
+ Updated version of PyArray_Correlate, which uses the usual definition of
2150
+ correlation for 1d arrays. The correlation is computed at each output point
2151
+ by multiplying *op1* by a shifted version of *op2* and summing the result.
2152
+ As a result of the shift, needed values outside of the defined range of
2153
+ *op1* and *op2* are interpreted as zero. The mode determines how many
2154
+ shifts to return: 0 - return only shifts that did not need to assume zero-
2155
+ values; 1 - return an object that is the same size as *op1*, 2 - return all
2156
+ possible shifts (any overlap at all is accepted).
2157
+
2158
+ .. rubric:: Notes
2159
+
2160
+ Compute z as follows::
2161
+
2162
+ z[k] = sum_n op1[n] * conj(op2[n+k])
2163
+
2164
+ .. c:function:: PyObject* PyArray_Where(PyObject* condition, PyObject* x, PyObject* y)
2165
+
2166
+ If both ``x`` and ``y`` are ``NULL``, then return
2167
+ :c:func:`PyArray_Nonzero` (*condition*). Otherwise, both *x* and *y*
2168
+ must be given and the object returned is shaped like *condition*
2169
+ and has elements of *x* and *y* where *condition* is respectively
2170
+ True or False.
2171
+
2172
+
2173
+ Other functions
2174
+ ^^^^^^^^^^^^^^^
2175
+
2176
+ .. c:function:: Bool PyArray_CheckStrides(int elsize, int nd, npy_intp numbytes, npy_intp* dims, npy_intp* newstrides)
2177
+
2178
+ Determine if *newstrides* is a strides array consistent with the
2179
+ memory of an *nd* -dimensional array with shape ``dims`` and
2180
+ element-size, *elsize*. The *newstrides* array is checked to see
2181
+ if jumping by the provided number of bytes in each direction will
2182
+ ever mean jumping more than *numbytes* which is the assumed size
2183
+ of the available memory segment. If *numbytes* is 0, then an
2184
+ equivalent *numbytes* is computed assuming *nd*, *dims*, and
2185
+ *elsize* refer to a single-segment array. Return :c:data:`NPY_TRUE` if
2186
+ *newstrides* is acceptable, otherwise return :c:data:`NPY_FALSE`.
2187
+
2188
+ .. c:function:: npy_intp PyArray_MultiplyList(npy_intp* seq, int n)
2189
+
2190
+ .. c:function:: int PyArray_MultiplyIntList(int* seq, int n)
2191
+
2192
+ Both of these routines multiply an *n* -length array, *seq*, of
2193
+ integers and return the result. No overflow checking is performed.
2194
+
2195
+ .. c:function:: int PyArray_CompareLists(npy_intp* l1, npy_intp* l2, int n)
2196
+
2197
+ Given two *n* -length arrays of integers, *l1*, and *l2*, return
2198
+ 1 if the lists are identical; otherwise, return 0.
2199
+
2200
+
2201
+ Auxiliary Data With Object Semantics
2202
+ ------------------------------------
2203
+
2204
+ .. versionadded:: 1.7.0
2205
+
2206
+ .. c:type:: NpyAuxData
2207
+
2208
+ When working with more complex dtypes which are composed of other dtypes,
2209
+ such as the struct dtype, creating inner loops that manipulate the dtypes
2210
+ requires carrying along additional data. NumPy supports this idea
2211
+ through a struct :c:type:`NpyAuxData`, mandating a few conventions so that
2212
+ it is possible to do this.
2213
+
2214
+ Defining an :c:type:`NpyAuxData` is similar to defining a class in C++,
2215
+ but the object semantics have to be tracked manually since the API is in C.
2216
+ Here's an example for a function which doubles up an element using
2217
+ an element copier function as a primitive.::
2218
+
2219
+ typedef struct {
2220
+ NpyAuxData base;
2221
+ ElementCopier_Func *func;
2222
+ NpyAuxData *funcdata;
2223
+ } eldoubler_aux_data;
2224
+
2225
+ void free_element_doubler_aux_data(NpyAuxData *data)
2226
+ {
2227
+ eldoubler_aux_data *d = (eldoubler_aux_data *)data;
2228
+ /* Free the memory owned by this auxadata */
2229
+ NPY_AUXDATA_FREE(d->funcdata);
2230
+ PyArray_free(d);
2231
+ }
2232
+
2233
+ NpyAuxData *clone_element_doubler_aux_data(NpyAuxData *data)
2234
+ {
2235
+ eldoubler_aux_data *ret = PyArray_malloc(sizeof(eldoubler_aux_data));
2236
+ if (ret == NULL) {
2237
+ return NULL;
2238
+ }
2239
+
2240
+ /* Raw copy of all data */
2241
+ memcpy(ret, data, sizeof(eldoubler_aux_data));
2242
+
2243
+ /* Fix up the owned auxdata so we have our own copy */
2244
+ ret->funcdata = NPY_AUXDATA_CLONE(ret->funcdata);
2245
+ if (ret->funcdata == NULL) {
2246
+ PyArray_free(ret);
2247
+ return NULL;
2248
+ }
2249
+
2250
+ return (NpyAuxData *)ret;
2251
+ }
2252
+
2253
+ NpyAuxData *create_element_doubler_aux_data(
2254
+ ElementCopier_Func *func,
2255
+ NpyAuxData *funcdata)
2256
+ {
2257
+ eldoubler_aux_data *ret = PyArray_malloc(sizeof(eldoubler_aux_data));
2258
+ if (ret == NULL) {
2259
+ PyErr_NoMemory();
2260
+ return NULL;
2261
+ }
2262
+ memset(&ret, 0, sizeof(eldoubler_aux_data));
2263
+ ret->base->free = &free_element_doubler_aux_data;
2264
+ ret->base->clone = &clone_element_doubler_aux_data;
2265
+ ret->func = func;
2266
+ ret->funcdata = funcdata;
2267
+
2268
+ return (NpyAuxData *)ret;
2269
+ }
2270
+
2271
+ .. c:type:: NpyAuxData_FreeFunc
2272
+
2273
+ The function pointer type for NpyAuxData free functions.
2274
+
2275
+ .. c:type:: NpyAuxData_CloneFunc
2276
+
2277
+ The function pointer type for NpyAuxData clone functions. These
2278
+ functions should never set the Python exception on error, because
2279
+ they may be called from a multi-threaded context.
2280
+
2281
+ .. c:function:: NPY_AUXDATA_FREE(auxdata)
2282
+
2283
+ A macro which calls the auxdata's free function appropriately,
2284
+ does nothing if auxdata is NULL.
2285
+
2286
+ .. c:function:: NPY_AUXDATA_CLONE(auxdata)
2287
+
2288
+ A macro which calls the auxdata's clone function appropriately,
2289
+ returning a deep copy of the auxiliary data.
2290
+
2291
+ Array Iterators
2292
+ ---------------
2293
+
2294
+ As of Numpy 1.6, these array iterators are superceded by
2295
+ the new array iterator, :c:type:`NpyIter`.
2296
+
2297
+ An array iterator is a simple way to access the elements of an
2298
+ N-dimensional array quickly and efficiently. Section `2
2299
+ <#sec-array-iterator>`__ provides more description and examples of
2300
+ this useful approach to looping over an array.
2301
+
2302
+ .. c:function:: PyObject* PyArray_IterNew(PyObject* arr)
2303
+
2304
+ Return an array iterator object from the array, *arr*. This is
2305
+ equivalent to *arr*. **flat**. The array iterator object makes
2306
+ it easy to loop over an N-dimensional non-contiguous array in
2307
+ C-style contiguous fashion.
2308
+
2309
+ .. c:function:: PyObject* PyArray_IterAllButAxis(PyObject* arr, int \*axis)
2310
+
2311
+ Return an array iterator that will iterate over all axes but the
2312
+ one provided in *\*axis*. The returned iterator cannot be used
2313
+ with :c:func:`PyArray_ITER_GOTO1D`. This iterator could be used to
2314
+ write something similar to what ufuncs do wherein the loop over
2315
+ the largest axis is done by a separate sub-routine. If *\*axis* is
2316
+ negative then *\*axis* will be set to the axis having the smallest
2317
+ stride and that axis will be used.
2318
+
2319
+ .. c:function:: PyObject *PyArray_BroadcastToShape(PyObject* arr, npy_intp *dimensions, int nd)
2320
+
2321
+ Return an array iterator that is broadcast to iterate as an array
2322
+ of the shape provided by *dimensions* and *nd*.
2323
+
2324
+ .. c:function:: int PyArrayIter_Check(PyObject* op)
2325
+
2326
+ Evaluates true if *op* is an array iterator (or instance of a
2327
+ subclass of the array iterator type).
2328
+
2329
+ .. c:function:: void PyArray_ITER_RESET(PyObject* iterator)
2330
+
2331
+ Reset an *iterator* to the beginning of the array.
2332
+
2333
+ .. c:function:: void PyArray_ITER_NEXT(PyObject* iterator)
2334
+
2335
+ Incremement the index and the dataptr members of the *iterator* to
2336
+ point to the next element of the array. If the array is not
2337
+ (C-style) contiguous, also increment the N-dimensional coordinates
2338
+ array.
2339
+
2340
+ .. c:function:: void *PyArray_ITER_DATA(PyObject* iterator)
2341
+
2342
+ A pointer to the current element of the array.
2343
+
2344
+ .. c:function:: void PyArray_ITER_GOTO(PyObject* iterator, npy_intp* destination)
2345
+
2346
+ Set the *iterator* index, dataptr, and coordinates members to the
2347
+ location in the array indicated by the N-dimensional c-array,
2348
+ *destination*, which must have size at least *iterator*
2349
+ ->nd_m1+1.
2350
+
2351
+ .. c:function:: PyArray_ITER_GOTO1D(PyObject* iterator, npy_intp index)
2352
+
2353
+ Set the *iterator* index and dataptr to the location in the array
2354
+ indicated by the integer *index* which points to an element in the
2355
+ C-styled flattened array.
2356
+
2357
+ .. c:function:: int PyArray_ITER_NOTDONE(PyObject* iterator)
2358
+
2359
+ Evaluates TRUE as long as the iterator has not looped through all of
2360
+ the elements, otherwise it evaluates FALSE.
2361
+
2362
+
2363
+ Broadcasting (multi-iterators)
2364
+ ------------------------------
2365
+
2366
+ .. c:function:: PyObject* PyArray_MultiIterNew(int num, ...)
2367
+
2368
+ A simplified interface to broadcasting. This function takes the
2369
+ number of arrays to broadcast and then *num* extra ( :c:type:`PyObject *`
2370
+ ) arguments. These arguments are converted to arrays and iterators
2371
+ are created. :c:func:`PyArray_Broadcast` is then called on the resulting
2372
+ multi-iterator object. The resulting, broadcasted mult-iterator
2373
+ object is then returned. A broadcasted operation can then be
2374
+ performed using a single loop and using :c:func:`PyArray_MultiIter_NEXT`
2375
+ (..)
2376
+
2377
+ .. c:function:: void PyArray_MultiIter_RESET(PyObject* multi)
2378
+
2379
+ Reset all the iterators to the beginning in a multi-iterator
2380
+ object, *multi*.
2381
+
2382
+ .. c:function:: void PyArray_MultiIter_NEXT(PyObject* multi)
2383
+
2384
+ Advance each iterator in a multi-iterator object, *multi*, to its
2385
+ next (broadcasted) element.
2386
+
2387
+ .. c:function:: void *PyArray_MultiIter_DATA(PyObject* multi, int i)
2388
+
2389
+ Return the data-pointer of the *i* :math:`^{\textrm{th}}` iterator
2390
+ in a multi-iterator object.
2391
+
2392
+ .. c:function:: void PyArray_MultiIter_NEXTi(PyObject* multi, int i)
2393
+
2394
+ Advance the pointer of only the *i* :math:`^{\textrm{th}}` iterator.
2395
+
2396
+ .. c:function:: void PyArray_MultiIter_GOTO(PyObject* multi, npy_intp* destination)
2397
+
2398
+ Advance each iterator in a multi-iterator object, *multi*, to the
2399
+ given :math:`N` -dimensional *destination* where :math:`N` is the
2400
+ number of dimensions in the broadcasted array.
2401
+
2402
+ .. c:function:: void PyArray_MultiIter_GOTO1D(PyObject* multi, npy_intp index)
2403
+
2404
+ Advance each iterator in a multi-iterator object, *multi*, to the
2405
+ corresponding location of the *index* into the flattened
2406
+ broadcasted array.
2407
+
2408
+ .. c:function:: int PyArray_MultiIter_NOTDONE(PyObject* multi)
2409
+
2410
+ Evaluates TRUE as long as the multi-iterator has not looped
2411
+ through all of the elements (of the broadcasted result), otherwise
2412
+ it evaluates FALSE.
2413
+
2414
+ .. c:function:: int PyArray_Broadcast(PyArrayMultiIterObject* mit)
2415
+
2416
+ This function encapsulates the broadcasting rules. The *mit*
2417
+ container should already contain iterators for all the arrays that
2418
+ need to be broadcast. On return, these iterators will be adjusted
2419
+ so that iteration over each simultaneously will accomplish the
2420
+ broadcasting. A negative number is returned if an error occurs.
2421
+
2422
+ .. c:function:: int PyArray_RemoveSmallest(PyArrayMultiIterObject* mit)
2423
+
2424
+ This function takes a multi-iterator object that has been
2425
+ previously "broadcasted," finds the dimension with the smallest
2426
+ "sum of strides" in the broadcasted result and adapts all the
2427
+ iterators so as not to iterate over that dimension (by effectively
2428
+ making them of length-1 in that dimension). The corresponding
2429
+ dimension is returned unless *mit* ->nd is 0, then -1 is
2430
+ returned. This function is useful for constructing ufunc-like
2431
+ routines that broadcast their inputs correctly and then call a
2432
+ strided 1-d version of the routine as the inner-loop. This 1-d
2433
+ version is usually optimized for speed and for this reason the
2434
+ loop should be performed over the axis that won't require large
2435
+ stride jumps.
2436
+
2437
+ Neighborhood iterator
2438
+ ---------------------
2439
+
2440
+ .. versionadded:: 1.4.0
2441
+
2442
+ Neighborhood iterators are subclasses of the iterator object, and can be used
2443
+ to iter over a neighborhood of a point. For example, you may want to iterate
2444
+ over every voxel of a 3d image, and for every such voxel, iterate over an
2445
+ hypercube. Neighborhood iterator automatically handle boundaries, thus making
2446
+ this kind of code much easier to write than manual boundaries handling, at the
2447
+ cost of a slight overhead.
2448
+
2449
+ .. c:function:: PyObject* PyArray_NeighborhoodIterNew(PyArrayIterObject* iter, npy_intp bounds, int mode, PyArrayObject* fill_value)
2450
+
2451
+ This function creates a new neighborhood iterator from an existing
2452
+ iterator. The neighborhood will be computed relatively to the position
2453
+ currently pointed by *iter*, the bounds define the shape of the
2454
+ neighborhood iterator, and the mode argument the boundaries handling mode.
2455
+
2456
+ The *bounds* argument is expected to be a (2 * iter->ao->nd) arrays, such
2457
+ as the range bound[2*i]->bounds[2*i+1] defines the range where to walk for
2458
+ dimension i (both bounds are included in the walked coordinates). The
2459
+ bounds should be ordered for each dimension (bounds[2*i] <= bounds[2*i+1]).
2460
+
2461
+ The mode should be one of:
2462
+
2463
+ * NPY_NEIGHBORHOOD_ITER_ZERO_PADDING: zero padding. Outside bounds values
2464
+ will be 0.
2465
+ * NPY_NEIGHBORHOOD_ITER_ONE_PADDING: one padding, Outside bounds values
2466
+ will be 1.
2467
+ * NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING: constant padding. Outside bounds
2468
+ values will be the same as the first item in fill_value.
2469
+ * NPY_NEIGHBORHOOD_ITER_MIRROR_PADDING: mirror padding. Outside bounds
2470
+ values will be as if the array items were mirrored. For example, for the
2471
+ array [1, 2, 3, 4], x[-2] will be 2, x[-2] will be 1, x[4] will be 4,
2472
+ x[5] will be 1, etc...
2473
+ * NPY_NEIGHBORHOOD_ITER_CIRCULAR_PADDING: circular padding. Outside bounds
2474
+ values will be as if the array was repeated. For example, for the
2475
+ array [1, 2, 3, 4], x[-2] will be 3, x[-2] will be 4, x[4] will be 1,
2476
+ x[5] will be 2, etc...
2477
+
2478
+ If the mode is constant filling (NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING),
2479
+ fill_value should point to an array object which holds the filling value
2480
+ (the first item will be the filling value if the array contains more than
2481
+ one item). For other cases, fill_value may be NULL.
2482
+
2483
+ - The iterator holds a reference to iter
2484
+ - Return NULL on failure (in which case the reference count of iter is not
2485
+ changed)
2486
+ - iter itself can be a Neighborhood iterator: this can be useful for .e.g
2487
+ automatic boundaries handling
2488
+ - the object returned by this function should be safe to use as a normal
2489
+ iterator
2490
+ - If the position of iter is changed, any subsequent call to
2491
+ PyArrayNeighborhoodIter_Next is undefined behavior, and
2492
+ PyArrayNeighborhoodIter_Reset must be called.
2493
+
2494
+ .. code-block:: c
2495
+
2496
+ PyArrayIterObject \*iter;
2497
+ PyArrayNeighborhoodIterObject \*neigh_iter;
2498
+ iter = PyArray_IterNew(x);
2499
+
2500
+ //For a 3x3 kernel
2501
+ bounds = {-1, 1, -1, 1};
2502
+ neigh_iter = (PyArrayNeighborhoodIterObject*)PyArrayNeighborhoodIter_New(
2503
+ iter, bounds, NPY_NEIGHBORHOOD_ITER_ZERO_PADDING, NULL);
2504
+
2505
+ for(i = 0; i < iter->size; ++i) {
2506
+ for (j = 0; j < neigh_iter->size; ++j) {
2507
+ // Walk around the item currently pointed by iter->dataptr
2508
+ PyArrayNeighborhoodIter_Next(neigh_iter);
2509
+ }
2510
+
2511
+ // Move to the next point of iter
2512
+ PyArrayIter_Next(iter);
2513
+ PyArrayNeighborhoodIter_Reset(neigh_iter);
2514
+ }
2515
+
2516
+ .. c:function:: int PyArrayNeighborhoodIter_Reset(PyArrayNeighborhoodIterObject* iter)
2517
+
2518
+ Reset the iterator position to the first point of the neighborhood. This
2519
+ should be called whenever the iter argument given at
2520
+ PyArray_NeighborhoodIterObject is changed (see example)
2521
+
2522
+ .. c:function:: int PyArrayNeighborhoodIter_Next(PyArrayNeighborhoodIterObject* iter)
2523
+
2524
+ After this call, iter->dataptr points to the next point of the
2525
+ neighborhood. Calling this function after every point of the
2526
+ neighborhood has been visited is undefined.
2527
+
2528
+ Array Scalars
2529
+ -------------
2530
+
2531
+ .. c:function:: PyObject* PyArray_Return(PyArrayObject* arr)
2532
+
2533
+ This function steals a reference to *arr*.
2534
+
2535
+ This function checks to see if *arr* is a 0-dimensional array and,
2536
+ if so, returns the appropriate array scalar. It should be used
2537
+ whenever 0-dimensional arrays could be returned to Python.
2538
+
2539
+ .. c:function:: PyObject* PyArray_Scalar(void* data, PyArray_Descr* dtype, PyObject* itemsize)
2540
+
2541
+ Return an array scalar object of the given enumerated *typenum*
2542
+ and *itemsize* by **copying** from memory pointed to by *data*
2543
+ . If *swap* is nonzero then this function will byteswap the data
2544
+ if appropriate to the data-type because array scalars are always
2545
+ in correct machine-byte order.
2546
+
2547
+ .. c:function:: PyObject* PyArray_ToScalar(void* data, PyArrayObject* arr)
2548
+
2549
+ Return an array scalar object of the type and itemsize indicated
2550
+ by the array object *arr* copied from the memory pointed to by
2551
+ *data* and swapping if the data in *arr* is not in machine
2552
+ byte-order.
2553
+
2554
+ .. c:function:: PyObject* PyArray_FromScalar(PyObject* scalar, PyArray_Descr* outcode)
2555
+
2556
+ Return a 0-dimensional array of type determined by *outcode* from
2557
+ *scalar* which should be an array-scalar object. If *outcode* is
2558
+ NULL, then the type is determined from *scalar*.
2559
+
2560
+ .. c:function:: void PyArray_ScalarAsCtype(PyObject* scalar, void* ctypeptr)
2561
+
2562
+ Return in *ctypeptr* a pointer to the actual value in an array
2563
+ scalar. There is no error checking so *scalar* must be an
2564
+ array-scalar object, and ctypeptr must have enough space to hold
2565
+ the correct type. For flexible-sized types, a pointer to the data
2566
+ is copied into the memory of *ctypeptr*, for all other types, the
2567
+ actual data is copied into the address pointed to by *ctypeptr*.
2568
+
2569
+ .. c:function:: void PyArray_CastScalarToCtype(PyObject* scalar, void* ctypeptr, PyArray_Descr* outcode)
2570
+
2571
+ Return the data (cast to the data type indicated by *outcode*)
2572
+ from the array-scalar, *scalar*, into the memory pointed to by
2573
+ *ctypeptr* (which must be large enough to handle the incoming
2574
+ memory).
2575
+
2576
+ .. c:function:: PyObject* PyArray_TypeObjectFromType(int type)
2577
+
2578
+ Returns a scalar type-object from a type-number, *type*
2579
+ . Equivalent to :c:func:`PyArray_DescrFromType` (*type*)->typeobj
2580
+ except for reference counting and error-checking. Returns a new
2581
+ reference to the typeobject on success or ``NULL`` on failure.
2582
+
2583
+ .. c:function:: NPY_SCALARKIND PyArray_ScalarKind(int typenum, PyArrayObject** arr)
2584
+
2585
+ See the function :c:func:`PyArray_MinScalarType` for an alternative
2586
+ mechanism introduced in NumPy 1.6.0.
2587
+
2588
+ Return the kind of scalar represented by *typenum* and the array
2589
+ in *\*arr* (if *arr* is not ``NULL`` ). The array is assumed to be
2590
+ rank-0 and only used if *typenum* represents a signed integer. If
2591
+ *arr* is not ``NULL`` and the first element is negative then
2592
+ :c:data:`NPY_INTNEG_SCALAR` is returned, otherwise
2593
+ :c:data:`NPY_INTPOS_SCALAR` is returned. The possible return values
2594
+ are :c:data:`NPY_{kind}_SCALAR` where ``{kind}`` can be **INTPOS**,
2595
+ **INTNEG**, **FLOAT**, **COMPLEX**, **BOOL**, or **OBJECT**.
2596
+ :c:data:`NPY_NOSCALAR` is also an enumerated value
2597
+ :c:type:`NPY_SCALARKIND` variables can take on.
2598
+
2599
+ .. c:function:: int PyArray_CanCoerceScalar(char thistype, char neededtype, NPY_SCALARKIND scalar)
2600
+
2601
+ See the function :c:func:`PyArray_ResultType` for details of
2602
+ NumPy type promotion, updated in NumPy 1.6.0.
2603
+
2604
+ Implements the rules for scalar coercion. Scalars are only
2605
+ silently coerced from thistype to neededtype if this function
2606
+ returns nonzero. If scalar is :c:data:`NPY_NOSCALAR`, then this
2607
+ function is equivalent to :c:func:`PyArray_CanCastSafely`. The rule is
2608
+ that scalars of the same KIND can be coerced into arrays of the
2609
+ same KIND. This rule means that high-precision scalars will never
2610
+ cause low-precision arrays of the same KIND to be upcast.
2611
+
2612
+
2613
+ Data-type descriptors
2614
+ ---------------------
2615
+
2616
+
2617
+
2618
+ .. warning::
2619
+
2620
+ Data-type objects must be reference counted so be aware of the
2621
+ action on the data-type reference of different C-API calls. The
2622
+ standard rule is that when a data-type object is returned it is a
2623
+ new reference. Functions that take :c:type:`PyArray_Descr *` objects and
2624
+ return arrays steal references to the data-type their inputs
2625
+ unless otherwise noted. Therefore, you must own a reference to any
2626
+ data-type object used as input to such a function.
2627
+
2628
+ .. c:function:: int PyArray_DescrCheck(PyObject* obj)
2629
+
2630
+ Evaluates as true if *obj* is a data-type object ( :c:type:`PyArray_Descr *` ).
2631
+
2632
+ .. c:function:: PyArray_Descr* PyArray_DescrNew(PyArray_Descr* obj)
2633
+
2634
+ Return a new data-type object copied from *obj* (the fields
2635
+ reference is just updated so that the new object points to the
2636
+ same fields dictionary if any).
2637
+
2638
+ .. c:function:: PyArray_Descr* PyArray_DescrNewFromType(int typenum)
2639
+
2640
+ Create a new data-type object from the built-in (or
2641
+ user-registered) data-type indicated by *typenum*. All builtin
2642
+ types should not have any of their fields changed. This creates a
2643
+ new copy of the :c:type:`PyArray_Descr` structure so that you can fill
2644
+ it in as appropriate. This function is especially needed for
2645
+ flexible data-types which need to have a new elsize member in
2646
+ order to be meaningful in array construction.
2647
+
2648
+ .. c:function:: PyArray_Descr* PyArray_DescrNewByteorder(PyArray_Descr* obj, char newendian)
2649
+
2650
+ Create a new data-type object with the byteorder set according to
2651
+ *newendian*. All referenced data-type objects (in subdescr and
2652
+ fields members of the data-type object) are also changed
2653
+ (recursively). If a byteorder of :c:data:`NPY_IGNORE` is encountered it
2654
+ is left alone. If newendian is :c:data:`NPY_SWAP`, then all byte-orders
2655
+ are swapped. Other valid newendian values are :c:data:`NPY_NATIVE`,
2656
+ :c:data:`NPY_LITTLE`, and :c:data:`NPY_BIG` which all cause the returned
2657
+ data-typed descriptor (and all it's
2658
+ referenced data-type descriptors) to have the corresponding byte-
2659
+ order.
2660
+
2661
+ .. c:function:: PyArray_Descr* PyArray_DescrFromObject(PyObject* op, PyArray_Descr* mintype)
2662
+
2663
+ Determine an appropriate data-type object from the object *op*
2664
+ (which should be a "nested" sequence object) and the minimum
2665
+ data-type descriptor mintype (which can be ``NULL`` ). Similar in
2666
+ behavior to array(*op*).dtype. Don't confuse this function with
2667
+ :c:func:`PyArray_DescrConverter`. This function essentially looks at
2668
+ all the objects in the (nested) sequence and determines the
2669
+ data-type from the elements it finds.
2670
+
2671
+ .. c:function:: PyArray_Descr* PyArray_DescrFromScalar(PyObject* scalar)
2672
+
2673
+ Return a data-type object from an array-scalar object. No checking
2674
+ is done to be sure that *scalar* is an array scalar. If no
2675
+ suitable data-type can be determined, then a data-type of
2676
+ :c:data:`NPY_OBJECT` is returned by default.
2677
+
2678
+ .. c:function:: PyArray_Descr* PyArray_DescrFromType(int typenum)
2679
+
2680
+ Returns a data-type object corresponding to *typenum*. The
2681
+ *typenum* can be one of the enumerated types, a character code for
2682
+ one of the enumerated types, or a user-defined type.
2683
+
2684
+ .. c:function:: int PyArray_DescrConverter(PyObject* obj, PyArray_Descr** dtype)
2685
+
2686
+ Convert any compatible Python object, *obj*, to a data-type object
2687
+ in *dtype*. A large number of Python objects can be converted to
2688
+ data-type objects. See :ref:`arrays.dtypes` for a complete
2689
+ description. This version of the converter converts None objects
2690
+ to a :c:data:`NPY_DEFAULT_TYPE` data-type object. This function can
2691
+ be used with the "O&" character code in :c:func:`PyArg_ParseTuple`
2692
+ processing.
2693
+
2694
+ .. c:function:: int PyArray_DescrConverter2(PyObject* obj, PyArray_Descr** dtype)
2695
+
2696
+ Convert any compatible Python object, *obj*, to a data-type
2697
+ object in *dtype*. This version of the converter converts None
2698
+ objects so that the returned data-type is ``NULL``. This function
2699
+ can also be used with the "O&" character in PyArg_ParseTuple
2700
+ processing.
2701
+
2702
+ .. c:function:: int Pyarray_DescrAlignConverter(PyObject* obj, PyArray_Descr** dtype)
2703
+
2704
+ Like :c:func:`PyArray_DescrConverter` except it aligns C-struct-like
2705
+ objects on word-boundaries as the compiler would.
2706
+
2707
+ .. c:function:: int Pyarray_DescrAlignConverter2(PyObject* obj, PyArray_Descr** dtype)
2708
+
2709
+ Like :c:func:`PyArray_DescrConverter2` except it aligns C-struct-like
2710
+ objects on word-boundaries as the compiler would.
2711
+
2712
+ .. c:function:: PyObject *PyArray_FieldNames(PyObject* dict)
2713
+
2714
+ Take the fields dictionary, *dict*, such as the one attached to a
2715
+ data-type object and construct an ordered-list of field names such
2716
+ as is stored in the names field of the :c:type:`PyArray_Descr` object.
2717
+
2718
+
2719
+ Conversion Utilities
2720
+ --------------------
2721
+
2722
+
2723
+ For use with :c:func:`PyArg_ParseTuple`
2724
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2725
+
2726
+ All of these functions can be used in :c:func:`PyArg_ParseTuple` (...) with
2727
+ the "O&" format specifier to automatically convert any Python object
2728
+ to the required C-object. All of these functions return
2729
+ :c:data:`NPY_SUCCEED` if successful and :c:data:`NPY_FAIL` if not. The first
2730
+ argument to all of these function is a Python object. The second
2731
+ argument is the **address** of the C-type to convert the Python object
2732
+ to.
2733
+
2734
+
2735
+ .. warning::
2736
+
2737
+ Be sure to understand what steps you should take to manage the
2738
+ memory when using these conversion functions. These functions can
2739
+ require freeing memory, and/or altering the reference counts of
2740
+ specific objects based on your use.
2741
+
2742
+ .. c:function:: int PyArray_Converter(PyObject* obj, PyObject** address)
2743
+
2744
+ Convert any Python object to a :c:type:`PyArrayObject`. If
2745
+ :c:func:`PyArray_Check` (*obj*) is TRUE then its reference count is
2746
+ incremented and a reference placed in *address*. If *obj* is not
2747
+ an array, then convert it to an array using :c:func:`PyArray_FromAny`
2748
+ . No matter what is returned, you must DECREF the object returned
2749
+ by this routine in *address* when you are done with it.
2750
+
2751
+ .. c:function:: int PyArray_OutputConverter(PyObject* obj, PyArrayObject** address)
2752
+
2753
+ This is a default converter for output arrays given to
2754
+ functions. If *obj* is :c:data:`Py_None` or ``NULL``, then *\*address*
2755
+ will be ``NULL`` but the call will succeed. If :c:func:`PyArray_Check` (
2756
+ *obj*) is TRUE then it is returned in *\*address* without
2757
+ incrementing its reference count.
2758
+
2759
+ .. c:function:: int PyArray_IntpConverter(PyObject* obj, PyArray_Dims* seq)
2760
+
2761
+ Convert any Python sequence, *obj*, smaller than :c:data:`NPY_MAXDIMS`
2762
+ to a C-array of :c:type:`npy_intp`. The Python object could also be a
2763
+ single number. The *seq* variable is a pointer to a structure with
2764
+ members ptr and len. On successful return, *seq* ->ptr contains a
2765
+ pointer to memory that must be freed to avoid a memory leak. The
2766
+ restriction on memory size allows this converter to be
2767
+ conveniently used for sequences intended to be interpreted as
2768
+ array shapes.
2769
+
2770
+ .. c:function:: int PyArray_BufferConverter(PyObject* obj, PyArray_Chunk* buf)
2771
+
2772
+ Convert any Python object, *obj*, with a (single-segment) buffer
2773
+ interface to a variable with members that detail the object's use
2774
+ of its chunk of memory. The *buf* variable is a pointer to a
2775
+ structure with base, ptr, len, and flags members. The
2776
+ :c:type:`PyArray_Chunk` structure is binary compatibile with the
2777
+ Python's buffer object (through its len member on 32-bit platforms
2778
+ and its ptr member on 64-bit platforms or in Python 2.5). On
2779
+ return, the base member is set to *obj* (or its base if *obj* is
2780
+ already a buffer object pointing to another object). If you need
2781
+ to hold on to the memory be sure to INCREF the base member. The
2782
+ chunk of memory is pointed to by *buf* ->ptr member and has length
2783
+ *buf* ->len. The flags member of *buf* is :c:data:`NPY_BEHAVED_RO` with
2784
+ the :c:data:`NPY_ARRAY_WRITEABLE` flag set if *obj* has a writeable buffer
2785
+ interface.
2786
+
2787
+ .. c:function:: int PyArray_AxisConverter(PyObject \* obj, int* axis)
2788
+
2789
+ Convert a Python object, *obj*, representing an axis argument to
2790
+ the proper value for passing to the functions that take an integer
2791
+ axis. Specifically, if *obj* is None, *axis* is set to
2792
+ :c:data:`NPY_MAXDIMS` which is interpreted correctly by the C-API
2793
+ functions that take axis arguments.
2794
+
2795
+ .. c:function:: int PyArray_BoolConverter(PyObject* obj, Bool* value)
2796
+
2797
+ Convert any Python object, *obj*, to :c:data:`NPY_TRUE` or
2798
+ :c:data:`NPY_FALSE`, and place the result in *value*.
2799
+
2800
+ .. c:function:: int PyArray_ByteorderConverter(PyObject* obj, char* endian)
2801
+
2802
+ Convert Python strings into the corresponding byte-order
2803
+ character:
2804
+ '>', '<', 's', '=', or '\|'.
2805
+
2806
+ .. c:function:: int PyArray_SortkindConverter(PyObject* obj, NPY_SORTKIND* sort)
2807
+
2808
+ Convert Python strings into one of :c:data:`NPY_QUICKSORT` (starts
2809
+ with 'q' or 'Q') , :c:data:`NPY_HEAPSORT` (starts with 'h' or 'H'),
2810
+ or :c:data:`NPY_MERGESORT` (starts with 'm' or 'M').
2811
+
2812
+ .. c:function:: int PyArray_SearchsideConverter(PyObject* obj, NPY_SEARCHSIDE* side)
2813
+
2814
+ Convert Python strings into one of :c:data:`NPY_SEARCHLEFT` (starts with 'l'
2815
+ or 'L'), or :c:data:`NPY_SEARCHRIGHT` (starts with 'r' or 'R').
2816
+
2817
+ .. c:function:: int PyArray_OrderConverter(PyObject* obj, NPY_ORDER* order)
2818
+
2819
+ Convert the Python strings 'C', 'F', 'A', and 'K' into the :c:type:`NPY_ORDER`
2820
+ enumeration :c:data:`NPY_CORDER`, :c:data:`NPY_FORTRANORDER`,
2821
+ :c:data:`NPY_ANYORDER`, and :c:data:`NPY_KEEPORDER`.
2822
+
2823
+ .. c:function:: int PyArray_CastingConverter(PyObject* obj, NPY_CASTING* casting)
2824
+
2825
+ Convert the Python strings 'no', 'equiv', 'safe', 'same_kind', and
2826
+ 'unsafe' into the :c:type:`NPY_CASTING` enumeration :c:data:`NPY_NO_CASTING`,
2827
+ :c:data:`NPY_EQUIV_CASTING`, :c:data:`NPY_SAFE_CASTING`,
2828
+ :c:data:`NPY_SAME_KIND_CASTING`, and :c:data:`NPY_UNSAFE_CASTING`.
2829
+
2830
+ .. c:function:: int PyArray_ClipmodeConverter(PyObject* object, NPY_CLIPMODE* val)
2831
+
2832
+ Convert the Python strings 'clip', 'wrap', and 'raise' into the
2833
+ :c:type:`NPY_CLIPMODE` enumeration :c:data:`NPY_CLIP`, :c:data:`NPY_WRAP`,
2834
+ and :c:data:`NPY_RAISE`.
2835
+
2836
+ .. c:function:: int PyArray_ConvertClipmodeSequence(PyObject* object, NPY_CLIPMODE* modes, int n)
2837
+
2838
+ Converts either a sequence of clipmodes or a single clipmode into
2839
+ a C array of :c:type:`NPY_CLIPMODE` values. The number of clipmodes *n*
2840
+ must be known before calling this function. This function is provided
2841
+ to help functions allow a different clipmode for each dimension.
2842
+
2843
+ Other conversions
2844
+ ^^^^^^^^^^^^^^^^^
2845
+
2846
+ .. c:function:: int PyArray_PyIntAsInt(PyObject* op)
2847
+
2848
+ Convert all kinds of Python objects (including arrays and array
2849
+ scalars) to a standard integer. On error, -1 is returned and an
2850
+ exception set. You may find useful the macro:
2851
+
2852
+ .. code-block:: c
2853
+
2854
+ #define error_converting(x) (((x) == -1) && PyErr_Occurred()
2855
+
2856
+ .. c:function:: npy_intp PyArray_PyIntAsIntp(PyObject* op)
2857
+
2858
+ Convert all kinds of Python objects (including arrays and array
2859
+ scalars) to a (platform-pointer-sized) integer. On error, -1 is
2860
+ returned and an exception set.
2861
+
2862
+ .. c:function:: int PyArray_IntpFromSequence(PyObject* seq, npy_intp* vals, int maxvals)
2863
+
2864
+ Convert any Python sequence (or single Python number) passed in as
2865
+ *seq* to (up to) *maxvals* pointer-sized integers and place them
2866
+ in the *vals* array. The sequence can be smaller then *maxvals* as
2867
+ the number of converted objects is returned.
2868
+
2869
+ .. c:function:: int PyArray_TypestrConvert(int itemsize, int gentype)
2870
+
2871
+ Convert typestring characters (with *itemsize*) to basic
2872
+ enumerated data types. The typestring character corresponding to
2873
+ signed and unsigned integers, floating point numbers, and
2874
+ complex-floating point numbers are recognized and converted. Other
2875
+ values of gentype are returned. This function can be used to
2876
+ convert, for example, the string 'f4' to :c:data:`NPY_FLOAT32`.
2877
+
2878
+
2879
+ Miscellaneous
2880
+ -------------
2881
+
2882
+
2883
+ Importing the API
2884
+ ^^^^^^^^^^^^^^^^^
2885
+
2886
+ In order to make use of the C-API from another extension module, the
2887
+ ``import_array`` () command must be used. If the extension module is
2888
+ self-contained in a single .c file, then that is all that needs to be
2889
+ done. If, however, the extension module involves multiple files where
2890
+ the C-API is needed then some additional steps must be taken.
2891
+
2892
+ .. c:function:: void import_array(void)
2893
+
2894
+ This function must be called in the initialization section of a
2895
+ module that will make use of the C-API. It imports the module
2896
+ where the function-pointer table is stored and points the correct
2897
+ variable to it.
2898
+
2899
+ .. c:macro:: PY_ARRAY_UNIQUE_SYMBOL
2900
+
2901
+ .. c:macro:: NO_IMPORT_ARRAY
2902
+
2903
+ Using these #defines you can use the C-API in multiple files for a
2904
+ single extension module. In each file you must define
2905
+ :c:macro:`PY_ARRAY_UNIQUE_SYMBOL` to some name that will hold the
2906
+ C-API (*e.g.* myextension_ARRAY_API). This must be done **before**
2907
+ including the numpy/arrayobject.h file. In the module
2908
+ intialization routine you call ``import_array`` (). In addition,
2909
+ in the files that do not have the module initialization
2910
+ sub_routine define :c:macro:`NO_IMPORT_ARRAY` prior to including
2911
+ numpy/arrayobject.h.
2912
+
2913
+ Suppose I have two files coolmodule.c and coolhelper.c which need
2914
+ to be compiled and linked into a single extension module. Suppose
2915
+ coolmodule.c contains the required initcool module initialization
2916
+ function (with the import_array() function called). Then,
2917
+ coolmodule.c would have at the top:
2918
+
2919
+ .. code-block:: c
2920
+
2921
+ #define PY_ARRAY_UNIQUE_SYMBOL cool_ARRAY_API
2922
+ #include numpy/arrayobject.h
2923
+
2924
+ On the other hand, coolhelper.c would contain at the top:
2925
+
2926
+ .. code-block:: c
2927
+
2928
+ #define NO_IMPORT_ARRAY
2929
+ #define PY_ARRAY_UNIQUE_SYMBOL cool_ARRAY_API
2930
+ #include numpy/arrayobject.h
2931
+
2932
+ You can also put the common two last lines into an extension-local
2933
+ header file as long as you make sure that NO_IMPORT_ARRAY is
2934
+ #defined before #including that file.
2935
+
2936
+ Checking the API Version
2937
+ ^^^^^^^^^^^^^^^^^^^^^^^^
2938
+
2939
+ Because python extensions are not used in the same way as usual libraries on
2940
+ most platforms, some errors cannot be automatically detected at build time or
2941
+ even runtime. For example, if you build an extension using a function available
2942
+ only for numpy >= 1.3.0, and you import the extension later with numpy 1.2, you
2943
+ will not get an import error (but almost certainly a segmentation fault when
2944
+ calling the function). That's why several functions are provided to check for
2945
+ numpy versions. The macros :c:data:`NPY_VERSION` and
2946
+ :c:data:`NPY_FEATURE_VERSION` corresponds to the numpy version used to build the
2947
+ extension, whereas the versions returned by the functions
2948
+ PyArray_GetNDArrayCVersion and PyArray_GetNDArrayCFeatureVersion corresponds to
2949
+ the runtime numpy's version.
2950
+
2951
+ The rules for ABI and API compatibilities can be summarized as follows:
2952
+
2953
+ * Whenever :c:data:`NPY_VERSION` != PyArray_GetNDArrayCVersion, the
2954
+ extension has to be recompiled (ABI incompatibility).
2955
+ * :c:data:`NPY_VERSION` == PyArray_GetNDArrayCVersion and
2956
+ :c:data:`NPY_FEATURE_VERSION` <= PyArray_GetNDArrayCFeatureVersion means
2957
+ backward compatible changes.
2958
+
2959
+ ABI incompatibility is automatically detected in every numpy's version. API
2960
+ incompatibility detection was added in numpy 1.4.0. If you want to supported
2961
+ many different numpy versions with one extension binary, you have to build your
2962
+ extension with the lowest NPY_FEATURE_VERSION as possible.
2963
+
2964
+ .. c:function:: unsigned int PyArray_GetNDArrayCVersion(void)
2965
+
2966
+ This just returns the value :c:data:`NPY_VERSION`. :c:data:`NPY_VERSION`
2967
+ changes whenever a backward incompatible change at the ABI level. Because
2968
+ it is in the C-API, however, comparing the output of this function from the
2969
+ value defined in the current header gives a way to test if the C-API has
2970
+ changed thus requiring a re-compilation of extension modules that use the
2971
+ C-API. This is automatically checked in the function import_array.
2972
+
2973
+ .. c:function:: unsigned int PyArray_GetNDArrayCFeatureVersion(void)
2974
+
2975
+ .. versionadded:: 1.4.0
2976
+
2977
+ This just returns the value :c:data:`NPY_FEATURE_VERSION`.
2978
+ :c:data:`NPY_FEATURE_VERSION` changes whenever the API changes (e.g. a
2979
+ function is added). A changed value does not always require a recompile.
2980
+
2981
+ Internal Flexibility
2982
+ ^^^^^^^^^^^^^^^^^^^^
2983
+
2984
+ .. c:function:: int PyArray_SetNumericOps(PyObject* dict)
2985
+
2986
+ NumPy stores an internal table of Python callable objects that are
2987
+ used to implement arithmetic operations for arrays as well as
2988
+ certain array calculation methods. This function allows the user
2989
+ to replace any or all of these Python objects with their own
2990
+ versions. The keys of the dictionary, *dict*, are the named
2991
+ functions to replace and the paired value is the Python callable
2992
+ object to use. Care should be taken that the function used to
2993
+ replace an internal array operation does not itself call back to
2994
+ that internal array operation (unless you have designed the
2995
+ function to handle that), or an unchecked infinite recursion can
2996
+ result (possibly causing program crash). The key names that
2997
+ represent operations that can be replaced are:
2998
+
2999
+ **add**, **subtract**, **multiply**, **divide**,
3000
+ **remainder**, **power**, **square**, **reciprocal**,
3001
+ **ones_like**, **sqrt**, **negative**, **absolute**,
3002
+ **invert**, **left_shift**, **right_shift**,
3003
+ **bitwise_and**, **bitwise_xor**, **bitwise_or**,
3004
+ **less**, **less_equal**, **equal**, **not_equal**,
3005
+ **greater**, **greater_equal**, **floor_divide**,
3006
+ **true_divide**, **logical_or**, **logical_and**,
3007
+ **floor**, **ceil**, **maximum**, **minimum**, **rint**.
3008
+
3009
+
3010
+ These functions are included here because they are used at least once
3011
+ in the array object's methods. The function returns -1 (without
3012
+ setting a Python Error) if one of the objects being assigned is not
3013
+ callable.
3014
+
3015
+ .. c:function:: PyObject* PyArray_GetNumericOps(void)
3016
+
3017
+ Return a Python dictionary containing the callable Python objects
3018
+ stored in the the internal arithmetic operation table. The keys of
3019
+ this dictionary are given in the explanation for :c:func:`PyArray_SetNumericOps`.
3020
+
3021
+ .. c:function:: void PyArray_SetStringFunction(PyObject* op, int repr)
3022
+
3023
+ This function allows you to alter the tp_str and tp_repr methods
3024
+ of the array object to any Python function. Thus you can alter
3025
+ what happens for all arrays when str(arr) or repr(arr) is called
3026
+ from Python. The function to be called is passed in as *op*. If
3027
+ *repr* is non-zero, then this function will be called in response
3028
+ to repr(arr), otherwise the function will be called in response to
3029
+ str(arr). No check on whether or not *op* is callable is
3030
+ performed. The callable passed in to *op* should expect an array
3031
+ argument and should return a string to be printed.
3032
+
3033
+
3034
+ Memory management
3035
+ ^^^^^^^^^^^^^^^^^
3036
+
3037
+ .. c:function:: char* PyDataMem_NEW(size_t nbytes)
3038
+
3039
+ .. c:function:: PyDataMem_FREE(char* ptr)
3040
+
3041
+ .. c:function:: char* PyDataMem_RENEW(void * ptr, size_t newbytes)
3042
+
3043
+ Macros to allocate, free, and reallocate memory. These macros are used
3044
+ internally to create arrays.
3045
+
3046
+ .. c:function:: npy_intp* PyDimMem_NEW(nd)
3047
+
3048
+ .. c:function:: PyDimMem_FREE(npy_intp* ptr)
3049
+
3050
+ .. c:function:: npy_intp* PyDimMem_RENEW(npy_intp* ptr, npy_intp newnd)
3051
+
3052
+ Macros to allocate, free, and reallocate dimension and strides memory.
3053
+
3054
+ .. c:function:: PyArray_malloc(nbytes)
3055
+
3056
+ .. c:function:: PyArray_free(ptr)
3057
+
3058
+ .. c:function:: PyArray_realloc(ptr, nbytes)
3059
+
3060
+ These macros use different memory allocators, depending on the
3061
+ constant :c:data:`NPY_USE_PYMEM`. The system malloc is used when
3062
+ :c:data:`NPY_USE_PYMEM` is 0, if :c:data:`NPY_USE_PYMEM` is 1, then
3063
+ the Python memory allocator is used.
3064
+
3065
+
3066
+ Threading support
3067
+ ^^^^^^^^^^^^^^^^^
3068
+
3069
+ These macros are only meaningful if :c:data:`NPY_ALLOW_THREADS`
3070
+ evaluates True during compilation of the extension module. Otherwise,
3071
+ these macros are equivalent to whitespace. Python uses a single Global
3072
+ Interpreter Lock (GIL) for each Python process so that only a single
3073
+ thread may excecute at a time (even on multi-cpu machines). When
3074
+ calling out to a compiled function that may take time to compute (and
3075
+ does not have side-effects for other threads like updated global
3076
+ variables), the GIL should be released so that other Python threads
3077
+ can run while the time-consuming calculations are performed. This can
3078
+ be accomplished using two groups of macros. Typically, if one macro in
3079
+ a group is used in a code block, all of them must be used in the same
3080
+ code block. Currently, :c:data:`NPY_ALLOW_THREADS` is defined to the
3081
+ python-defined :c:data:`WITH_THREADS` constant unless the environment
3082
+ variable :c:data:`NPY_NOSMP` is set in which case
3083
+ :c:data:`NPY_ALLOW_THREADS` is defined to be 0.
3084
+
3085
+ Group 1
3086
+ """""""
3087
+
3088
+ This group is used to call code that may take some time but does not
3089
+ use any Python C-API calls. Thus, the GIL should be released during
3090
+ its calculation.
3091
+
3092
+ .. c:macro:: NPY_BEGIN_ALLOW_THREADS
3093
+
3094
+ Equivalent to :c:macro:`Py_BEGIN_ALLOW_THREADS` except it uses
3095
+ :c:data:`NPY_ALLOW_THREADS` to determine if the macro if
3096
+ replaced with white-space or not.
3097
+
3098
+ .. c:macro:: NPY_END_ALLOW_THREADS
3099
+
3100
+ Equivalent to :c:macro:`Py_END_ALLOW_THREADS` except it uses
3101
+ :c:data:`NPY_ALLOW_THREADS` to determine if the macro if
3102
+ replaced with white-space or not.
3103
+
3104
+ .. c:macro:: NPY_BEGIN_THREADS_DEF
3105
+
3106
+ Place in the variable declaration area. This macro sets up the
3107
+ variable needed for storing the Python state.
3108
+
3109
+ .. c:macro:: NPY_BEGIN_THREADS
3110
+
3111
+ Place right before code that does not need the Python
3112
+ interpreter (no Python C-API calls). This macro saves the
3113
+ Python state and releases the GIL.
3114
+
3115
+ .. c:macro:: NPY_END_THREADS
3116
+
3117
+ Place right after code that does not need the Python
3118
+ interpreter. This macro acquires the GIL and restores the
3119
+ Python state from the saved variable.
3120
+
3121
+ .. c:function:: NPY_BEGIN_THREADS_DESCR(PyArray_Descr *dtype)
3122
+
3123
+ Useful to release the GIL only if *dtype* does not contain
3124
+ arbitrary Python objects which may need the Python interpreter
3125
+ during execution of the loop. Equivalent to
3126
+
3127
+ .. c:function:: NPY_END_THREADS_DESCR(PyArray_Descr *dtype)
3128
+
3129
+ Useful to regain the GIL in situations where it was released
3130
+ using the BEGIN form of this macro.
3131
+
3132
+ .. c:function:: NPY_BEGIN_THREADS_THRESHOLDED(int loop_size)
3133
+
3134
+ Useful to release the GIL only if *loop_size* exceeds a
3135
+ minimum threshold, currently set to 500. Should be matched
3136
+ with a .. c:macro::`NPY_END_THREADS` to regain the GIL.
3137
+
3138
+ Group 2
3139
+ """""""
3140
+
3141
+ This group is used to re-acquire the Python GIL after it has been
3142
+ released. For example, suppose the GIL has been released (using the
3143
+ previous calls), and then some path in the code (perhaps in a
3144
+ different subroutine) requires use of the Python C-API, then these
3145
+ macros are useful to acquire the GIL. These macros accomplish
3146
+ essentially a reverse of the previous three (acquire the LOCK saving
3147
+ what state it had) and then re-release it with the saved state.
3148
+
3149
+ .. c:macro:: NPY_ALLOW_C_API_DEF
3150
+
3151
+ Place in the variable declaration area to set up the necessary
3152
+ variable.
3153
+
3154
+ .. c:macro:: NPY_ALLOW_C_API
3155
+
3156
+ Place before code that needs to call the Python C-API (when it is
3157
+ known that the GIL has already been released).
3158
+
3159
+ .. c:macro:: NPY_DISABLE_C_API
3160
+
3161
+ Place after code that needs to call the Python C-API (to re-release
3162
+ the GIL).
3163
+
3164
+ .. tip::
3165
+
3166
+ Never use semicolons after the threading support macros.
3167
+
3168
+
3169
+ Priority
3170
+ ^^^^^^^^
3171
+
3172
+ .. c:var:: NPY_PRIORITY
3173
+
3174
+ Default priority for arrays.
3175
+
3176
+ .. c:var:: NPY_SUBTYPE_PRIORITY
3177
+
3178
+ Default subtype priority.
3179
+
3180
+ .. c:var:: NPY_SCALAR_PRIORITY
3181
+
3182
+ Default scalar priority (very small)
3183
+
3184
+ .. c:function:: double PyArray_GetPriority(PyObject* obj, double def)
3185
+
3186
+ Return the :obj:`__array_priority__` attribute (converted to a
3187
+ double) of *obj* or *def* if no attribute of that name
3188
+ exists. Fast returns that avoid the attribute lookup are provided
3189
+ for objects of type :c:data:`PyArray_Type`.
3190
+
3191
+
3192
+ Default buffers
3193
+ ^^^^^^^^^^^^^^^
3194
+
3195
+ .. c:var:: NPY_BUFSIZE
3196
+
3197
+ Default size of the user-settable internal buffers.
3198
+
3199
+ .. c:var:: NPY_MIN_BUFSIZE
3200
+
3201
+ Smallest size of user-settable internal buffers.
3202
+
3203
+ .. c:var:: NPY_MAX_BUFSIZE
3204
+
3205
+ Largest size allowed for the user-settable buffers.
3206
+
3207
+
3208
+ Other constants
3209
+ ^^^^^^^^^^^^^^^
3210
+
3211
+ .. c:var:: NPY_NUM_FLOATTYPE
3212
+
3213
+ The number of floating-point types
3214
+
3215
+ .. c:var:: NPY_MAXDIMS
3216
+
3217
+ The maximum number of dimensions allowed in arrays.
3218
+
3219
+ .. c:var:: NPY_VERSION
3220
+
3221
+ The current version of the ndarray object (check to see if this
3222
+ variable is defined to guarantee the numpy/arrayobject.h header is
3223
+ being used).
3224
+
3225
+ .. c:var:: NPY_FALSE
3226
+
3227
+ Defined as 0 for use with Bool.
3228
+
3229
+ .. c:var:: NPY_TRUE
3230
+
3231
+ Defined as 1 for use with Bool.
3232
+
3233
+ .. c:var:: NPY_FAIL
3234
+
3235
+ The return value of failed converter functions which are called using
3236
+ the "O&" syntax in :c:func:`PyArg_ParseTuple`-like functions.
3237
+
3238
+ .. c:var:: NPY_SUCCEED
3239
+
3240
+ The return value of successful converter functions which are called
3241
+ using the "O&" syntax in :c:func:`PyArg_ParseTuple`-like functions.
3242
+
3243
+
3244
+ Miscellaneous Macros
3245
+ ^^^^^^^^^^^^^^^^^^^^
3246
+
3247
+ .. c:function:: PyArray_SAMESHAPE(a1, a2)
3248
+
3249
+ Evaluates as True if arrays *a1* and *a2* have the same shape.
3250
+
3251
+ .. c:function:: PyArray_MAX(a,b)
3252
+
3253
+ Returns the maximum of *a* and *b*. If (*a*) or (*b*) are
3254
+ expressions they are evaluated twice.
3255
+
3256
+ .. c:function:: PyArray_MIN(a,b)
3257
+
3258
+ Returns the minimum of *a* and *b*. If (*a*) or (*b*) are
3259
+ expressions they are evaluated twice.
3260
+
3261
+ .. c:function:: PyArray_CLT(a,b)
3262
+
3263
+ .. c:function:: PyArray_CGT(a,b)
3264
+
3265
+ .. c:function:: PyArray_CLE(a,b)
3266
+
3267
+ .. c:function:: PyArray_CGE(a,b)
3268
+
3269
+ .. c:function:: PyArray_CEQ(a,b)
3270
+
3271
+ .. c:function:: PyArray_CNE(a,b)
3272
+
3273
+ Implements the complex comparisons between two complex numbers
3274
+ (structures with a real and imag member) using NumPy's definition
3275
+ of the ordering which is lexicographic: comparing the real parts
3276
+ first and then the complex parts if the real parts are equal.
3277
+
3278
+ .. c:function:: PyArray_REFCOUNT(PyObject* op)
3279
+
3280
+ Returns the reference count of any Python object.
3281
+
3282
+ .. c:function:: PyArray_XDECREF_ERR(PyObject \*obj)
3283
+
3284
+ DECREF's an array object which may have the :c:data:`NPY_ARRAY_UPDATEIFCOPY`
3285
+ flag set without causing the contents to be copied back into the
3286
+ original array. Resets the :c:data:`NPY_ARRAY_WRITEABLE` flag on the base
3287
+ object. This is useful for recovering from an error condition when
3288
+ :c:data:`NPY_ARRAY_UPDATEIFCOPY` is used.
3289
+
3290
+
3291
+ Enumerated Types
3292
+ ^^^^^^^^^^^^^^^^
3293
+
3294
+ .. c:type:: NPY_SORTKIND
3295
+
3296
+ A special variable-type which can take on the values :c:data:`NPY_{KIND}`
3297
+ where ``{KIND}`` is
3298
+
3299
+ **QUICKSORT**, **HEAPSORT**, **MERGESORT**
3300
+
3301
+ .. c:var:: NPY_NSORTS
3302
+
3303
+ Defined to be the number of sorts.
3304
+
3305
+ .. c:type:: NPY_SCALARKIND
3306
+
3307
+ A special variable type indicating the number of "kinds" of
3308
+ scalars distinguished in determining scalar-coercion rules. This
3309
+ variable can take on the values :c:data:`NPY_{KIND}` where ``{KIND}`` can be
3310
+
3311
+ **NOSCALAR**, **BOOL_SCALAR**, **INTPOS_SCALAR**,
3312
+ **INTNEG_SCALAR**, **FLOAT_SCALAR**, **COMPLEX_SCALAR**,
3313
+ **OBJECT_SCALAR**
3314
+
3315
+ .. c:var:: NPY_NSCALARKINDS
3316
+
3317
+ Defined to be the number of scalar kinds
3318
+ (not including :c:data:`NPY_NOSCALAR`).
3319
+
3320
+ .. c:type:: NPY_ORDER
3321
+
3322
+ An enumeration type indicating the element order that an array should be
3323
+ interpreted in. When a brand new array is created, generally
3324
+ only **NPY_CORDER** and **NPY_FORTRANORDER** are used, whereas
3325
+ when one or more inputs are provided, the order can be based on them.
3326
+
3327
+ .. c:var:: NPY_ANYORDER
3328
+
3329
+ Fortran order if all the inputs are Fortran, C otherwise.
3330
+
3331
+ .. c:var:: NPY_CORDER
3332
+
3333
+ C order.
3334
+
3335
+ .. c:var:: NPY_FORTRANORDER
3336
+
3337
+ Fortran order.
3338
+
3339
+ .. c:var:: NPY_KEEPORDER
3340
+
3341
+ An order as close to the order of the inputs as possible, even
3342
+ if the input is in neither C nor Fortran order.
3343
+
3344
+ .. c:type:: NPY_CLIPMODE
3345
+
3346
+ A variable type indicating the kind of clipping that should be
3347
+ applied in certain functions.
3348
+
3349
+ .. c:var:: NPY_RAISE
3350
+
3351
+ The default for most operations, raises an exception if an index
3352
+ is out of bounds.
3353
+
3354
+ .. c:var:: NPY_CLIP
3355
+
3356
+ Clips an index to the valid range if it is out of bounds.
3357
+
3358
+ .. c:var:: NPY_WRAP
3359
+
3360
+ Wraps an index to the valid range if it is out of bounds.
3361
+
3362
+ .. c:type:: NPY_CASTING
3363
+
3364
+ .. versionadded:: 1.6
3365
+
3366
+ An enumeration type indicating how permissive data conversions should
3367
+ be. This is used by the iterator added in NumPy 1.6, and is intended
3368
+ to be used more broadly in a future version.
3369
+
3370
+ .. c:var:: NPY_NO_CASTING
3371
+
3372
+ Only allow identical types.
3373
+
3374
+ .. c:var:: NPY_EQUIV_CASTING
3375
+
3376
+ Allow identical and casts involving byte swapping.
3377
+
3378
+ .. c:var:: NPY_SAFE_CASTING
3379
+
3380
+ Only allow casts which will not cause values to be rounded,
3381
+ truncated, or otherwise changed.
3382
+
3383
+ .. c:var:: NPY_SAME_KIND_CASTING
3384
+
3385
+ Allow any safe casts, and casts between types of the same kind.
3386
+ For example, float64 -> float32 is permitted with this rule.
3387
+
3388
+ .. c:var:: NPY_UNSAFE_CASTING
3389
+
3390
+ Allow any cast, no matter what kind of data loss may occur.
3391
+
3392
+ .. index::
3393
+ pair: ndarray; C-API