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