numpy 1.9.2__zip → 1.10.0__zip

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1593) hide show
  1. numpy-1.10.0.post2/INSTALL.txt +200 -0
  2. numpy-1.10.0.post2/LICENSE.txt +30 -0
  3. numpy-1.10.0.post2/MANIFEST.in +31 -0
  4. numpy-1.10.0.post2/PKG-INFO +47 -0
  5. numpy-1.10.0.post2/cnew.txt +117 -0
  6. numpy-1.10.0.post2/cold.txt +44 -0
  7. numpy-1.10.0.post2/committers.txt +160 -0
  8. numpy-1.10.0.post2/cpre.txt +283 -0
  9. numpy-1.10.0.post2/crel.txt +161 -0
  10. numpy-1.10.0.post2/doc/release/1.10.0-notes.rst +439 -0
  11. numpy-1.10.0.post2/doc/scipy-sphinx-theme/.git +1 -0
  12. numpy-1.10.0.post2/doc/source/conf.py +331 -0
  13. numpy-1.10.0.post2/doc/source/dev/development_environment.rst +211 -0
  14. numpy-1.10.0.post2/doc/source/dev/gitwash/development_workflow.rst +534 -0
  15. numpy-1.10.0.post2/doc/source/dev/gitwash/git_links.inc +95 -0
  16. numpy-1.10.0.post2/doc/source/dev/gitwash/index.rst +14 -0
  17. numpy-1.10.0.post2/doc/source/dev/index.rst +11 -0
  18. numpy-1.10.0.post2/doc/source/reference/arrays.classes.rst +490 -0
  19. numpy-1.10.0.post2/doc/source/reference/arrays.dtypes.rst +536 -0
  20. numpy-1.10.0.post2/doc/source/reference/arrays.indexing.rst +549 -0
  21. numpy-1.10.0.post2/doc/source/reference/arrays.interface.rst +337 -0
  22. numpy-1.10.0.post2/doc/source/reference/arrays.ndarray.rst +622 -0
  23. numpy-1.10.0.post2/doc/source/reference/arrays.scalars.rst +291 -0
  24. numpy-1.10.0.post2/doc/source/reference/c-api.array.rst +3393 -0
  25. numpy-1.10.0.post2/doc/source/reference/c-api.config.rst +103 -0
  26. numpy-1.10.0.post2/doc/source/reference/c-api.coremath.rst +420 -0
  27. numpy-1.10.0.post2/doc/source/reference/c-api.dtype.rst +376 -0
  28. numpy-1.10.0.post2/doc/source/reference/c-api.generalized-ufuncs.rst +191 -0
  29. numpy-1.10.0.post2/doc/source/reference/c-api.iterator.rst +1300 -0
  30. numpy-1.10.0.post2/doc/source/reference/c-api.types-and-structures.rst +1240 -0
  31. numpy-1.10.0.post2/doc/source/reference/c-api.ufunc.rst +413 -0
  32. numpy-1.10.0.post2/doc/source/reference/index.rst +43 -0
  33. numpy-1.10.0.post2/doc/source/reference/internals.code-explanations.rst +615 -0
  34. numpy-1.10.0.post2/doc/source/reference/routines.array-manipulation.rst +115 -0
  35. numpy-1.10.0.post2/doc/source/reference/routines.io.rst +78 -0
  36. numpy-1.10.0.post2/doc/source/reference/routines.linalg.rst +91 -0
  37. numpy-1.10.0.post2/doc/source/reference/routines.ma.rst +407 -0
  38. numpy-1.10.0.post2/doc/source/reference/routines.sort.rst +41 -0
  39. numpy-1.10.0.post2/doc/source/reference/routines.statistics.rst +57 -0
  40. numpy-1.10.0.post2/doc/source/reference/swig.interface-file.rst +1066 -0
  41. numpy-1.10.0.post2/doc/source/reference/swig.testing.rst +167 -0
  42. numpy-1.10.0.post2/doc/source/reference/ufuncs.rst +666 -0
  43. numpy-1.10.0.post2/doc/source/release.rst +20 -0
  44. numpy-1.10.0.post2/doc/source/user/basics.io.genfromtxt.rst +531 -0
  45. numpy-1.10.0.post2/doc/source/user/basics.rec.rst +7 -0
  46. numpy-1.10.0.post2/doc/source/user/c-info.beyond-basics.rst +560 -0
  47. numpy-1.10.0.post2/doc/source/user/c-info.how-to-extend.rst +642 -0
  48. numpy-1.10.0.post2/doc/source/user/c-info.python-as-glue.rst +1177 -0
  49. numpy-1.10.0.post2/doc/source/user/c-info.ufunc-tutorial.rst +1211 -0
  50. numpy-1.10.0.post2/doc/source/user/install.rst +194 -0
  51. numpy-1.10.0.post2/doc/sphinxext/.git +1 -0
  52. numpy-1.10.0.post2/numpy/__init__.py +227 -0
  53. numpy-1.10.0.post2/numpy/_build_utils/README +8 -0
  54. numpy-1.10.0.post2/numpy/_build_utils/apple_accelerate.py +21 -0
  55. numpy-1.10.0.post2/numpy/_build_utils/common.py +138 -0
  56. numpy-1.10.0.post2/numpy/_build_utils/src/apple_sgemv_fix.c +227 -0
  57. numpy-1.10.0.post2/numpy/_build_utils/waf.py +531 -0
  58. numpy-1.10.0.post2/numpy/_import_tools.py +353 -0
  59. numpy-1.10.0.post2/numpy/add_newdocs.py +7611 -0
  60. numpy-1.10.0.post2/numpy/compat/_inspect.py +194 -0
  61. numpy-1.10.0.post2/numpy/compat/py3k.py +88 -0
  62. numpy-1.10.0.post2/numpy/compat/setup.py +12 -0
  63. numpy-1.10.0.post2/numpy/core/__init__.py +89 -0
  64. numpy-1.10.0.post2/numpy/core/_internal.py +761 -0
  65. numpy-1.10.0.post2/numpy/core/_methods.py +133 -0
  66. numpy-1.10.0.post2/numpy/core/arrayprint.py +760 -0
  67. numpy-1.10.0.post2/numpy/core/code_generators/cversions.txt +34 -0
  68. numpy-1.10.0.post2/numpy/core/code_generators/generate_ufunc_api.py +219 -0
  69. numpy-1.10.0.post2/numpy/core/code_generators/generate_umath.py +1017 -0
  70. numpy-1.10.0.post2/numpy/core/code_generators/numpy_api.py +415 -0
  71. numpy-1.10.0.post2/numpy/core/code_generators/ufunc_docstrings.py +3442 -0
  72. numpy-1.10.0.post2/numpy/core/defchararray.py +2689 -0
  73. numpy-1.10.0.post2/numpy/core/fromnumeric.py +3089 -0
  74. numpy-1.10.0.post2/numpy/core/function_base.py +203 -0
  75. numpy-1.10.0.post2/numpy/core/getlimits.py +308 -0
  76. numpy-1.10.0.post2/numpy/core/include/numpy/ndarrayobject.h +246 -0
  77. numpy-1.10.0.post2/numpy/core/include/numpy/ndarraytypes.h +1797 -0
  78. numpy-1.10.0.post2/numpy/core/include/numpy/npy_3kcompat.h +448 -0
  79. numpy-1.10.0.post2/numpy/core/include/numpy/npy_common.h +1051 -0
  80. numpy-1.10.0.post2/numpy/core/include/numpy/npy_cpu.h +92 -0
  81. numpy-1.10.0.post2/numpy/core/include/numpy/npy_endian.h +61 -0
  82. numpy-1.10.0.post2/numpy/core/include/numpy/npy_math.h +525 -0
  83. numpy-1.10.0.post2/numpy/core/include/numpy/numpyconfig.h +36 -0
  84. numpy-1.10.0.post2/numpy/core/machar.py +342 -0
  85. numpy-1.10.0.post2/numpy/core/memmap.py +311 -0
  86. numpy-1.10.0.post2/numpy/core/numeric.py +2893 -0
  87. numpy-1.10.0.post2/numpy/core/numerictypes.py +1036 -0
  88. numpy-1.10.0.post2/numpy/core/records.py +846 -0
  89. numpy-1.10.0.post2/numpy/core/setup.py +983 -0
  90. numpy-1.10.0.post2/numpy/core/setup_common.py +352 -0
  91. numpy-1.10.0.post2/numpy/core/shape_base.py +350 -0
  92. numpy-1.10.0.post2/numpy/core/src/multiarray/alloc.c +244 -0
  93. numpy-1.10.0.post2/numpy/core/src/multiarray/arrayobject.c +1858 -0
  94. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.c.src +4738 -0
  95. numpy-1.10.0.post2/numpy/core/src/multiarray/arraytypes.h +37 -0
  96. numpy-1.10.0.post2/numpy/core/src/multiarray/buffer.c +981 -0
  97. numpy-1.10.0.post2/numpy/core/src/multiarray/calculation.c +1224 -0
  98. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.c +812 -0
  99. numpy-1.10.0.post2/numpy/core/src/multiarray/cblasfuncs.h +10 -0
  100. numpy-1.10.0.post2/numpy/core/src/multiarray/common.c +911 -0
  101. numpy-1.10.0.post2/numpy/core/src/multiarray/common.h +250 -0
  102. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.c +1664 -0
  103. numpy-1.10.0.post2/numpy/core/src/multiarray/compiled_base.h +24 -0
  104. numpy-1.10.0.post2/numpy/core/src/multiarray/conversion_utils.c +1217 -0
  105. numpy-1.10.0.post2/numpy/core/src/multiarray/convert.c +590 -0
  106. numpy-1.10.0.post2/numpy/core/src/multiarray/convert_datatype.c +2155 -0
  107. numpy-1.10.0.post2/numpy/core/src/multiarray/ctors.c +3838 -0
  108. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime.c +3821 -0
  109. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busday.c +1322 -0
  110. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_busdaycal.c +552 -0
  111. numpy-1.10.0.post2/numpy/core/src/multiarray/datetime_strings.c +1772 -0
  112. numpy-1.10.0.post2/numpy/core/src/multiarray/descriptor.c +3719 -0
  113. numpy-1.10.0.post2/numpy/core/src/multiarray/dtype_transfer.c +4239 -0
  114. numpy-1.10.0.post2/numpy/core/src/multiarray/einsum.c.src +3005 -0
  115. numpy-1.10.0.post2/numpy/core/src/multiarray/getset.c +986 -0
  116. numpy-1.10.0.post2/numpy/core/src/multiarray/hashdescr.c +318 -0
  117. numpy-1.10.0.post2/numpy/core/src/multiarray/item_selection.c +2413 -0
  118. numpy-1.10.0.post2/numpy/core/src/multiarray/iterators.c +2192 -0
  119. numpy-1.10.0.post2/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +1769 -0
  120. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.c +3380 -0
  121. numpy-1.10.0.post2/numpy/core/src/multiarray/mapping.h +77 -0
  122. numpy-1.10.0.post2/numpy/core/src/multiarray/methods.c +2514 -0
  123. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarray_tests.c.src +1035 -0
  124. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.c +4628 -0
  125. numpy-1.10.0.post2/numpy/core/src/multiarray/multiarraymodule.h +15 -0
  126. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_api.c +2809 -0
  127. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_constr.c +3160 -0
  128. numpy-1.10.0.post2/numpy/core/src/multiarray/nditer_pywrap.c +2499 -0
  129. numpy-1.10.0.post2/numpy/core/src/multiarray/number.c +1106 -0
  130. numpy-1.10.0.post2/numpy/core/src/multiarray/number.h +77 -0
  131. numpy-1.10.0.post2/numpy/core/src/multiarray/numpymemoryview.c +308 -0
  132. numpy-1.10.0.post2/numpy/core/src/multiarray/numpyos.c +683 -0
  133. numpy-1.10.0.post2/numpy/core/src/multiarray/scalarapi.c +870 -0
  134. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.c.src +4343 -0
  135. numpy-1.10.0.post2/numpy/core/src/multiarray/scalartypes.h +55 -0
  136. numpy-1.10.0.post2/numpy/core/src/multiarray/shape.c +1131 -0
  137. numpy-1.10.0.post2/numpy/core/src/multiarray/ucsnarrow.c +174 -0
  138. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.c +180 -0
  139. numpy-1.10.0.post2/numpy/core/src/multiarray/vdot.h +18 -0
  140. numpy-1.10.0.post2/numpy/core/src/npymath/ieee754.c.src +808 -0
  141. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math.c.src +597 -0
  142. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_complex.c.src +1788 -0
  143. numpy-1.10.0.post2/numpy/core/src/npymath/npy_math_private.h +544 -0
  144. numpy-1.10.0.post2/numpy/core/src/npysort/heapsort.c.src +402 -0
  145. numpy-1.10.0.post2/numpy/core/src/npysort/mergesort.c.src +488 -0
  146. numpy-1.10.0.post2/numpy/core/src/npysort/npysort_common.h +360 -0
  147. numpy-1.10.0.post2/numpy/core/src/npysort/quicksort.c.src +523 -0
  148. numpy-1.10.0.post2/numpy/core/src/npysort/selection.c.src +426 -0
  149. numpy-1.10.0.post2/numpy/core/src/private/npy_cblas.h +584 -0
  150. numpy-1.10.0.post2/numpy/core/src/private/npy_config.h +101 -0
  151. numpy-1.10.0.post2/numpy/core/src/private/npy_import.h +32 -0
  152. numpy-1.10.0.post2/numpy/core/src/private/npy_partition.h.src +122 -0
  153. numpy-1.10.0.post2/numpy/core/src/private/npy_sort.h +196 -0
  154. numpy-1.10.0.post2/numpy/core/src/private/templ_common.h.src +43 -0
  155. numpy-1.10.0.post2/numpy/core/src/private/ufunc_override.h +397 -0
  156. numpy-1.10.0.post2/numpy/core/src/umath/funcs.inc.src +356 -0
  157. numpy-1.10.0.post2/numpy/core/src/umath/loops.c.src +2675 -0
  158. numpy-1.10.0.post2/numpy/core/src/umath/loops.h.src +497 -0
  159. numpy-1.10.0.post2/numpy/core/src/umath/operand_flag_tests.c.src +105 -0
  160. numpy-1.10.0.post2/numpy/core/src/umath/scalarmath.c.src +1738 -0
  161. numpy-1.10.0.post2/numpy/core/src/umath/simd.inc.src +903 -0
  162. numpy-1.10.0.post2/numpy/core/src/umath/test_rational.c.src +1404 -0
  163. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_object.c +5703 -0
  164. numpy-1.10.0.post2/numpy/core/src/umath/ufunc_type_resolution.c +2159 -0
  165. numpy-1.10.0.post2/numpy/core/src/umath/umath_tests.c.src +392 -0
  166. numpy-1.10.0.post2/numpy/core/src/umath/umathmodule.c +443 -0
  167. numpy-1.10.0.post2/numpy/core/tests/test_abc.py +47 -0
  168. numpy-1.10.0.post2/numpy/core/tests/test_api.py +515 -0
  169. numpy-1.10.0.post2/numpy/core/tests/test_arrayprint.py +171 -0
  170. numpy-1.10.0.post2/numpy/core/tests/test_datetime.py +1820 -0
  171. numpy-1.10.0.post2/numpy/core/tests/test_defchararray.py +703 -0
  172. numpy-1.10.0.post2/numpy/core/tests/test_deprecations.py +619 -0
  173. numpy-1.10.0.post2/numpy/core/tests/test_dtype.py +578 -0
  174. numpy-1.10.0.post2/numpy/core/tests/test_einsum.py +627 -0
  175. numpy-1.10.0.post2/numpy/core/tests/test_errstate.py +52 -0
  176. numpy-1.10.0.post2/numpy/core/tests/test_function_base.py +142 -0
  177. numpy-1.10.0.post2/numpy/core/tests/test_getlimits.py +77 -0
  178. numpy-1.10.0.post2/numpy/core/tests/test_half.py +436 -0
  179. numpy-1.10.0.post2/numpy/core/tests/test_indexerrors.py +126 -0
  180. numpy-1.10.0.post2/numpy/core/tests/test_indexing.py +1047 -0
  181. numpy-1.10.0.post2/numpy/core/tests/test_item_selection.py +73 -0
  182. numpy-1.10.0.post2/numpy/core/tests/test_machar.py +29 -0
  183. numpy-1.10.0.post2/numpy/core/tests/test_memmap.py +130 -0
  184. numpy-1.10.0.post2/numpy/core/tests/test_multiarray.py +5924 -0
  185. numpy-1.10.0.post2/numpy/core/tests/test_multiarray_assignment.py +84 -0
  186. numpy-1.10.0.post2/numpy/core/tests/test_nditer.py +2638 -0
  187. numpy-1.10.0.post2/numpy/core/tests/test_numeric.py +2204 -0
  188. numpy-1.10.0.post2/numpy/core/tests/test_numerictypes.py +382 -0
  189. numpy-1.10.0.post2/numpy/core/tests/test_print.py +248 -0
  190. numpy-1.10.0.post2/numpy/core/tests/test_records.py +299 -0
  191. numpy-1.10.0.post2/numpy/core/tests/test_regression.py +2177 -0
  192. numpy-1.10.0.post2/numpy/core/tests/test_scalarinherit.py +41 -0
  193. numpy-1.10.0.post2/numpy/core/tests/test_scalarmath.py +316 -0
  194. numpy-1.10.0.post2/numpy/core/tests/test_shape_base.py +319 -0
  195. numpy-1.10.0.post2/numpy/core/tests/test_ufunc.py +1227 -0
  196. numpy-1.10.0.post2/numpy/core/tests/test_umath.py +1933 -0
  197. numpy-1.10.0.post2/numpy/core/tests/test_umath_complex.py +538 -0
  198. numpy-1.10.0.post2/numpy/core/tests/test_unicode.py +360 -0
  199. numpy-1.10.0.post2/numpy/distutils/__init__.py +23 -0
  200. numpy-1.10.0.post2/numpy/distutils/ccompiler.py +690 -0
  201. numpy-1.10.0.post2/numpy/distutils/command/autodist.py +94 -0
  202. numpy-1.10.0.post2/numpy/distutils/command/build.py +47 -0
  203. numpy-1.10.0.post2/numpy/distutils/command/build_clib.py +295 -0
  204. numpy-1.10.0.post2/numpy/distutils/command/build_ext.py +522 -0
  205. numpy-1.10.0.post2/numpy/distutils/command/config.py +437 -0
  206. numpy-1.10.0.post2/numpy/distutils/exec_command.py +651 -0
  207. numpy-1.10.0.post2/numpy/distutils/fcompiler/compaq.py +128 -0
  208. numpy-1.10.0.post2/numpy/distutils/fcompiler/gnu.py +403 -0
  209. numpy-1.10.0.post2/numpy/distutils/fcompiler/intel.py +217 -0
  210. numpy-1.10.0.post2/numpy/distutils/fcompiler/pg.py +63 -0
  211. numpy-1.10.0.post2/numpy/distutils/fcompiler/sun.py +55 -0
  212. numpy-1.10.0.post2/numpy/distutils/intelccompiler.py +95 -0
  213. numpy-1.10.0.post2/numpy/distutils/lib2def.py +116 -0
  214. numpy-1.10.0.post2/numpy/distutils/mingw32ccompiler.py +599 -0
  215. numpy-1.10.0.post2/numpy/distutils/misc_util.py +2306 -0
  216. numpy-1.10.0.post2/numpy/distutils/msvc9compiler.py +23 -0
  217. numpy-1.10.0.post2/numpy/distutils/msvccompiler.py +17 -0
  218. numpy-1.10.0.post2/numpy/distutils/npy_pkg_config.py +451 -0
  219. numpy-1.10.0.post2/numpy/distutils/system_info.py +2397 -0
  220. numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +12 -0
  221. numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +11 -0
  222. numpy-1.10.0.post2/numpy/distutils/tests/gen_ext/tests/test_fib3.py +11 -0
  223. numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +13 -0
  224. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/__init__.py +1 -0
  225. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example.py +17 -0
  226. numpy-1.10.0.post2/numpy/distutils/tests/swig_ext/tests/test_example2.py +15 -0
  227. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_gnu.py +60 -0
  228. numpy-1.10.0.post2/numpy/distutils/tests/test_fcompiler_intel.py +36 -0
  229. numpy-1.10.0.post2/numpy/distutils/tests/test_misc_util.py +79 -0
  230. numpy-1.10.0.post2/numpy/distutils/tests/test_npy_pkg_config.py +102 -0
  231. numpy-1.10.0.post2/numpy/distutils/tests/test_system_info.py +209 -0
  232. numpy-1.10.0.post2/numpy/distutils/unixccompiler.py +125 -0
  233. numpy-1.10.0.post2/numpy/doc/byteswapping.py +156 -0
  234. numpy-1.10.0.post2/numpy/doc/creation.py +144 -0
  235. numpy-1.10.0.post2/numpy/doc/glossary.py +423 -0
  236. numpy-1.10.0.post2/numpy/doc/indexing.py +439 -0
  237. numpy-1.10.0.post2/numpy/doc/structured_arrays.py +290 -0
  238. numpy-1.10.0.post2/numpy/f2py/__init__.py +49 -0
  239. numpy-1.10.0.post2/numpy/f2py/__main__.py +25 -0
  240. numpy-1.10.0.post2/numpy/f2py/auxfuncs.py +858 -0
  241. numpy-1.10.0.post2/numpy/f2py/capi_maps.py +851 -0
  242. numpy-1.10.0.post2/numpy/f2py/cb_rules.py +554 -0
  243. numpy-1.10.0.post2/numpy/f2py/cfuncs.py +1261 -0
  244. numpy-1.10.0.post2/numpy/f2py/common_rules.py +150 -0
  245. numpy-1.10.0.post2/numpy/f2py/crackfortran.py +3314 -0
  246. numpy-1.10.0.post2/numpy/f2py/diagnose.py +156 -0
  247. numpy-1.10.0.post2/numpy/f2py/f2py2e.py +656 -0
  248. numpy-1.10.0.post2/numpy/f2py/f2py_testing.py +48 -0
  249. numpy-1.10.0.post2/numpy/f2py/f90mod_rules.py +272 -0
  250. numpy-1.10.0.post2/numpy/f2py/func2subr.py +299 -0
  251. numpy-1.10.0.post2/numpy/f2py/rules.py +1475 -0
  252. numpy-1.10.0.post2/numpy/f2py/setup.py +117 -0
  253. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.c +1037 -0
  254. numpy-1.10.0.post2/numpy/f2py/src/fortranobject.h +162 -0
  255. numpy-1.10.0.post2/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +223 -0
  256. numpy-1.10.0.post2/numpy/f2py/tests/test_array_from_pyobj.py +593 -0
  257. numpy-1.10.0.post2/numpy/f2py/tests/test_assumed_shape.py +35 -0
  258. numpy-1.10.0.post2/numpy/f2py/tests/test_callback.py +136 -0
  259. numpy-1.10.0.post2/numpy/f2py/tests/test_kind.py +36 -0
  260. numpy-1.10.0.post2/numpy/f2py/tests/test_mixed.py +40 -0
  261. numpy-1.10.0.post2/numpy/f2py/tests/test_regression.py +34 -0
  262. numpy-1.10.0.post2/numpy/f2py/tests/test_return_character.py +148 -0
  263. numpy-1.10.0.post2/numpy/f2py/tests/test_return_complex.py +170 -0
  264. numpy-1.10.0.post2/numpy/f2py/tests/test_return_integer.py +180 -0
  265. numpy-1.10.0.post2/numpy/f2py/tests/test_return_logical.py +189 -0
  266. numpy-1.10.0.post2/numpy/f2py/tests/test_return_real.py +206 -0
  267. numpy-1.10.0.post2/numpy/f2py/tests/test_size.py +44 -0
  268. numpy-1.10.0.post2/numpy/f2py/tests/util.py +367 -0
  269. numpy-1.10.0.post2/numpy/f2py/use_rules.py +115 -0
  270. numpy-1.10.0.post2/numpy/fft/fftpack.c +1501 -0
  271. numpy-1.10.0.post2/numpy/fft/fftpack.h +28 -0
  272. numpy-1.10.0.post2/numpy/fft/fftpack.py +1241 -0
  273. numpy-1.10.0.post2/numpy/fft/fftpack_litemodule.c +363 -0
  274. numpy-1.10.0.post2/numpy/fft/info.py +187 -0
  275. numpy-1.10.0.post2/numpy/fft/setup.py +19 -0
  276. numpy-1.10.0.post2/numpy/fft/tests/test_fftpack.py +166 -0
  277. numpy-1.10.0.post2/numpy/fft/tests/test_helper.py +78 -0
  278. numpy-1.10.0.post2/numpy/lib/_iotools.py +917 -0
  279. numpy-1.10.0.post2/numpy/lib/arraypad.py +1497 -0
  280. numpy-1.10.0.post2/numpy/lib/arraysetops.py +480 -0
  281. numpy-1.10.0.post2/numpy/lib/arrayterator.py +226 -0
  282. numpy-1.10.0.post2/numpy/lib/financial.py +737 -0
  283. numpy-1.10.0.post2/numpy/lib/format.py +814 -0
  284. numpy-1.10.0.post2/numpy/lib/function_base.py +4150 -0
  285. numpy-1.10.0.post2/numpy/lib/index_tricks.py +874 -0
  286. numpy-1.10.0.post2/numpy/lib/info.py +152 -0
  287. numpy-1.10.0.post2/numpy/lib/nanfunctions.py +1237 -0
  288. numpy-1.10.0.post2/numpy/lib/npyio.py +1992 -0
  289. numpy-1.10.0.post2/numpy/lib/polynomial.py +1277 -0
  290. numpy-1.10.0.post2/numpy/lib/recfunctions.py +1003 -0
  291. numpy-1.10.0.post2/numpy/lib/setup.py +12 -0
  292. numpy-1.10.0.post2/numpy/lib/shape_base.py +872 -0
  293. numpy-1.10.0.post2/numpy/lib/stride_tricks.py +200 -0
  294. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npy +0 -0
  295. numpy-1.10.0.post2/numpy/lib/tests/data/py2-objarr.npz +0 -0
  296. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npy +0 -0
  297. numpy-1.10.0.post2/numpy/lib/tests/data/py3-objarr.npz +0 -0
  298. numpy-1.10.0.post2/numpy/lib/tests/test__iotools.py +348 -0
  299. numpy-1.10.0.post2/numpy/lib/tests/test__version.py +70 -0
  300. numpy-1.10.0.post2/numpy/lib/tests/test_arraypad.py +1047 -0
  301. numpy-1.10.0.post2/numpy/lib/tests/test_arraysetops.py +309 -0
  302. numpy-1.10.0.post2/numpy/lib/tests/test_financial.py +163 -0
  303. numpy-1.10.0.post2/numpy/lib/tests/test_format.py +841 -0
  304. numpy-1.10.0.post2/numpy/lib/tests/test_function_base.py +2555 -0
  305. numpy-1.10.0.post2/numpy/lib/tests/test_index_tricks.py +326 -0
  306. numpy-1.10.0.post2/numpy/lib/tests/test_io.py +1916 -0
  307. numpy-1.10.0.post2/numpy/lib/tests/test_nanfunctions.py +707 -0
  308. numpy-1.10.0.post2/numpy/lib/tests/test_packbits.py +26 -0
  309. numpy-1.10.0.post2/numpy/lib/tests/test_polynomial.py +188 -0
  310. numpy-1.10.0.post2/numpy/lib/tests/test_recfunctions.py +734 -0
  311. numpy-1.10.0.post2/numpy/lib/tests/test_shape_base.py +386 -0
  312. numpy-1.10.0.post2/numpy/lib/tests/test_stride_tricks.py +405 -0
  313. numpy-1.10.0.post2/numpy/lib/tests/test_twodim_base.py +535 -0
  314. numpy-1.10.0.post2/numpy/lib/tests/test_type_check.py +332 -0
  315. numpy-1.10.0.post2/numpy/lib/twodim_base.py +1007 -0
  316. numpy-1.10.0.post2/numpy/lib/type_check.py +596 -0
  317. numpy-1.10.0.post2/numpy/lib/utils.py +1122 -0
  318. numpy-1.10.0.post2/numpy/linalg/lapack_lite/python_xerbla.c +46 -0
  319. numpy-1.10.0.post2/numpy/linalg/lapack_litemodule.c +358 -0
  320. numpy-1.10.0.post2/numpy/linalg/linalg.py +2406 -0
  321. numpy-1.10.0.post2/numpy/linalg/tests/test_build.py +59 -0
  322. numpy-1.10.0.post2/numpy/linalg/tests/test_linalg.py +1351 -0
  323. numpy-1.10.0.post2/numpy/linalg/tests/test_regression.py +95 -0
  324. numpy-1.10.0.post2/numpy/linalg/umath_linalg.c.src +3236 -0
  325. numpy-1.10.0.post2/numpy/ma/__init__.py +56 -0
  326. numpy-1.10.0.post2/numpy/ma/bench.py +131 -0
  327. numpy-1.10.0.post2/numpy/ma/core.py +7608 -0
  328. numpy-1.10.0.post2/numpy/ma/extras.py +1953 -0
  329. numpy-1.10.0.post2/numpy/ma/mrecords.py +796 -0
  330. numpy-1.10.0.post2/numpy/ma/setup.py +13 -0
  331. numpy-1.10.0.post2/numpy/ma/tests/test_core.py +4100 -0
  332. numpy-1.10.0.post2/numpy/ma/tests/test_extras.py +1132 -0
  333. numpy-1.10.0.post2/numpy/ma/tests/test_mrecords.py +520 -0
  334. numpy-1.10.0.post2/numpy/ma/tests/test_old_ma.py +879 -0
  335. numpy-1.10.0.post2/numpy/ma/tests/test_regression.py +80 -0
  336. numpy-1.10.0.post2/numpy/ma/tests/test_subclassing.py +338 -0
  337. numpy-1.10.0.post2/numpy/ma/testutils.py +289 -0
  338. numpy-1.10.0.post2/numpy/ma/timer_comparison.py +440 -0
  339. numpy-1.10.0.post2/numpy/matlib.py +358 -0
  340. numpy-1.10.0.post2/numpy/matrixlib/defmatrix.py +1232 -0
  341. numpy-1.10.0.post2/numpy/matrixlib/tests/test_defmatrix.py +449 -0
  342. numpy-1.10.0.post2/numpy/matrixlib/tests/test_multiarray.py +23 -0
  343. numpy-1.10.0.post2/numpy/matrixlib/tests/test_numeric.py +23 -0
  344. numpy-1.10.0.post2/numpy/matrixlib/tests/test_regression.py +37 -0
  345. numpy-1.10.0.post2/numpy/polynomial/_polybase.py +962 -0
  346. numpy-1.10.0.post2/numpy/polynomial/chebyshev.py +2056 -0
  347. numpy-1.10.0.post2/numpy/polynomial/hermite.py +1831 -0
  348. numpy-1.10.0.post2/numpy/polynomial/hermite_e.py +1828 -0
  349. numpy-1.10.0.post2/numpy/polynomial/laguerre.py +1780 -0
  350. numpy-1.10.0.post2/numpy/polynomial/legendre.py +1808 -0
  351. numpy-1.10.0.post2/numpy/polynomial/polyutils.py +403 -0
  352. numpy-1.10.0.post2/numpy/random/mtrand/distributions.c +912 -0
  353. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.c +34805 -0
  354. numpy-1.10.0.post2/numpy/random/mtrand/mtrand.pyx +4766 -0
  355. numpy-1.10.0.post2/numpy/random/setup.py +61 -0
  356. numpy-1.10.0.post2/numpy/random/tests/test_random.py +723 -0
  357. numpy-1.10.0.post2/numpy/random/tests/test_regression.py +117 -0
  358. numpy-1.10.0.post2/numpy/setup.py +29 -0
  359. numpy-1.10.0.post2/numpy/testing/__init__.py +15 -0
  360. numpy-1.10.0.post2/numpy/testing/decorators.py +271 -0
  361. numpy-1.10.0.post2/numpy/testing/noseclasses.py +353 -0
  362. numpy-1.10.0.post2/numpy/testing/nosetester.py +511 -0
  363. numpy-1.10.0.post2/numpy/testing/print_coercion_tables.py +91 -0
  364. numpy-1.10.0.post2/numpy/testing/setup.py +20 -0
  365. numpy-1.10.0.post2/numpy/testing/tests/test_decorators.py +182 -0
  366. numpy-1.10.0.post2/numpy/testing/tests/test_utils.py +781 -0
  367. numpy-1.10.0.post2/numpy/testing/utils.py +1831 -0
  368. numpy-1.10.0.post2/numpy/tests/test_ctypeslib.py +106 -0
  369. numpy-1.10.0.post2/numpy/tests/test_matlib.py +55 -0
  370. numpy-1.10.0.post2/numpy/tests/test_scripts.py +69 -0
  371. numpy-1.10.0.post2/numpy/version.py +10 -0
  372. numpy-1.10.0.post2/setup.py +260 -0
  373. numpy-1.10.0.post2/site.cfg.example +193 -0
  374. numpy-1.10.0.post2/tmp.txt +789 -0
  375. numpy-1.10.0.post2/tools/swig/README +145 -0
  376. numpy-1.10.0.post2/tools/swig/numpy.i +3161 -0
  377. numpy-1.10.0.post2/tools/swig/test/Array.i +135 -0
  378. numpy-1.10.0.post2/tools/swig/test/ArrayZ.cxx +131 -0
  379. numpy-1.10.0.post2/tools/swig/test/ArrayZ.h +56 -0
  380. numpy-1.10.0.post2/tools/swig/test/Flat.cxx +36 -0
  381. numpy-1.10.0.post2/tools/swig/test/Flat.h +34 -0
  382. numpy-1.10.0.post2/tools/swig/test/Flat.i +36 -0
  383. numpy-1.10.0.post2/tools/swig/test/Makefile +37 -0
  384. numpy-1.10.0.post2/tools/swig/test/setup.py +71 -0
  385. numpy-1.10.0.post2/tools/swig/test/testArray.py +385 -0
  386. numpy-1.10.0.post2/tools/swig/test/testFarray.py +159 -0
  387. numpy-1.10.0.post2/tools/swig/test/testFlat.py +200 -0
  388. numpy-1.10.0.post2/tools/swig/test/testFortran.py +173 -0
  389. numpy-1.10.0.post2/tools/swig/test/testMatrix.py +362 -0
  390. numpy-1.10.0.post2/tools/swig/test/testSuperTensor.py +388 -0
  391. numpy-1.10.0.post2/tools/swig/test/testTensor.py +402 -0
  392. numpy-1.10.0.post2/tools/swig/test/testVector.py +381 -0
  393. numpy-1.9.2/INSTALL.txt +0 -138
  394. numpy-1.9.2/LICENSE.txt +0 -30
  395. numpy-1.9.2/MANIFEST.in +0 -26
  396. numpy-1.9.2/PKG-INFO +0 -39
  397. numpy-1.9.2/doc/scipy-sphinx-theme/.git +0 -1
  398. numpy-1.9.2/doc/source/conf.py +0 -331
  399. numpy-1.9.2/doc/source/dev/gitwash/branch_list.png +0 -0
  400. numpy-1.9.2/doc/source/dev/gitwash/branch_list_compare.png +0 -0
  401. numpy-1.9.2/doc/source/dev/gitwash/development_workflow.rst +0 -568
  402. numpy-1.9.2/doc/source/dev/gitwash/git_links.inc +0 -88
  403. numpy-1.9.2/doc/source/dev/gitwash/index.rst +0 -14
  404. numpy-1.9.2/doc/source/dev/index.rst +0 -10
  405. numpy-1.9.2/doc/source/reference/arrays.classes.rst +0 -427
  406. numpy-1.9.2/doc/source/reference/arrays.dtypes.rst +0 -534
  407. numpy-1.9.2/doc/source/reference/arrays.indexing.rst +0 -550
  408. numpy-1.9.2/doc/source/reference/arrays.interface.rst +0 -336
  409. numpy-1.9.2/doc/source/reference/arrays.ndarray.rst +0 -609
  410. numpy-1.9.2/doc/source/reference/arrays.scalars.rst +0 -291
  411. numpy-1.9.2/doc/source/reference/c-api.array.rst +0 -3362
  412. numpy-1.9.2/doc/source/reference/c-api.config.rst +0 -103
  413. numpy-1.9.2/doc/source/reference/c-api.coremath.rst +0 -420
  414. numpy-1.9.2/doc/source/reference/c-api.dtype.rst +0 -376
  415. numpy-1.9.2/doc/source/reference/c-api.generalized-ufuncs.rst +0 -171
  416. numpy-1.9.2/doc/source/reference/c-api.iterator.rst +0 -1298
  417. numpy-1.9.2/doc/source/reference/c-api.types-and-structures.rst +0 -1204
  418. numpy-1.9.2/doc/source/reference/c-api.ufunc.rst +0 -399
  419. numpy-1.9.2/doc/source/reference/index.rst +0 -44
  420. numpy-1.9.2/doc/source/reference/internals.code-explanations.rst +0 -666
  421. numpy-1.9.2/doc/source/reference/routines.array-manipulation.rst +0 -113
  422. numpy-1.9.2/doc/source/reference/routines.io.rst +0 -74
  423. numpy-1.9.2/doc/source/reference/routines.linalg.rst +0 -88
  424. numpy-1.9.2/doc/source/reference/routines.ma.rst +0 -405
  425. numpy-1.9.2/doc/source/reference/routines.sort.rst +0 -42
  426. numpy-1.9.2/doc/source/reference/routines.statistics.rst +0 -55
  427. numpy-1.9.2/doc/source/reference/swig.interface-file.rst +0 -1055
  428. numpy-1.9.2/doc/source/reference/swig.testing.rst +0 -166
  429. numpy-1.9.2/doc/source/reference/ufuncs.rst +0 -651
  430. numpy-1.9.2/doc/source/release.rst +0 -19
  431. numpy-1.9.2/doc/source/user/basics.io.genfromtxt.rst +0 -531
  432. numpy-1.9.2/doc/source/user/basics.rec.rst +0 -7
  433. numpy-1.9.2/doc/source/user/c-info.beyond-basics.rst +0 -560
  434. numpy-1.9.2/doc/source/user/c-info.how-to-extend.rst +0 -642
  435. numpy-1.9.2/doc/source/user/c-info.python-as-glue.rst +0 -1528
  436. numpy-1.9.2/doc/source/user/c-info.ufunc-tutorial.rst +0 -1211
  437. numpy-1.9.2/doc/source/user/install.rst +0 -180
  438. numpy-1.9.2/doc/sphinxext/.git +0 -1
  439. numpy-1.9.2/numpy/__init__.py +0 -216
  440. numpy-1.9.2/numpy/_import_tools.py +0 -348
  441. numpy-1.9.2/numpy/add_newdocs.py +0 -7518
  442. numpy-1.9.2/numpy/compat/_inspect.py +0 -221
  443. numpy-1.9.2/numpy/compat/py3k.py +0 -89
  444. numpy-1.9.2/numpy/compat/setup.py +0 -12
  445. numpy-1.9.2/numpy/core/__init__.py +0 -78
  446. numpy-1.9.2/numpy/core/_internal.py +0 -570
  447. numpy-1.9.2/numpy/core/_methods.py +0 -134
  448. numpy-1.9.2/numpy/core/arrayprint.py +0 -752
  449. numpy-1.9.2/numpy/core/blasdot/_dotblas.c +0 -1255
  450. numpy-1.9.2/numpy/core/blasdot/apple_sgemv_patch.c +0 -216
  451. numpy-1.9.2/numpy/core/blasdot/cblas.h +0 -578
  452. numpy-1.9.2/numpy/core/code_generators/cversions.txt +0 -31
  453. numpy-1.9.2/numpy/core/code_generators/generate_ufunc_api.py +0 -219
  454. numpy-1.9.2/numpy/core/code_generators/generate_umath.py +0 -972
  455. numpy-1.9.2/numpy/core/code_generators/numpy_api.py +0 -412
  456. numpy-1.9.2/numpy/core/code_generators/ufunc_docstrings.py +0 -3419
  457. numpy-1.9.2/numpy/core/defchararray.py +0 -2687
  458. numpy-1.9.2/numpy/core/fromnumeric.py +0 -2938
  459. numpy-1.9.2/numpy/core/function_base.py +0 -190
  460. numpy-1.9.2/numpy/core/getlimits.py +0 -306
  461. numpy-1.9.2/numpy/core/include/numpy/fenv/fenv.c +0 -38
  462. numpy-1.9.2/numpy/core/include/numpy/fenv/fenv.h +0 -224
  463. numpy-1.9.2/numpy/core/include/numpy/ndarrayobject.h +0 -237
  464. numpy-1.9.2/numpy/core/include/numpy/ndarraytypes.h +0 -1820
  465. numpy-1.9.2/numpy/core/include/numpy/npy_3kcompat.h +0 -506
  466. numpy-1.9.2/numpy/core/include/numpy/npy_common.h +0 -1038
  467. numpy-1.9.2/numpy/core/include/numpy/npy_cpu.h +0 -122
  468. numpy-1.9.2/numpy/core/include/numpy/npy_endian.h +0 -49
  469. numpy-1.9.2/numpy/core/include/numpy/npy_math.h +0 -479
  470. numpy-1.9.2/numpy/core/include/numpy/numpyconfig.h +0 -35
  471. numpy-1.9.2/numpy/core/machar.py +0 -338
  472. numpy-1.9.2/numpy/core/memmap.py +0 -308
  473. numpy-1.9.2/numpy/core/numeric.py +0 -2842
  474. numpy-1.9.2/numpy/core/numerictypes.py +0 -1042
  475. numpy-1.9.2/numpy/core/records.py +0 -804
  476. numpy-1.9.2/numpy/core/setup.py +0 -1016
  477. numpy-1.9.2/numpy/core/setup_common.py +0 -321
  478. numpy-1.9.2/numpy/core/shape_base.py +0 -277
  479. numpy-1.9.2/numpy/core/src/multiarray/alloc.c +0 -241
  480. numpy-1.9.2/numpy/core/src/multiarray/arrayobject.c +0 -1791
  481. numpy-1.9.2/numpy/core/src/multiarray/arraytypes.c.src +0 -4372
  482. numpy-1.9.2/numpy/core/src/multiarray/arraytypes.h +0 -13
  483. numpy-1.9.2/numpy/core/src/multiarray/buffer.c +0 -954
  484. numpy-1.9.2/numpy/core/src/multiarray/calculation.c +0 -1229
  485. numpy-1.9.2/numpy/core/src/multiarray/common.c +0 -798
  486. numpy-1.9.2/numpy/core/src/multiarray/common.h +0 -328
  487. numpy-1.9.2/numpy/core/src/multiarray/conversion_utils.c +0 -1240
  488. numpy-1.9.2/numpy/core/src/multiarray/convert.c +0 -589
  489. numpy-1.9.2/numpy/core/src/multiarray/convert_datatype.c +0 -2199
  490. numpy-1.9.2/numpy/core/src/multiarray/ctors.c +0 -3785
  491. numpy-1.9.2/numpy/core/src/multiarray/datetime.c +0 -3823
  492. numpy-1.9.2/numpy/core/src/multiarray/datetime_busday.c +0 -1322
  493. numpy-1.9.2/numpy/core/src/multiarray/datetime_busdaycal.c +0 -552
  494. numpy-1.9.2/numpy/core/src/multiarray/datetime_strings.c +0 -1772
  495. numpy-1.9.2/numpy/core/src/multiarray/descriptor.c +0 -3658
  496. numpy-1.9.2/numpy/core/src/multiarray/dtype_transfer.c +0 -4232
  497. numpy-1.9.2/numpy/core/src/multiarray/einsum.c.src +0 -3013
  498. numpy-1.9.2/numpy/core/src/multiarray/getset.c +0 -984
  499. numpy-1.9.2/numpy/core/src/multiarray/hashdescr.c +0 -319
  500. numpy-1.9.2/numpy/core/src/multiarray/item_selection.c +0 -2711
  501. numpy-1.9.2/numpy/core/src/multiarray/iterators.c +0 -2160
  502. numpy-1.9.2/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +0 -1767
  503. numpy-1.9.2/numpy/core/src/multiarray/mapping.c +0 -3316
  504. numpy-1.9.2/numpy/core/src/multiarray/mapping.h +0 -73
  505. numpy-1.9.2/numpy/core/src/multiarray/methods.c +0 -2497
  506. numpy-1.9.2/numpy/core/src/multiarray/multiarray_tests.c.src +0 -977
  507. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule.c +0 -4202
  508. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule.h +0 -4
  509. numpy-1.9.2/numpy/core/src/multiarray/multiarraymodule_onefile.c +0 -58
  510. numpy-1.9.2/numpy/core/src/multiarray/nditer_api.c +0 -2809
  511. numpy-1.9.2/numpy/core/src/multiarray/nditer_constr.c +0 -3159
  512. numpy-1.9.2/numpy/core/src/multiarray/nditer_pywrap.c +0 -2492
  513. numpy-1.9.2/numpy/core/src/multiarray/number.c +0 -1057
  514. numpy-1.9.2/numpy/core/src/multiarray/number.h +0 -76
  515. numpy-1.9.2/numpy/core/src/multiarray/numpymemoryview.c +0 -309
  516. numpy-1.9.2/numpy/core/src/multiarray/numpyos.c +0 -683
  517. numpy-1.9.2/numpy/core/src/multiarray/scalarapi.c +0 -861
  518. numpy-1.9.2/numpy/core/src/multiarray/scalartypes.c.src +0 -4270
  519. numpy-1.9.2/numpy/core/src/multiarray/scalartypes.h +0 -52
  520. numpy-1.9.2/numpy/core/src/multiarray/shape.c +0 -1141
  521. numpy-1.9.2/numpy/core/src/multiarray/ucsnarrow.c +0 -173
  522. numpy-1.9.2/numpy/core/src/npymath/ieee754.c.src +0 -814
  523. numpy-1.9.2/numpy/core/src/npymath/npy_math.c.src +0 -527
  524. numpy-1.9.2/numpy/core/src/npymath/npy_math_complex.c.src +0 -291
  525. numpy-1.9.2/numpy/core/src/npymath/npy_math_private.h +0 -539
  526. numpy-1.9.2/numpy/core/src/npysort/heapsort.c.src +0 -341
  527. numpy-1.9.2/numpy/core/src/npysort/mergesort.c.src +0 -428
  528. numpy-1.9.2/numpy/core/src/npysort/npysort_common.h +0 -367
  529. numpy-1.9.2/numpy/core/src/npysort/quicksort.c.src +0 -363
  530. numpy-1.9.2/numpy/core/src/npysort/selection.c.src +0 -474
  531. numpy-1.9.2/numpy/core/src/private/npy_config.h +0 -44
  532. numpy-1.9.2/numpy/core/src/private/npy_partition.h.src +0 -138
  533. numpy-1.9.2/numpy/core/src/private/npy_sort.h +0 -194
  534. numpy-1.9.2/numpy/core/src/private/scalarmathmodule.h.src +0 -42
  535. numpy-1.9.2/numpy/core/src/private/ufunc_override.h +0 -384
  536. numpy-1.9.2/numpy/core/src/scalarmathmodule.c.src +0 -1980
  537. numpy-1.9.2/numpy/core/src/umath/funcs.inc.src +0 -715
  538. numpy-1.9.2/numpy/core/src/umath/loops.c.src +0 -2654
  539. numpy-1.9.2/numpy/core/src/umath/loops.h.src +0 -501
  540. numpy-1.9.2/numpy/core/src/umath/operand_flag_tests.c.src +0 -105
  541. numpy-1.9.2/numpy/core/src/umath/simd.inc.src +0 -881
  542. numpy-1.9.2/numpy/core/src/umath/test_rational.c.src +0 -1404
  543. numpy-1.9.2/numpy/core/src/umath/ufunc_object.c +0 -5520
  544. numpy-1.9.2/numpy/core/src/umath/ufunc_type_resolution.c +0 -2164
  545. numpy-1.9.2/numpy/core/src/umath/umath_tests.c.src +0 -341
  546. numpy-1.9.2/numpy/core/src/umath/umathmodule.c +0 -561
  547. numpy-1.9.2/numpy/core/src/umath/umathmodule_onefile.c +0 -6
  548. numpy-1.9.2/numpy/core/tests/test_abc.py +0 -45
  549. numpy-1.9.2/numpy/core/tests/test_api.py +0 -514
  550. numpy-1.9.2/numpy/core/tests/test_arrayprint.py +0 -167
  551. numpy-1.9.2/numpy/core/tests/test_blasdot.py +0 -249
  552. numpy-1.9.2/numpy/core/tests/test_datetime.py +0 -1781
  553. numpy-1.9.2/numpy/core/tests/test_defchararray.py +0 -642
  554. numpy-1.9.2/numpy/core/tests/test_deprecations.py +0 -512
  555. numpy-1.9.2/numpy/core/tests/test_dtype.py +0 -542
  556. numpy-1.9.2/numpy/core/tests/test_einsum.py +0 -583
  557. numpy-1.9.2/numpy/core/tests/test_errstate.py +0 -51
  558. numpy-1.9.2/numpy/core/tests/test_function_base.py +0 -111
  559. numpy-1.9.2/numpy/core/tests/test_getlimits.py +0 -86
  560. numpy-1.9.2/numpy/core/tests/test_half.py +0 -439
  561. numpy-1.9.2/numpy/core/tests/test_indexerrors.py +0 -127
  562. numpy-1.9.2/numpy/core/tests/test_indexing.py +0 -1014
  563. numpy-1.9.2/numpy/core/tests/test_item_selection.py +0 -70
  564. numpy-1.9.2/numpy/core/tests/test_machar.py +0 -30
  565. numpy-1.9.2/numpy/core/tests/test_memmap.py +0 -127
  566. numpy-1.9.2/numpy/core/tests/test_multiarray.py +0 -4645
  567. numpy-1.9.2/numpy/core/tests/test_multiarray_assignment.py +0 -80
  568. numpy-1.9.2/numpy/core/tests/test_nditer.py +0 -2630
  569. numpy-1.9.2/numpy/core/tests/test_numeric.py +0 -2117
  570. numpy-1.9.2/numpy/core/tests/test_numerictypes.py +0 -377
  571. numpy-1.9.2/numpy/core/tests/test_print.py +0 -245
  572. numpy-1.9.2/numpy/core/tests/test_records.py +0 -185
  573. numpy-1.9.2/numpy/core/tests/test_regression.py +0 -2108
  574. numpy-1.9.2/numpy/core/tests/test_scalarinherit.py +0 -34
  575. numpy-1.9.2/numpy/core/tests/test_scalarmath.py +0 -275
  576. numpy-1.9.2/numpy/core/tests/test_shape_base.py +0 -250
  577. numpy-1.9.2/numpy/core/tests/test_ufunc.py +0 -1153
  578. numpy-1.9.2/numpy/core/tests/test_umath.py +0 -1695
  579. numpy-1.9.2/numpy/core/tests/test_umath_complex.py +0 -537
  580. numpy-1.9.2/numpy/core/tests/test_unicode.py +0 -357
  581. numpy-1.9.2/numpy/distutils/__init__.py +0 -39
  582. numpy-1.9.2/numpy/distutils/ccompiler.py +0 -656
  583. numpy-1.9.2/numpy/distutils/command/autodist.py +0 -43
  584. numpy-1.9.2/numpy/distutils/command/build.py +0 -39
  585. numpy-1.9.2/numpy/distutils/command/build_clib.py +0 -284
  586. numpy-1.9.2/numpy/distutils/command/build_ext.py +0 -503
  587. numpy-1.9.2/numpy/distutils/command/config.py +0 -476
  588. numpy-1.9.2/numpy/distutils/exec_command.py +0 -618
  589. numpy-1.9.2/numpy/distutils/fcompiler/compaq.py +0 -128
  590. numpy-1.9.2/numpy/distutils/fcompiler/gnu.py +0 -390
  591. numpy-1.9.2/numpy/distutils/fcompiler/intel.py +0 -205
  592. numpy-1.9.2/numpy/distutils/fcompiler/pg.py +0 -60
  593. numpy-1.9.2/numpy/distutils/fcompiler/sun.py +0 -52
  594. numpy-1.9.2/numpy/distutils/intelccompiler.py +0 -45
  595. numpy-1.9.2/numpy/distutils/lib2def.py +0 -116
  596. numpy-1.9.2/numpy/distutils/mingw32ccompiler.py +0 -582
  597. numpy-1.9.2/numpy/distutils/misc_util.py +0 -2271
  598. numpy-1.9.2/numpy/distutils/npy_pkg_config.py +0 -464
  599. numpy-1.9.2/numpy/distutils/system_info.py +0 -2319
  600. numpy-1.9.2/numpy/distutils/tests/f2py_ext/tests/test_fib2.py +0 -13
  601. numpy-1.9.2/numpy/distutils/tests/f2py_f90_ext/tests/test_foo.py +0 -12
  602. numpy-1.9.2/numpy/distutils/tests/gen_ext/tests/test_fib3.py +0 -12
  603. numpy-1.9.2/numpy/distutils/tests/pyrex_ext/tests/test_primes.py +0 -14
  604. numpy-1.9.2/numpy/distutils/tests/swig_ext/tests/test_example.py +0 -18
  605. numpy-1.9.2/numpy/distutils/tests/swig_ext/tests/test_example2.py +0 -16
  606. numpy-1.9.2/numpy/distutils/tests/test_fcompiler_gnu.py +0 -53
  607. numpy-1.9.2/numpy/distutils/tests/test_fcompiler_intel.py +0 -36
  608. numpy-1.9.2/numpy/distutils/tests/test_misc_util.py +0 -75
  609. numpy-1.9.2/numpy/distutils/tests/test_npy_pkg_config.py +0 -98
  610. numpy-1.9.2/numpy/distutils/unixccompiler.py +0 -113
  611. numpy-1.9.2/numpy/doc/byteswapping.py +0 -147
  612. numpy-1.9.2/numpy/doc/creation.py +0 -144
  613. numpy-1.9.2/numpy/doc/glossary.py +0 -418
  614. numpy-1.9.2/numpy/doc/indexing.py +0 -437
  615. numpy-1.9.2/numpy/doc/structured_arrays.py +0 -223
  616. numpy-1.9.2/numpy/f2py/__init__.py +0 -49
  617. numpy-1.9.2/numpy/f2py/auxfuncs.py +0 -711
  618. numpy-1.9.2/numpy/f2py/capi_maps.py +0 -773
  619. numpy-1.9.2/numpy/f2py/cb_rules.py +0 -539
  620. numpy-1.9.2/numpy/f2py/cfuncs.py +0 -1224
  621. numpy-1.9.2/numpy/f2py/common_rules.py +0 -132
  622. numpy-1.9.2/numpy/f2py/crackfortran.py +0 -2870
  623. numpy-1.9.2/numpy/f2py/diagnose.py +0 -149
  624. numpy-1.9.2/numpy/f2py/f2py2e.py +0 -598
  625. numpy-1.9.2/numpy/f2py/f2py_testing.py +0 -46
  626. numpy-1.9.2/numpy/f2py/f90mod_rules.py +0 -246
  627. numpy-1.9.2/numpy/f2py/func2subr.py +0 -291
  628. numpy-1.9.2/numpy/f2py/rules.py +0 -1448
  629. numpy-1.9.2/numpy/f2py/setup.py +0 -129
  630. numpy-1.9.2/numpy/f2py/src/fortranobject.c +0 -972
  631. numpy-1.9.2/numpy/f2py/src/fortranobject.h +0 -162
  632. numpy-1.9.2/numpy/f2py/tests/src/array_from_pyobj/wrapmodule.c +0 -223
  633. numpy-1.9.2/numpy/f2py/tests/test_array_from_pyobj.py +0 -559
  634. numpy-1.9.2/numpy/f2py/tests/test_assumed_shape.py +0 -37
  635. numpy-1.9.2/numpy/f2py/tests/test_callback.py +0 -132
  636. numpy-1.9.2/numpy/f2py/tests/test_kind.py +0 -36
  637. numpy-1.9.2/numpy/f2py/tests/test_mixed.py +0 -41
  638. numpy-1.9.2/numpy/f2py/tests/test_regression.py +0 -32
  639. numpy-1.9.2/numpy/f2py/tests/test_return_character.py +0 -142
  640. numpy-1.9.2/numpy/f2py/tests/test_return_complex.py +0 -169
  641. numpy-1.9.2/numpy/f2py/tests/test_return_integer.py +0 -178
  642. numpy-1.9.2/numpy/f2py/tests/test_return_logical.py +0 -187
  643. numpy-1.9.2/numpy/f2py/tests/test_return_real.py +0 -203
  644. numpy-1.9.2/numpy/f2py/tests/test_size.py +0 -47
  645. numpy-1.9.2/numpy/f2py/tests/util.py +0 -353
  646. numpy-1.9.2/numpy/f2py/use_rules.py +0 -109
  647. numpy-1.9.2/numpy/fft/fftpack.c +0 -1501
  648. numpy-1.9.2/numpy/fft/fftpack.h +0 -28
  649. numpy-1.9.2/numpy/fft/fftpack.py +0 -1169
  650. numpy-1.9.2/numpy/fft/fftpack_litemodule.c +0 -371
  651. numpy-1.9.2/numpy/fft/info.py +0 -179
  652. numpy-1.9.2/numpy/fft/setup.py +0 -20
  653. numpy-1.9.2/numpy/fft/tests/test_fftpack.py +0 -75
  654. numpy-1.9.2/numpy/fft/tests/test_helper.py +0 -78
  655. numpy-1.9.2/numpy/lib/_iotools.py +0 -891
  656. numpy-1.9.2/numpy/lib/arraypad.py +0 -1475
  657. numpy-1.9.2/numpy/lib/arraysetops.py +0 -464
  658. numpy-1.9.2/numpy/lib/arrayterator.py +0 -226
  659. numpy-1.9.2/numpy/lib/financial.py +0 -737
  660. numpy-1.9.2/numpy/lib/format.py +0 -771
  661. numpy-1.9.2/numpy/lib/function_base.py +0 -3884
  662. numpy-1.9.2/numpy/lib/index_tricks.py +0 -869
  663. numpy-1.9.2/numpy/lib/info.py +0 -151
  664. numpy-1.9.2/numpy/lib/nanfunctions.py +0 -1158
  665. numpy-1.9.2/numpy/lib/npyio.py +0 -1918
  666. numpy-1.9.2/numpy/lib/polynomial.py +0 -1271
  667. numpy-1.9.2/numpy/lib/recfunctions.py +0 -1003
  668. numpy-1.9.2/numpy/lib/setup.py +0 -23
  669. numpy-1.9.2/numpy/lib/shape_base.py +0 -865
  670. numpy-1.9.2/numpy/lib/src/_compiled_base.c +0 -1761
  671. numpy-1.9.2/numpy/lib/stride_tricks.py +0 -123
  672. numpy-1.9.2/numpy/lib/tests/test__iotools.py +0 -326
  673. numpy-1.9.2/numpy/lib/tests/test__version.py +0 -57
  674. numpy-1.9.2/numpy/lib/tests/test_arraypad.py +0 -560
  675. numpy-1.9.2/numpy/lib/tests/test_arraysetops.py +0 -301
  676. numpy-1.9.2/numpy/lib/tests/test_financial.py +0 -160
  677. numpy-1.9.2/numpy/lib/tests/test_format.py +0 -716
  678. numpy-1.9.2/numpy/lib/tests/test_function_base.py +0 -2145
  679. numpy-1.9.2/numpy/lib/tests/test_index_tricks.py +0 -289
  680. numpy-1.9.2/numpy/lib/tests/test_io.py +0 -1754
  681. numpy-1.9.2/numpy/lib/tests/test_nanfunctions.py +0 -774
  682. numpy-1.9.2/numpy/lib/tests/test_polynomial.py +0 -177
  683. numpy-1.9.2/numpy/lib/tests/test_recfunctions.py +0 -705
  684. numpy-1.9.2/numpy/lib/tests/test_shape_base.py +0 -368
  685. numpy-1.9.2/numpy/lib/tests/test_stride_tricks.py +0 -238
  686. numpy-1.9.2/numpy/lib/tests/test_twodim_base.py +0 -504
  687. numpy-1.9.2/numpy/lib/tests/test_type_check.py +0 -328
  688. numpy-1.9.2/numpy/lib/twodim_base.py +0 -1003
  689. numpy-1.9.2/numpy/lib/type_check.py +0 -605
  690. numpy-1.9.2/numpy/lib/utils.py +0 -1176
  691. numpy-1.9.2/numpy/linalg/lapack_lite/python_xerbla.c +0 -47
  692. numpy-1.9.2/numpy/linalg/lapack_litemodule.c +0 -362
  693. numpy-1.9.2/numpy/linalg/linalg.py +0 -2136
  694. numpy-1.9.2/numpy/linalg/tests/test_build.py +0 -53
  695. numpy-1.9.2/numpy/linalg/tests/test_linalg.py +0 -1156
  696. numpy-1.9.2/numpy/linalg/tests/test_regression.py +0 -90
  697. numpy-1.9.2/numpy/linalg/umath_linalg.c.src +0 -3210
  698. numpy-1.9.2/numpy/ma/__init__.py +0 -58
  699. numpy-1.9.2/numpy/ma/bench.py +0 -166
  700. numpy-1.9.2/numpy/ma/core.py +0 -7374
  701. numpy-1.9.2/numpy/ma/extras.py +0 -1932
  702. numpy-1.9.2/numpy/ma/mrecords.py +0 -734
  703. numpy-1.9.2/numpy/ma/setup.py +0 -20
  704. numpy-1.9.2/numpy/ma/tests/test_core.py +0 -3706
  705. numpy-1.9.2/numpy/ma/tests/test_extras.py +0 -954
  706. numpy-1.9.2/numpy/ma/tests/test_mrecords.py +0 -521
  707. numpy-1.9.2/numpy/ma/tests/test_old_ma.py +0 -869
  708. numpy-1.9.2/numpy/ma/tests/test_regression.py +0 -75
  709. numpy-1.9.2/numpy/ma/tests/test_subclassing.py +0 -236
  710. numpy-1.9.2/numpy/ma/testutils.py +0 -240
  711. numpy-1.9.2/numpy/ma/timer_comparison.py +0 -459
  712. numpy-1.9.2/numpy/matlib.py +0 -358
  713. numpy-1.9.2/numpy/matrixlib/defmatrix.py +0 -1094
  714. numpy-1.9.2/numpy/matrixlib/tests/test_defmatrix.py +0 -400
  715. numpy-1.9.2/numpy/matrixlib/tests/test_multiarray.py +0 -18
  716. numpy-1.9.2/numpy/matrixlib/tests/test_numeric.py +0 -10
  717. numpy-1.9.2/numpy/matrixlib/tests/test_regression.py +0 -34
  718. numpy-1.9.2/numpy/polynomial/_polybase.py +0 -962
  719. numpy-1.9.2/numpy/polynomial/chebyshev.py +0 -2056
  720. numpy-1.9.2/numpy/polynomial/hermite.py +0 -1789
  721. numpy-1.9.2/numpy/polynomial/hermite_e.py +0 -1786
  722. numpy-1.9.2/numpy/polynomial/laguerre.py +0 -1781
  723. numpy-1.9.2/numpy/polynomial/legendre.py +0 -1809
  724. numpy-1.9.2/numpy/polynomial/polytemplate.py +0 -927
  725. numpy-1.9.2/numpy/polynomial/polyutils.py +0 -403
  726. numpy-1.9.2/numpy/random/mtrand/distributions.c +0 -892
  727. numpy-1.9.2/numpy/random/mtrand/mtrand.c +0 -31204
  728. numpy-1.9.2/numpy/random/mtrand/mtrand.pyx +0 -4706
  729. numpy-1.9.2/numpy/random/setup.py +0 -74
  730. numpy-1.9.2/numpy/random/tests/test_random.py +0 -707
  731. numpy-1.9.2/numpy/random/tests/test_regression.py +0 -86
  732. numpy-1.9.2/numpy/setup.py +0 -27
  733. numpy-1.9.2/numpy/testing/__init__.py +0 -16
  734. numpy-1.9.2/numpy/testing/decorators.py +0 -271
  735. numpy-1.9.2/numpy/testing/noseclasses.py +0 -353
  736. numpy-1.9.2/numpy/testing/nosetester.py +0 -504
  737. numpy-1.9.2/numpy/testing/print_coercion_tables.py +0 -89
  738. numpy-1.9.2/numpy/testing/setup.py +0 -20
  739. numpy-1.9.2/numpy/testing/tests/test_decorators.py +0 -185
  740. numpy-1.9.2/numpy/testing/tests/test_utils.py +0 -558
  741. numpy-1.9.2/numpy/testing/utils.py +0 -1715
  742. numpy-1.9.2/numpy/tests/test_ctypeslib.py +0 -102
  743. numpy-1.9.2/numpy/tests/test_matlib.py +0 -55
  744. numpy-1.9.2/numpy/version.py +0 -10
  745. numpy-1.9.2/setup.py +0 -251
  746. numpy-1.9.2/site.cfg.example +0 -157
  747. numpy-1.9.2/tools/swig/README +0 -135
  748. numpy-1.9.2/tools/swig/numpy.i +0 -3085
  749. numpy-1.9.2/tools/swig/test/Array.i +0 -102
  750. numpy-1.9.2/tools/swig/test/Makefile +0 -34
  751. numpy-1.9.2/tools/swig/test/setup.py +0 -64
  752. numpy-1.9.2/tools/swig/test/testArray.py +0 -284
  753. numpy-1.9.2/tools/swig/test/testFarray.py +0 -159
  754. numpy-1.9.2/tools/swig/test/testFortran.py +0 -173
  755. numpy-1.9.2/tools/swig/test/testMatrix.py +0 -362
  756. numpy-1.9.2/tools/swig/test/testSuperTensor.py +0 -388
  757. numpy-1.9.2/tools/swig/test/testTensor.py +0 -402
  758. numpy-1.9.2/tools/swig/test/testVector.py +0 -381
  759. {numpy-1.9.2 → numpy-1.10.0.post2}/BENTO_BUILD.txt +0 -0
  760. {numpy-1.9.2 → numpy-1.10.0.post2}/COMPATIBILITY +0 -0
  761. {numpy-1.9.2 → numpy-1.10.0.post2}/DEV_README.txt +0 -0
  762. {numpy-1.9.2 → numpy-1.10.0.post2}/README.txt +0 -0
  763. {numpy-1.9.2 → numpy-1.10.0.post2}/THANKS.txt +0 -0
  764. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/Makefile +0 -0
  765. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/BUGS.txt +0 -0
  766. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/FAQ.txt +0 -0
  767. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/HISTORY.txt +0 -0
  768. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Makefile +0 -0
  769. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/OLDNEWS.txt +0 -0
  770. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/README.txt +0 -0
  771. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-1.x.txt +0 -0
  772. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-2.x.txt +0 -0
  773. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-3.x.txt +0 -0
  774. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/Release-4.x.txt +0 -0
  775. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/TESTING.txt +0 -0
  776. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/THANKS.txt +0 -0
  777. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/TODO.txt +0 -0
  778. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/apps.tex +0 -0
  779. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/bugs.tex +0 -0
  780. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/collectinput.py +0 -0
  781. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/commands.tex +0 -0
  782. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/default.css +0 -0
  783. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/docutils.conf +0 -0
  784. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/arr.f +0 -0
  785. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/bar.f +0 -0
  786. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foo.f +0 -0
  787. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar-smart.f90 +0 -0
  788. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobar.f90 +0 -0
  789. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/foobarmodule.tex +0 -0
  790. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/ex1/runme +0 -0
  791. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2py.1 +0 -0
  792. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2py2e.tex +0 -0
  793. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/README.txt +0 -0
  794. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/aerostructure.jpg +0 -0
  795. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/flow.jpg +0 -0
  796. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_html.sh +0 -0
  797. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_pdf.sh +0 -0
  798. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/mk_ps.sh +0 -0
  799. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1.f +0 -0
  800. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1mess.txt +0 -0
  801. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/exp1session.txt +0 -0
  802. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foo.pyf +0 -0
  803. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/src/examples/foom.pyf +0 -0
  804. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/f2python9-final/structure.jpg +0 -0
  805. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/fortranobject.tex +0 -0
  806. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/hello.f +0 -0
  807. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/index.html +0 -0
  808. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/intro.tex +0 -0
  809. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/array_from_pyobj.c +0 -0
  810. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/bar.c +0 -0
  811. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/foo.f +0 -0
  812. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/fortran_array_from_pyobj.txt +0 -0
  813. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/fun.pyf +0 -0
  814. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/run.pyf +0 -0
  815. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarray/transpose.txt +0 -0
  816. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/multiarrays.txt +0 -0
  817. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/notes.tex +0 -0
  818. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/oldnews.html +0 -0
  819. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/options.tex +0 -0
  820. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/pyforttest.pyf +0 -0
  821. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/pytest.py +0 -0
  822. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/python9.tex +0 -0
  823. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/signaturefile.tex +0 -0
  824. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/simple.f +0 -0
  825. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/simple_session.dat +0 -0
  826. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/using_F_compiler.txt +0 -0
  827. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/f2py/win32_notes.txt +0 -0
  828. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/postprocess.py +0 -0
  829. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.3.0-notes.rst +0 -0
  830. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.4.0-notes.rst +0 -0
  831. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.5.0-notes.rst +0 -0
  832. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.0-notes.rst +0 -0
  833. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.1-notes.rst +0 -0
  834. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.6.2-notes.rst +0 -0
  835. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.0-notes.rst +0 -0
  836. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.1-notes.rst +0 -0
  837. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.7.2-notes.rst +0 -0
  838. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.0-notes.rst +0 -0
  839. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.1-notes.rst +0 -0
  840. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.8.2-notes.rst +0 -0
  841. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.0-notes.rst +0 -0
  842. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.1-notes.rst +0 -0
  843. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/1.9.2-notes.rst +0 -0
  844. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/release/time_based_proposal.rst +0 -0
  845. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/.gitignore +0 -0
  846. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/Makefile +0 -0
  847. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/README.rst +0 -0
  848. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_static/scipyshiny_small.png +0 -0
  849. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/layout.html +0 -0
  850. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/searchbox.html +0 -0
  851. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/sourcelink.html +0 -0
  852. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/extend.css +0 -0
  853. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/pygments.css +0 -0
  854. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/scipy-central.css +0 -0
  855. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-bootstrap.css +0 -0
  856. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/css/spc-extend.css +0 -0
  857. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/all-icons.svg +0 -0
  858. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/contents.png +0 -0
  859. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/create-new-account-icon.png +0 -0
  860. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon-shrunk.png +0 -0
  861. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.png +0 -0
  862. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-icon.svg +0 -0
  863. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiniest.png +0 -0
  864. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon-tiny.png +0 -0
  865. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/external-link-list-icon.png +0 -0
  866. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ad.png +0 -0
  867. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ae.png +0 -0
  868. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-af.png +0 -0
  869. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ag.png +0 -0
  870. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ai.png +0 -0
  871. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-al.png +0 -0
  872. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-am.png +0 -0
  873. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ao.png +0 -0
  874. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aq.png +0 -0
  875. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ar.png +0 -0
  876. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-as.png +0 -0
  877. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-at.png +0 -0
  878. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-au.png +0 -0
  879. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-aw.png +0 -0
  880. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-az.png +0 -0
  881. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ba.png +0 -0
  882. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bb.png +0 -0
  883. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bd.png +0 -0
  884. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-be.png +0 -0
  885. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bf.png +0 -0
  886. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bg.png +0 -0
  887. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bh.png +0 -0
  888. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bi.png +0 -0
  889. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bj.png +0 -0
  890. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bl.png +0 -0
  891. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bm.png +0 -0
  892. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bn.png +0 -0
  893. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bo.png +0 -0
  894. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-br.png +0 -0
  895. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bs.png +0 -0
  896. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bt.png +0 -0
  897. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bw.png +0 -0
  898. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-by.png +0 -0
  899. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-bz.png +0 -0
  900. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ca.png +0 -0
  901. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cc.png +0 -0
  902. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cd.png +0 -0
  903. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cf.png +0 -0
  904. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cg.png +0 -0
  905. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ch.png +0 -0
  906. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ci.png +0 -0
  907. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ck.png +0 -0
  908. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cl.png +0 -0
  909. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cm.png +0 -0
  910. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cn.png +0 -0
  911. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-co.png +0 -0
  912. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cr.png +0 -0
  913. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cu.png +0 -0
  914. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cv.png +0 -0
  915. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cw.png +0 -0
  916. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cx.png +0 -0
  917. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cy.png +0 -0
  918. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-cz.png +0 -0
  919. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-de.png +0 -0
  920. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dj.png +0 -0
  921. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dk.png +0 -0
  922. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dm.png +0 -0
  923. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-do.png +0 -0
  924. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-dz.png +0 -0
  925. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ec.png +0 -0
  926. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ee.png +0 -0
  927. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-eg.png +0 -0
  928. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-er.png +0 -0
  929. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-es.png +0 -0
  930. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-et.png +0 -0
  931. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fi.png +0 -0
  932. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fj.png +0 -0
  933. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fk.png +0 -0
  934. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fm.png +0 -0
  935. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fo.png +0 -0
  936. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-fr.png +0 -0
  937. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ga.png +0 -0
  938. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gb.png +0 -0
  939. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gd.png +0 -0
  940. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ge.png +0 -0
  941. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gf.png +0 -0
  942. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gg.png +0 -0
  943. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gh.png +0 -0
  944. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gi.png +0 -0
  945. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gl.png +0 -0
  946. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gm.png +0 -0
  947. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gn.png +0 -0
  948. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gq.png +0 -0
  949. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gr.png +0 -0
  950. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gs.png +0 -0
  951. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gt.png +0 -0
  952. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gu.png +0 -0
  953. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gw.png +0 -0
  954. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-gy.png +0 -0
  955. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hk.png +0 -0
  956. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hm.png +0 -0
  957. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hn.png +0 -0
  958. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hr.png +0 -0
  959. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ht.png +0 -0
  960. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-hu.png +0 -0
  961. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-id.png +0 -0
  962. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ie.png +0 -0
  963. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-il.png +0 -0
  964. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-im.png +0 -0
  965. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-in.png +0 -0
  966. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-io.png +0 -0
  967. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-iq.png +0 -0
  968. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ir.png +0 -0
  969. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-is.png +0 -0
  970. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-it.png +0 -0
  971. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-je.png +0 -0
  972. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jm.png +0 -0
  973. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jo.png +0 -0
  974. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-jp.png +0 -0
  975. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ke.png +0 -0
  976. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kg.png +0 -0
  977. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kh.png +0 -0
  978. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ki.png +0 -0
  979. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-km.png +0 -0
  980. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kn.png +0 -0
  981. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kp.png +0 -0
  982. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kr.png +0 -0
  983. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kw.png +0 -0
  984. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ky.png +0 -0
  985. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-kz.png +0 -0
  986. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-la.png +0 -0
  987. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lb.png +0 -0
  988. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lc.png +0 -0
  989. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-li.png +0 -0
  990. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lk.png +0 -0
  991. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lr.png +0 -0
  992. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ls.png +0 -0
  993. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lt.png +0 -0
  994. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lu.png +0 -0
  995. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-lv.png +0 -0
  996. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ly.png +0 -0
  997. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ma.png +0 -0
  998. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mc.png +0 -0
  999. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-md.png +0 -0
  1000. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-me.png +0 -0
  1001. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mf.png +0 -0
  1002. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mg.png +0 -0
  1003. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mh.png +0 -0
  1004. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mk.png +0 -0
  1005. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ml.png +0 -0
  1006. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mm.png +0 -0
  1007. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mn.png +0 -0
  1008. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mo.png +0 -0
  1009. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mp.png +0 -0
  1010. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mq.png +0 -0
  1011. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mr.png +0 -0
  1012. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ms.png +0 -0
  1013. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mt.png +0 -0
  1014. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mu.png +0 -0
  1015. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mv.png +0 -0
  1016. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mw.png +0 -0
  1017. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mx.png +0 -0
  1018. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-my.png +0 -0
  1019. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-mz.png +0 -0
  1020. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-na.png +0 -0
  1021. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nc.png +0 -0
  1022. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ne.png +0 -0
  1023. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nf.png +0 -0
  1024. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ng.png +0 -0
  1025. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ni.png +0 -0
  1026. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nl.png +0 -0
  1027. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-no.png +0 -0
  1028. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-np.png +0 -0
  1029. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nr.png +0 -0
  1030. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nu.png +0 -0
  1031. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-nz.png +0 -0
  1032. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-om.png +0 -0
  1033. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pa.png +0 -0
  1034. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pe.png +0 -0
  1035. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pf.png +0 -0
  1036. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pg.png +0 -0
  1037. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ph.png +0 -0
  1038. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pk.png +0 -0
  1039. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pl.png +0 -0
  1040. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pm.png +0 -0
  1041. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pn.png +0 -0
  1042. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pr.png +0 -0
  1043. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ps.png +0 -0
  1044. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pt.png +0 -0
  1045. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-pw.png +0 -0
  1046. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-py.png +0 -0
  1047. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-qa.png +0 -0
  1048. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-re.png +0 -0
  1049. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ro.png +0 -0
  1050. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rs.png +0 -0
  1051. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ru.png +0 -0
  1052. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-rw.png +0 -0
  1053. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sa.png +0 -0
  1054. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sb.png +0 -0
  1055. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sc.png +0 -0
  1056. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sd.png +0 -0
  1057. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-se.png +0 -0
  1058. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sg.png +0 -0
  1059. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sh.png +0 -0
  1060. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-si.png +0 -0
  1061. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sj.png +0 -0
  1062. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sk.png +0 -0
  1063. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sl.png +0 -0
  1064. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sm.png +0 -0
  1065. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sn.png +0 -0
  1066. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-so.png +0 -0
  1067. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sr.png +0 -0
  1068. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-st.png +0 -0
  1069. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sv.png +0 -0
  1070. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sy.png +0 -0
  1071. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-sz.png +0 -0
  1072. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tc.png +0 -0
  1073. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-td.png +0 -0
  1074. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tf.png +0 -0
  1075. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tg.png +0 -0
  1076. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-th.png +0 -0
  1077. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tj.png +0 -0
  1078. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tk.png +0 -0
  1079. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tl.png +0 -0
  1080. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tm.png +0 -0
  1081. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tn.png +0 -0
  1082. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-to.png +0 -0
  1083. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tr.png +0 -0
  1084. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tt.png +0 -0
  1085. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tv.png +0 -0
  1086. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tw.png +0 -0
  1087. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-tz.png +0 -0
  1088. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ua.png +0 -0
  1089. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ug.png +0 -0
  1090. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-um.png +0 -0
  1091. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-us.png +0 -0
  1092. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uy.png +0 -0
  1093. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-uz.png +0 -0
  1094. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-va.png +0 -0
  1095. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vc.png +0 -0
  1096. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ve.png +0 -0
  1097. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vg.png +0 -0
  1098. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vi.png +0 -0
  1099. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vn.png +0 -0
  1100. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-vu.png +0 -0
  1101. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-wf.png +0 -0
  1102. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ws.png +0 -0
  1103. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-ye.png +0 -0
  1104. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-za.png +0 -0
  1105. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zm.png +0 -0
  1106. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/flags/flag-zw.png +0 -0
  1107. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings-white.png +0 -0
  1108. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/glyphicons-halflings.png +0 -0
  1109. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/important-icon.png +0 -0
  1110. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/information-icon.png +0 -0
  1111. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/internet-web-browser.png +0 -0
  1112. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon-shrunk.png +0 -0
  1113. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.png +0 -0
  1114. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-icon.svg +0 -0
  1115. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon-tiny.png +0 -0
  1116. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/multiple-file-list-icon.png +0 -0
  1117. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/navigation.png +0 -0
  1118. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon-tiny.png +0 -0
  1119. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/person-list-icon.png +0 -0
  1120. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy-logo.png +0 -0
  1121. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipy_org_logo.gif +0 -0
  1122. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipycentral_logo.png +0 -0
  1123. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/scipyshiny_small.png +0 -0
  1124. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/send-email-icon.png +0 -0
  1125. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon-shrunk.png +0 -0
  1126. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.png +0 -0
  1127. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-icon.svg +0 -0
  1128. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiniest.png +0 -0
  1129. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon-tiny.png +0 -0
  1130. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/single-file-list-icon.png +0 -0
  1131. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/transparent-pixel.gif +0 -0
  1132. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/img/ui-anim_basic_16x16.gif +0 -0
  1133. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/js/copybutton.js +0 -0
  1134. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/accordion.less +0 -0
  1135. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/alerts.less +0 -0
  1136. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/bootstrap.less +0 -0
  1137. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/breadcrumbs.less +0 -0
  1138. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/button-groups.less +0 -0
  1139. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/buttons.less +0 -0
  1140. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/carousel.less +0 -0
  1141. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/close.less +0 -0
  1142. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/code.less +0 -0
  1143. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/component-animations.less +0 -0
  1144. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/dropdowns.less +0 -0
  1145. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/forms.less +0 -0
  1146. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/grid.less +0 -0
  1147. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/hero-unit.less +0 -0
  1148. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/labels-badges.less +0 -0
  1149. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/layouts.less +0 -0
  1150. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/media.less +0 -0
  1151. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/mixins.less +0 -0
  1152. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/modals.less +0 -0
  1153. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navbar.less +0 -0
  1154. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/navs.less +0 -0
  1155. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pager.less +0 -0
  1156. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/pagination.less +0 -0
  1157. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/popovers.less +0 -0
  1158. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/progress-bars.less +0 -0
  1159. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/reset.less +0 -0
  1160. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-1200px-min.less +0 -0
  1161. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-767px-max.less +0 -0
  1162. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-768px-979px.less +0 -0
  1163. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-navbar.less +0 -0
  1164. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive-utilities.less +0 -0
  1165. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/responsive.less +0 -0
  1166. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/scaffolding.less +0 -0
  1167. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/sprites.less +0 -0
  1168. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tables.less +0 -0
  1169. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/thumbnails.less +0 -0
  1170. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/tooltip.less +0 -0
  1171. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/type.less +0 -0
  1172. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/utilities.less +0 -0
  1173. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/variables.less +0 -0
  1174. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/bootstrap/wells.less +0 -0
  1175. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-bootstrap.less +0 -0
  1176. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-content.less +0 -0
  1177. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-extend.less +0 -0
  1178. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-footer.less +0 -0
  1179. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-header.less +0 -0
  1180. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-rightsidebar.less +0 -0
  1181. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/less/spc-utils.less +0 -0
  1182. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/static/scipy.css_t +0 -0
  1183. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/_theme/scipy/theme.conf +0 -0
  1184. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/conf.py +0 -0
  1185. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/index.rst +0 -0
  1186. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc.rst +0 -0
  1187. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_2.rst +0 -0
  1188. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_3.rst +0 -0
  1189. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_autodoc_4.rst +0 -0
  1190. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/scipy-sphinx-theme/test_optimize.rst +0 -0
  1191. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/autosummary/class.rst +0 -0
  1192. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/indexcontent.html +0 -0
  1193. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/indexsidebar.html +0 -0
  1194. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/_templates/layout.html +0 -0
  1195. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/about.rst +0 -0
  1196. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/bugs.rst +0 -0
  1197. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/contents.rst +0 -0
  1198. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/configure_git.rst +0 -0
  1199. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/development_setup.rst +0 -0
  1200. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/dot2_dot3.rst +0 -0
  1201. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/following_latest.rst +0 -0
  1202. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/forking_button.png +0 -0
  1203. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_development.rst +0 -0
  1204. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_intro.rst +0 -0
  1205. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/git_resources.rst +0 -0
  1206. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash/pull_button.png +0 -0
  1207. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/dev/gitwash_links.txt +0 -0
  1208. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/advanced.rst +0 -0
  1209. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/allocarr.f90 +0 -0
  1210. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/allocarr_session.dat +0 -0
  1211. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/array.f +0 -0
  1212. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/array_session.dat +0 -0
  1213. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/calculate.f +0 -0
  1214. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/calculate_session.dat +0 -0
  1215. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback.f +0 -0
  1216. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback2.pyf +0 -0
  1217. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/callback_session.dat +0 -0
  1218. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/common.f +0 -0
  1219. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/common_session.dat +0 -0
  1220. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/compile_session.dat +0 -0
  1221. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/distutils.rst +0 -0
  1222. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/extcallback.f +0 -0
  1223. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/extcallback_session.dat +0 -0
  1224. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib1.f +0 -0
  1225. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib1.pyf +0 -0
  1226. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib2.pyf +0 -0
  1227. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/fib3.f +0 -0
  1228. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/ftype.f +0 -0
  1229. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/ftype_session.dat +0 -0
  1230. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/getting-started.rst +0 -0
  1231. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/index.rst +0 -0
  1232. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/moddata.f90 +0 -0
  1233. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/moddata_session.dat +0 -0
  1234. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/python-usage.rst +0 -0
  1235. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/run_main_session.dat +0 -0
  1236. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/scalar.f +0 -0
  1237. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/scalar_session.dat +0 -0
  1238. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/setup_example.py +0 -0
  1239. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/signature-file.rst +0 -0
  1240. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/spam.pyf +0 -0
  1241. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/spam_session.dat +0 -0
  1242. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/string.f +0 -0
  1243. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/string_session.dat +0 -0
  1244. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/usage.rst +0 -0
  1245. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/var.pyf +0 -0
  1246. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/f2py/var_session.dat +0 -0
  1247. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/glossary.rst +0 -0
  1248. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/license.rst +0 -0
  1249. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal.rst +0 -0
  1250. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/datetime-proposal3.rst +0 -0
  1251. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/deferred-ufunc-evaluation.rst +0 -0
  1252. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/generalized-ufuncs.rst +0 -0
  1253. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/groupby_additions.rst +0 -0
  1254. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/index.rst +0 -0
  1255. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/math_config_clean.rst +0 -0
  1256. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/missing-data.rst +0 -0
  1257. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/new-iterator-ufunc.rst +0 -0
  1258. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/newbugtracker.rst +0 -0
  1259. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/npy-format.rst +0 -0
  1260. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/structured_array_extensions.rst +0 -0
  1261. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/ufunc-overrides.rst +0 -0
  1262. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/neps/warnfix.rst +0 -0
  1263. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.datetime.rst +0 -0
  1264. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.nditer.rst +0 -0
  1265. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/arrays.rst +0 -0
  1266. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/c-api.deprecations.rst +0 -0
  1267. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/c-api.rst +0 -0
  1268. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/distutils.rst +0 -0
  1269. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.dia +0 -0
  1270. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.pdf +0 -0
  1271. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/dtype-hierarchy.png +0 -0
  1272. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.fig +0 -0
  1273. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.pdf +0 -0
  1274. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/figures/threefundamental.png +0 -0
  1275. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/internals.rst +0 -0
  1276. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.baseclass.rst +0 -0
  1277. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.generic.rst +0 -0
  1278. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/maskedarray.rst +0 -0
  1279. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.array-creation.rst +0 -0
  1280. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.bitwise.rst +0 -0
  1281. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.char.rst +0 -0
  1282. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.ctypeslib.rst +0 -0
  1283. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.datetime.rst +0 -0
  1284. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.dtype.rst +0 -0
  1285. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.dual.rst +0 -0
  1286. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.emath.rst +0 -0
  1287. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.err.rst +0 -0
  1288. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.fft.rst +0 -0
  1289. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.financial.rst +0 -0
  1290. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.functional.rst +0 -0
  1291. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.help.rst +0 -0
  1292. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.indexing.rst +0 -0
  1293. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.logic.rst +0 -0
  1294. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.math.rst +0 -0
  1295. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.matlib.rst +0 -0
  1296. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.numarray.rst +0 -0
  1297. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.oldnumeric.rst +0 -0
  1298. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.other.rst +0 -0
  1299. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.padding.rst +0 -0
  1300. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.chebyshev.rst +0 -0
  1301. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.classes.rst +0 -0
  1302. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite.rst +0 -0
  1303. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.hermite_e.rst +0 -0
  1304. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.laguerre.rst +0 -0
  1305. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.legendre.rst +0 -0
  1306. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.package.rst +0 -0
  1307. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.poly1d.rst +0 -0
  1308. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.polynomial.rst +0 -0
  1309. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.polynomials.rst +0 -0
  1310. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.random.rst +0 -0
  1311. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.rst +0 -0
  1312. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.set.rst +0 -0
  1313. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.testing.rst +0 -0
  1314. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/routines.window.rst +0 -0
  1315. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/reference/swig.rst +0 -0
  1316. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.broadcasting.rst +0 -0
  1317. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.byteswapping.rst +0 -0
  1318. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.creation.rst +0 -0
  1319. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.indexing.rst +0 -0
  1320. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.io.rst +0 -0
  1321. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.rst +0 -0
  1322. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.subclassing.rst +0 -0
  1323. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/basics.types.rst +0 -0
  1324. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/c-info.rst +0 -0
  1325. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/howtofind.rst +0 -0
  1326. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/index.rst +0 -0
  1327. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/introduction.rst +0 -0
  1328. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/misc.rst +0 -0
  1329. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/performance.rst +0 -0
  1330. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/source/user/whatisnumpy.rst +0 -0
  1331. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/.gitignore +0 -0
  1332. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/.travis.yml +0 -0
  1333. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/LICENSE.txt +0 -0
  1334. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/MANIFEST.in +0 -0
  1335. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/README.rst +0 -0
  1336. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/__init__.py +0 -0
  1337. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/comment_eater.py +0 -0
  1338. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/compiler_unparse.py +0 -0
  1339. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape.py +0 -0
  1340. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/docscrape_sphinx.py +0 -0
  1341. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/linkcode.py +0 -0
  1342. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/numpydoc.py +0 -0
  1343. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/phantom_import.py +0 -0
  1344. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/plot_directive.py +0 -0
  1345. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_docscrape.py +0 -0
  1346. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_linkcode.py +0 -0
  1347. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_phantom_import.py +0 -0
  1348. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_plot_directive.py +0 -0
  1349. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/tests/test_traitsdoc.py +0 -0
  1350. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/numpydoc/traitsdoc.py +0 -0
  1351. {numpy-1.9.2 → numpy-1.10.0.post2}/doc/sphinxext/setup.py +0 -0
  1352. {numpy-1.9.2/numpy/core/code_generators → numpy-1.10.0.post2/numpy/_build_utils}/__init__.py +0 -0
  1353. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/compat/__init__.py +0 -0
  1354. {numpy-1.9.2/numpy/distutils/tests/f2py_ext → numpy-1.10.0.post2/numpy/core/code_generators}/__init__.py +0 -0
  1355. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/code_generators/genapi.py +0 -0
  1356. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/code_generators/generate_numpy_api.py +0 -0
  1357. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/cversions.py +0 -0
  1358. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/_neighborhood_iterator_imp.h +0 -0
  1359. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/_numpyconfig.h.in +0 -0
  1360. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayobject.h +0 -0
  1361. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/arrayscalars.h +0 -0
  1362. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/halffloat.h +0 -0
  1363. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/noprefix.h +0 -0
  1364. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_1_7_deprecated_api.h +0 -0
  1365. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_interrupt.h +0 -0
  1366. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_no_deprecated_api.h +0 -0
  1367. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/npy_os.h +0 -0
  1368. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/old_defines.h +0 -0
  1369. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/oldnumeric.h +0 -0
  1370. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/ufuncobject.h +0 -0
  1371. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/include/numpy/utils.h +0 -0
  1372. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/info.py +0 -0
  1373. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/mlib.ini.in +0 -0
  1374. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/npymath.ini.in +0 -0
  1375. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/dummymodule.c +0 -0
  1376. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/_datetime.h +0 -0
  1377. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/alloc.h +0 -0
  1378. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.c +0 -0
  1379. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign.h +0 -0
  1380. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_array.c +0 -0
  1381. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/array_assign_scalar.c +0 -0
  1382. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/arrayobject.h +0 -0
  1383. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/buffer.h +0 -0
  1384. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/calculation.h +0 -0
  1385. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/conversion_utils.h +0 -0
  1386. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert.h +0 -0
  1387. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/convert_datatype.h +0 -0
  1388. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ctors.h +0 -0
  1389. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busday.h +0 -0
  1390. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_busdaycal.h +0 -0
  1391. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/datetime_strings.h +0 -0
  1392. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/descriptor.h +0 -0
  1393. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/flagsobject.c +0 -0
  1394. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/getset.h +0 -0
  1395. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/hashdescr.h +0 -0
  1396. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/item_selection.h +0 -0
  1397. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/iterators.h +0 -0
  1398. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/methods.h +0 -0
  1399. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_impl.h +0 -0
  1400. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_pywrap.h +0 -0
  1401. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/nditer_templ.c.src +0 -0
  1402. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpymemoryview.h +0 -0
  1403. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/numpyos.h +0 -0
  1404. {numpy-1.9.2/numpy/core/blasdot → numpy-1.10.0.post2/numpy/core/src/multiarray}/python_xerbla.c +0 -0
  1405. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.c +0 -0
  1406. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/refcount.h +0 -0
  1407. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.c +0 -0
  1408. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/sequence.h +0 -0
  1409. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/shape.h +0 -0
  1410. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/ucsnarrow.h +0 -0
  1411. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.c +0 -0
  1412. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/multiarray/usertypes.h +0 -0
  1413. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/_signbit.c +0 -0
  1414. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/halffloat.c +0 -0
  1415. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npymath/npy_math_common.h +0 -0
  1416. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/npysort/binsearch.c.src +0 -0
  1417. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/lowlevel_strided_loops.h +0 -0
  1418. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_binsearch.h.src +0 -0
  1419. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_fpmath.h +0 -0
  1420. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/private/npy_pycompat.h +0 -0
  1421. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.c +0 -0
  1422. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/reduction.h +0 -0
  1423. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/struct_ufunc_test.c.src +0 -0
  1424. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_object.h +0 -0
  1425. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/src/umath/ufunc_type_resolution.h +0 -0
  1426. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/data/astype_copy.pkl +0 -0
  1427. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/data/recarray_from_file.fits +0 -0
  1428. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/core/tests/test_scalarprint.py +0 -0
  1429. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/ctypeslib.py +0 -0
  1430. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/__version__.py +0 -0
  1431. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/__init__.py +0 -0
  1432. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/bdist_rpm.py +0 -0
  1433. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_py.py +0 -0
  1434. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_scripts.py +0 -0
  1435. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/build_src.py +0 -0
  1436. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/config_compiler.py +0 -0
  1437. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/develop.py +0 -0
  1438. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/egg_info.py +0 -0
  1439. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install.py +0 -0
  1440. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_clib.py +0 -0
  1441. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_data.py +0 -0
  1442. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/install_headers.py +0 -0
  1443. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/command/sdist.py +0 -0
  1444. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/compat.py +0 -0
  1445. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/conv_template.py +0 -0
  1446. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/core.py +0 -0
  1447. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/cpuinfo.py +0 -0
  1448. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/environment.py +0 -0
  1449. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/extension.py +0 -0
  1450. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/__init__.py +0 -0
  1451. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/absoft.py +0 -0
  1452. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/g95.py +0 -0
  1453. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/hpux.py +0 -0
  1454. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/ibm.py +0 -0
  1455. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/lahey.py +0 -0
  1456. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/mips.py +0 -0
  1457. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/nag.py +0 -0
  1458. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/none.py +0 -0
  1459. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/pathf95.py +0 -0
  1460. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/fcompiler/vast.py +0 -0
  1461. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/from_template.py +0 -0
  1462. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/info.py +0 -0
  1463. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/line_endings.py +0 -0
  1464. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/log.py +0 -0
  1465. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/mingw/gfortran_vs2003_hack.c +0 -0
  1466. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/numpy_distribution.py +0 -0
  1467. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/pathccompiler.py +0 -0
  1468. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/setup.py +0 -0
  1469. {numpy-1.9.2/numpy/distutils/tests/f2py_f90_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_ext}/__init__.py +0 -0
  1470. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/setup.py +0 -0
  1471. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib1.f +0 -0
  1472. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_ext/src/fib2.pyf +0 -0
  1473. {numpy-1.9.2/numpy/distutils/tests/gen_ext → numpy-1.10.0.post2/numpy/distutils/tests/f2py_f90_ext}/__init__.py +0 -0
  1474. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/include/body.f90 +0 -0
  1475. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/setup.py +0 -0
  1476. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/f2py_f90_ext/src/foo_free.f90 +0 -0
  1477. {numpy-1.9.2/numpy/distutils/tests/pyrex_ext → numpy-1.10.0.post2/numpy/distutils/tests/gen_ext}/__init__.py +0 -0
  1478. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/gen_ext/setup.py +0 -0
  1479. {numpy-1.9.2/numpy/distutils/tests/swig_ext → numpy-1.10.0.post2/numpy/distutils/tests/pyrex_ext}/__init__.py +0 -0
  1480. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/primes.pyx +0 -0
  1481. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/pyrex_ext/setup.py +0 -0
  1482. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/setup.py +0 -0
  1483. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/setup.py +0 -0
  1484. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.c +0 -0
  1485. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/example.i +0 -0
  1486. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.cc +0 -0
  1487. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.h +0 -0
  1488. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/swig_ext/src/zoo.i +0 -0
  1489. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/distutils/tests/test_exec_command.py +0 -0
  1490. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/__init__.py +0 -0
  1491. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/basics.py +0 -0
  1492. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/broadcasting.py +0 -0
  1493. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/constants.py +0 -0
  1494. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/howtofind.py +0 -0
  1495. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/internals.py +0 -0
  1496. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/io.py +0 -0
  1497. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/jargon.py +0 -0
  1498. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/methods_vs_functions.py +0 -0
  1499. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/misc.py +0 -0
  1500. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/performance.py +0 -0
  1501. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/subclassing.py +0 -0
  1502. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/doc/ufuncs.py +0 -0
  1503. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/dual.py +0 -0
  1504. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/__version__.py +0 -0
  1505. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/info.py +0 -0
  1506. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/.f2py_f2cmap +0 -0
  1507. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_free.f90 +0 -0
  1508. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_mod.f90 +0 -0
  1509. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/foo_use.f90 +0 -0
  1510. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/assumed_shape/precision.f90 +0 -0
  1511. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/kind/foo.f90 +0 -0
  1512. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo.f +0 -0
  1513. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_fixed.f90 +0 -0
  1514. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/mixed/foo_free.f90 +0 -0
  1515. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/regression/inout.f90 +0 -0
  1516. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/f2py/tests/src/size/foo.f90 +0 -0
  1517. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/fft/__init__.py +0 -0
  1518. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/fft/helper.py +0 -0
  1519. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/__init__.py +0 -0
  1520. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/_datasource.py +0 -0
  1521. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/_version.py +0 -0
  1522. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/scimath.py +0 -0
  1523. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/data/python3.npy +0 -0
  1524. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/data/win64python2.npy +0 -0
  1525. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test__datasource.py +0 -0
  1526. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_arrayterator.py +0 -0
  1527. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_regression.py +0 -0
  1528. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_ufunclike.py +0 -0
  1529. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/tests/test_utils.py +0 -0
  1530. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/ufunclike.py +0 -0
  1531. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/lib/user_array.py +0 -0
  1532. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/__init__.py +0 -0
  1533. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/info.py +0 -0
  1534. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/blas_lite.c +0 -0
  1535. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlamch.c +0 -0
  1536. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/dlapack_lite.c +0 -0
  1537. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c.h +0 -0
  1538. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/f2c_lite.c +0 -0
  1539. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/lapack_lite/zlapack_lite.c +0 -0
  1540. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/setup.py +0 -0
  1541. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/linalg/tests/test_deprecations.py +0 -0
  1542. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/ma/version.py +0 -0
  1543. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/matrixlib/__init__.py +0 -0
  1544. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/matrixlib/setup.py +0 -0
  1545. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/__init__.py +0 -0
  1546. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/polynomial.py +0 -0
  1547. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/setup.py +0 -0
  1548. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_chebyshev.py +0 -0
  1549. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_classes.py +0 -0
  1550. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite.py +0 -0
  1551. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_hermite_e.py +0 -0
  1552. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_laguerre.py +0 -0
  1553. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_legendre.py +0 -0
  1554. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polynomial.py +0 -0
  1555. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_polyutils.py +0 -0
  1556. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/polynomial/tests/test_printing.py +0 -0
  1557. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/__init__.py +0 -0
  1558. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/info.py +0 -0
  1559. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/Python.pxi +0 -0
  1560. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/distributions.h +0 -0
  1561. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/generate_mtrand_c.py +0 -0
  1562. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.c +0 -0
  1563. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/initarray.h +0 -0
  1564. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/mtrand_py_helper.h +0 -0
  1565. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/numpy.pxd +0 -0
  1566. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.c +0 -0
  1567. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/random/mtrand/randomkit.h +0 -0
  1568. {numpy-1.9.2 → numpy-1.10.0.post2}/numpy/testing/tests/test_doctesting.py +0 -0
  1569. {numpy-1.9.2 → numpy-1.10.0.post2}/setupegg.py +0 -0
  1570. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/Makefile +0 -0
  1571. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/pyfragments.swg +0 -0
  1572. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array1.cxx +0 -0
  1573. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array1.h +0 -0
  1574. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array2.cxx +0 -0
  1575. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Array2.h +0 -0
  1576. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.cxx +0 -0
  1577. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.h +0 -0
  1578. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Farray.i +0 -0
  1579. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.cxx +0 -0
  1580. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.h +0 -0
  1581. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Fortran.i +0 -0
  1582. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.cxx +0 -0
  1583. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.h +0 -0
  1584. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Matrix.i +0 -0
  1585. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.cxx +0 -0
  1586. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.h +0 -0
  1587. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/SuperTensor.i +0 -0
  1588. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.cxx +0 -0
  1589. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.h +0 -0
  1590. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Tensor.i +0 -0
  1591. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.cxx +0 -0
  1592. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.h +0 -0
  1593. {numpy-1.9.2 → numpy-1.10.0.post2}/tools/swig/test/Vector.i +0 -0
@@ -0,0 +1,3314 @@
1
+ #!/usr/bin/env python
2
+ """
3
+ crackfortran --- read fortran (77,90) code and extract declaration information.
4
+
5
+ Copyright 1999-2004 Pearu Peterson all rights reserved,
6
+ Pearu Peterson <pearu@ioc.ee>
7
+ Permission to use, modify, and distribute this software is given under the
8
+ terms of the NumPy License.
9
+
10
+ NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
11
+ $Date: 2005/09/27 07:13:49 $
12
+ Pearu Peterson
13
+
14
+
15
+ Usage of crackfortran:
16
+ ======================
17
+ Command line keys: -quiet,-verbose,-fix,-f77,-f90,-show,-h <pyffilename>
18
+ -m <module name for f77 routines>,--ignore-contains
19
+ Functions: crackfortran, crack2fortran
20
+ The following Fortran statements/constructions are supported
21
+ (or will be if needed):
22
+ block data,byte,call,character,common,complex,contains,data,
23
+ dimension,double complex,double precision,end,external,function,
24
+ implicit,integer,intent,interface,intrinsic,
25
+ logical,module,optional,parameter,private,public,
26
+ program,real,(sequence?),subroutine,type,use,virtual,
27
+ include,pythonmodule
28
+ Note: 'virtual' is mapped to 'dimension'.
29
+ Note: 'implicit integer (z) static (z)' is 'implicit static (z)' (this is minor bug).
30
+ Note: code after 'contains' will be ignored until its scope ends.
31
+ Note: 'common' statement is extended: dimensions are moved to variable definitions
32
+ Note: f2py directive: <commentchar>f2py<line> is read as <line>
33
+ Note: pythonmodule is introduced to represent Python module
34
+
35
+ Usage:
36
+ `postlist=crackfortran(files,funcs)`
37
+ `postlist` contains declaration information read from the list of files `files`.
38
+ `crack2fortran(postlist)` returns a fortran code to be saved to pyf-file
39
+
40
+ `postlist` has the following structure:
41
+ *** it is a list of dictionaries containing `blocks':
42
+ B = {'block','body','vars','parent_block'[,'name','prefix','args','result',
43
+ 'implicit','externals','interfaced','common','sortvars',
44
+ 'commonvars','note']}
45
+ B['block'] = 'interface' | 'function' | 'subroutine' | 'module' |
46
+ 'program' | 'block data' | 'type' | 'pythonmodule'
47
+ B['body'] --- list containing `subblocks' with the same structure as `blocks'
48
+ B['parent_block'] --- dictionary of a parent block:
49
+ C['body'][<index>]['parent_block'] is C
50
+ B['vars'] --- dictionary of variable definitions
51
+ B['sortvars'] --- dictionary of variable definitions sorted by dependence (independent first)
52
+ B['name'] --- name of the block (not if B['block']=='interface')
53
+ B['prefix'] --- prefix string (only if B['block']=='function')
54
+ B['args'] --- list of argument names if B['block']== 'function' | 'subroutine'
55
+ B['result'] --- name of the return value (only if B['block']=='function')
56
+ B['implicit'] --- dictionary {'a':<variable definition>,'b':...} | None
57
+ B['externals'] --- list of variables being external
58
+ B['interfaced'] --- list of variables being external and defined
59
+ B['common'] --- dictionary of common blocks (list of objects)
60
+ B['commonvars'] --- list of variables used in common blocks (dimensions are moved to variable definitions)
61
+ B['from'] --- string showing the 'parents' of the current block
62
+ B['use'] --- dictionary of modules used in current block:
63
+ {<modulename>:{['only':<0|1>],['map':{<local_name1>:<use_name1>,...}]}}
64
+ B['note'] --- list of LaTeX comments on the block
65
+ B['f2pyenhancements'] --- optional dictionary
66
+ {'threadsafe':'','fortranname':<name>,
67
+ 'callstatement':<C-expr>|<multi-line block>,
68
+ 'callprotoargument':<C-expr-list>,
69
+ 'usercode':<multi-line block>|<list of multi-line blocks>,
70
+ 'pymethoddef:<multi-line block>'
71
+ }
72
+ B['entry'] --- dictionary {entryname:argslist,..}
73
+ B['varnames'] --- list of variable names given in the order of reading the
74
+ Fortran code, useful for derived types.
75
+ B['saved_interface'] --- a string of scanned routine signature, defines explicit interface
76
+ *** Variable definition is a dictionary
77
+ D = B['vars'][<variable name>] =
78
+ {'typespec'[,'attrspec','kindselector','charselector','=','typename']}
79
+ D['typespec'] = 'byte' | 'character' | 'complex' | 'double complex' |
80
+ 'double precision' | 'integer' | 'logical' | 'real' | 'type'
81
+ D['attrspec'] --- list of attributes (e.g. 'dimension(<arrayspec>)',
82
+ 'external','intent(in|out|inout|hide|c|callback|cache|aligned4|aligned8|aligned16)',
83
+ 'optional','required', etc)
84
+ K = D['kindselector'] = {['*','kind']} (only if D['typespec'] =
85
+ 'complex' | 'integer' | 'logical' | 'real' )
86
+ C = D['charselector'] = {['*','len','kind']}
87
+ (only if D['typespec']=='character')
88
+ D['='] --- initialization expression string
89
+ D['typename'] --- name of the type if D['typespec']=='type'
90
+ D['dimension'] --- list of dimension bounds
91
+ D['intent'] --- list of intent specifications
92
+ D['depend'] --- list of variable names on which current variable depends on
93
+ D['check'] --- list of C-expressions; if C-expr returns zero, exception is raised
94
+ D['note'] --- list of LaTeX comments on the variable
95
+ *** Meaning of kind/char selectors (few examples):
96
+ D['typespec>']*K['*']
97
+ D['typespec'](kind=K['kind'])
98
+ character*C['*']
99
+ character(len=C['len'],kind=C['kind'])
100
+ (see also fortran type declaration statement formats below)
101
+
102
+ Fortran 90 type declaration statement format (F77 is subset of F90)
103
+ ====================================================================
104
+ (Main source: IBM XL Fortran 5.1 Language Reference Manual)
105
+ type declaration = <typespec> [[<attrspec>]::] <entitydecl>
106
+ <typespec> = byte |
107
+ character[<charselector>] |
108
+ complex[<kindselector>] |
109
+ double complex |
110
+ double precision |
111
+ integer[<kindselector>] |
112
+ logical[<kindselector>] |
113
+ real[<kindselector>] |
114
+ type(<typename>)
115
+ <charselector> = * <charlen> |
116
+ ([len=]<len>[,[kind=]<kind>]) |
117
+ (kind=<kind>[,len=<len>])
118
+ <kindselector> = * <intlen> |
119
+ ([kind=]<kind>)
120
+ <attrspec> = comma separated list of attributes.
121
+ Only the following attributes are used in
122
+ building up the interface:
123
+ external
124
+ (parameter --- affects '=' key)
125
+ optional
126
+ intent
127
+ Other attributes are ignored.
128
+ <intentspec> = in | out | inout
129
+ <arrayspec> = comma separated list of dimension bounds.
130
+ <entitydecl> = <name> [[*<charlen>][(<arrayspec>)] | [(<arrayspec>)]*<charlen>]
131
+ [/<init_expr>/ | =<init_expr>] [,<entitydecl>]
132
+
133
+ In addition, the following attributes are used: check,depend,note
134
+
135
+ TODO:
136
+ * Apply 'parameter' attribute (e.g. 'integer parameter :: i=2' 'real x(i)'
137
+ -> 'real x(2)')
138
+ The above may be solved by creating appropriate preprocessor program, for example.
139
+
140
+ """
141
+ from __future__ import division, absolute_import, print_function
142
+
143
+ import sys
144
+ import string
145
+ import fileinput
146
+ import re
147
+ import os
148
+ import copy
149
+ import platform
150
+
151
+ from . import __version__
152
+ from .auxfuncs import (
153
+ errmess, hascommon, isdouble, iscomplex, isexternal, isinteger,
154
+ isintent_aux, isintent_c, isintent_callback, isintent_in,
155
+ isintent_inout, isintent_inplace, islogical, isoptional, isscalar,
156
+ isstring, isstringarray, l_or, show
157
+ )
158
+
159
+
160
+ f2py_version = __version__.version
161
+
162
+ # Global flags:
163
+ strictf77 = 1 # Ignore `!' comments unless line[0]=='!'
164
+ sourcecodeform = 'fix' # 'fix','free'
165
+ quiet = 0 # Be verbose if 0 (Obsolete: not used any more)
166
+ verbose = 1 # Be quiet if 0, extra verbose if > 1.
167
+ tabchar = 4 * ' '
168
+ pyffilename = ''
169
+ f77modulename = ''
170
+ skipemptyends = 0 # for old F77 programs without 'program' statement
171
+ ignorecontains = 1
172
+ dolowercase = 1
173
+ debug = []
174
+
175
+ # Global variables
176
+ beginpattern = ''
177
+ currentfilename = ''
178
+ expectbegin = 1
179
+ f90modulevars = {}
180
+ filepositiontext = ''
181
+ gotnextfile = 1
182
+ groupcache = None
183
+ groupcounter = 0
184
+ grouplist = {groupcounter: []}
185
+ groupname = ''
186
+ include_paths = []
187
+ neededmodule = -1
188
+ onlyfuncs = []
189
+ previous_context = None
190
+ skipblocksuntil = -1
191
+ skipfuncs = []
192
+ skipfunctions = []
193
+ usermodules = []
194
+
195
+
196
+ def reset_global_f2py_vars():
197
+ global groupcounter, grouplist, neededmodule, expectbegin
198
+ global skipblocksuntil, usermodules, f90modulevars, gotnextfile
199
+ global filepositiontext, currentfilename, skipfunctions, skipfuncs
200
+ global onlyfuncs, include_paths, previous_context
201
+ global strictf77, sourcecodeform, quiet, verbose, tabchar, pyffilename
202
+ global f77modulename, skipemptyends, ignorecontains, dolowercase, debug
203
+
204
+ # flags
205
+ strictf77 = 1
206
+ sourcecodeform = 'fix'
207
+ quiet = 0
208
+ verbose = 1
209
+ tabchar = 4 * ' '
210
+ pyffilename = ''
211
+ f77modulename = ''
212
+ skipemptyends = 0
213
+ ignorecontains = 1
214
+ dolowercase = 1
215
+ debug = []
216
+ # variables
217
+ groupcounter = 0
218
+ grouplist = {groupcounter: []}
219
+ neededmodule = -1
220
+ expectbegin = 1
221
+ skipblocksuntil = -1
222
+ usermodules = []
223
+ f90modulevars = {}
224
+ gotnextfile = 1
225
+ filepositiontext = ''
226
+ currentfilename = ''
227
+ skipfunctions = []
228
+ skipfuncs = []
229
+ onlyfuncs = []
230
+ include_paths = []
231
+ previous_context = None
232
+
233
+
234
+ def outmess(line, flag=1):
235
+ global filepositiontext
236
+
237
+ if not verbose:
238
+ return
239
+ if not quiet:
240
+ if flag:
241
+ sys.stdout.write(filepositiontext)
242
+ sys.stdout.write(line)
243
+
244
+ re._MAXCACHE = 50
245
+ defaultimplicitrules = {}
246
+ for c in "abcdefghopqrstuvwxyz$_":
247
+ defaultimplicitrules[c] = {'typespec': 'real'}
248
+ for c in "ijklmn":
249
+ defaultimplicitrules[c] = {'typespec': 'integer'}
250
+ del c
251
+ badnames = {}
252
+ invbadnames = {}
253
+ for n in ['int', 'double', 'float', 'char', 'short', 'long', 'void', 'case', 'while',
254
+ 'return', 'signed', 'unsigned', 'if', 'for', 'typedef', 'sizeof', 'union',
255
+ 'struct', 'static', 'register', 'new', 'break', 'do', 'goto', 'switch',
256
+ 'continue', 'else', 'inline', 'extern', 'delete', 'const', 'auto',
257
+ 'len', 'rank', 'shape', 'index', 'slen', 'size', '_i',
258
+ 'max', 'min',
259
+ 'flen', 'fshape',
260
+ 'string', 'complex_double', 'float_double', 'stdin', 'stderr', 'stdout',
261
+ 'type', 'default']:
262
+ badnames[n] = n + '_bn'
263
+ invbadnames[n + '_bn'] = n
264
+
265
+
266
+ def rmbadname1(name):
267
+ if name in badnames:
268
+ errmess('rmbadname1: Replacing "%s" with "%s".\n' %
269
+ (name, badnames[name]))
270
+ return badnames[name]
271
+ return name
272
+
273
+
274
+ def rmbadname(names):
275
+ return [rmbadname1(_m) for _m in names]
276
+
277
+
278
+ def undo_rmbadname1(name):
279
+ if name in invbadnames:
280
+ errmess('undo_rmbadname1: Replacing "%s" with "%s".\n'
281
+ % (name, invbadnames[name]))
282
+ return invbadnames[name]
283
+ return name
284
+
285
+
286
+ def undo_rmbadname(names):
287
+ return [undo_rmbadname1(_m) for _m in names]
288
+
289
+
290
+ def getextension(name):
291
+ i = name.rfind('.')
292
+ if i == -1:
293
+ return ''
294
+ if '\\' in name[i:]:
295
+ return ''
296
+ if '/' in name[i:]:
297
+ return ''
298
+ return name[i + 1:]
299
+
300
+ is_f_file = re.compile(r'.*[.](for|ftn|f77|f)\Z', re.I).match
301
+ _has_f_header = re.compile(r'-[*]-\s*fortran\s*-[*]-', re.I).search
302
+ _has_f90_header = re.compile(r'-[*]-\s*f90\s*-[*]-', re.I).search
303
+ _has_fix_header = re.compile(r'-[*]-\s*fix\s*-[*]-', re.I).search
304
+ _free_f90_start = re.compile(r'[^c*]\s*[^\s\d\t]', re.I).match
305
+
306
+
307
+ def is_free_format(file):
308
+ """Check if file is in free format Fortran."""
309
+ # f90 allows both fixed and free format, assuming fixed unless
310
+ # signs of free format are detected.
311
+ result = 0
312
+ f = open(file, 'r')
313
+ line = f.readline()
314
+ n = 15 # the number of non-comment lines to scan for hints
315
+ if _has_f_header(line):
316
+ n = 0
317
+ elif _has_f90_header(line):
318
+ n = 0
319
+ result = 1
320
+ while n > 0 and line:
321
+ if line[0] != '!' and line.strip():
322
+ n -= 1
323
+ if (line[0] != '\t' and _free_f90_start(line[:5])) or line[-2:-1] == '&':
324
+ result = 1
325
+ break
326
+ line = f.readline()
327
+ f.close()
328
+ return result
329
+
330
+
331
+ # Read fortran (77,90) code
332
+ def readfortrancode(ffile, dowithline=show, istop=1):
333
+ """
334
+ Read fortran codes from files and
335
+ 1) Get rid of comments, line continuations, and empty lines; lower cases.
336
+ 2) Call dowithline(line) on every line.
337
+ 3) Recursively call itself when statement \"include '<filename>'\" is met.
338
+ """
339
+ global gotnextfile, filepositiontext, currentfilename, sourcecodeform, strictf77
340
+ global beginpattern, quiet, verbose, dolowercase, include_paths
341
+
342
+ if not istop:
343
+ saveglobals = gotnextfile, filepositiontext, currentfilename, sourcecodeform, strictf77,\
344
+ beginpattern, quiet, verbose, dolowercase
345
+ if ffile == []:
346
+ return
347
+ localdolowercase = dolowercase
348
+ cont = 0
349
+ finalline = ''
350
+ ll = ''
351
+ commentline = re.compile(
352
+ r'(?P<line>([^"]*["][^"]*["][^"!]*|[^\']*\'[^\']*\'[^\'!]*|[^!\'"]*))!{1}(?P<rest>.*)')
353
+ includeline = re.compile(
354
+ r'\s*include\s*(\'|")(?P<name>[^\'"]*)(\'|")', re.I)
355
+ cont1 = re.compile(r'(?P<line>.*)&\s*\Z')
356
+ cont2 = re.compile(r'(\s*&|)(?P<line>.*)')
357
+ mline_mark = re.compile(r".*?'''")
358
+ if istop:
359
+ dowithline('', -1)
360
+ ll, l1 = '', ''
361
+ spacedigits = [' '] + [str(_m) for _m in range(10)]
362
+ filepositiontext = ''
363
+ fin = fileinput.FileInput(ffile)
364
+ while True:
365
+ l = fin.readline()
366
+ if not l:
367
+ break
368
+ if fin.isfirstline():
369
+ filepositiontext = ''
370
+ currentfilename = fin.filename()
371
+ gotnextfile = 1
372
+ l1 = l
373
+ strictf77 = 0
374
+ sourcecodeform = 'fix'
375
+ ext = os.path.splitext(currentfilename)[1]
376
+ if is_f_file(currentfilename) and \
377
+ not (_has_f90_header(l) or _has_fix_header(l)):
378
+ strictf77 = 1
379
+ elif is_free_format(currentfilename) and not _has_fix_header(l):
380
+ sourcecodeform = 'free'
381
+ if strictf77:
382
+ beginpattern = beginpattern77
383
+ else:
384
+ beginpattern = beginpattern90
385
+ outmess('\tReading file %s (format:%s%s)\n'
386
+ % (repr(currentfilename), sourcecodeform,
387
+ strictf77 and ',strict' or ''))
388
+
389
+ l = l.expandtabs().replace('\xa0', ' ')
390
+ # Get rid of newline characters
391
+ while not l == '':
392
+ if l[-1] not in "\n\r\f":
393
+ break
394
+ l = l[:-1]
395
+ if not strictf77:
396
+ r = commentline.match(l)
397
+ if r:
398
+ l = r.group('line') + ' ' # Strip comments starting with `!'
399
+ rl = r.group('rest')
400
+ if rl[:4].lower() == 'f2py': # f2py directive
401
+ l = l + 4 * ' '
402
+ r = commentline.match(rl[4:])
403
+ if r:
404
+ l = l + r.group('line')
405
+ else:
406
+ l = l + rl[4:]
407
+ if l.strip() == '': # Skip empty line
408
+ cont = 0
409
+ continue
410
+ if sourcecodeform == 'fix':
411
+ if l[0] in ['*', 'c', '!', 'C', '#']:
412
+ if l[1:5].lower() == 'f2py': # f2py directive
413
+ l = ' ' + l[5:]
414
+ else: # Skip comment line
415
+ cont = 0
416
+ continue
417
+ elif strictf77:
418
+ if len(l) > 72:
419
+ l = l[:72]
420
+ if not (l[0] in spacedigits):
421
+ raise Exception('readfortrancode: Found non-(space,digit) char '
422
+ 'in the first column.\n\tAre you sure that '
423
+ 'this code is in fix form?\n\tline=%s' % repr(l))
424
+
425
+ if (not cont or strictf77) and (len(l) > 5 and not l[5] == ' '):
426
+ # Continuation of a previous line
427
+ ll = ll + l[6:]
428
+ finalline = ''
429
+ origfinalline = ''
430
+ else:
431
+ if not strictf77:
432
+ # F90 continuation
433
+ r = cont1.match(l)
434
+ if r:
435
+ l = r.group('line') # Continuation follows ..
436
+ if cont:
437
+ ll = ll + cont2.match(l).group('line')
438
+ finalline = ''
439
+ origfinalline = ''
440
+ else:
441
+ # clean up line beginning from possible digits.
442
+ l = ' ' + l[5:]
443
+ if localdolowercase:
444
+ finalline = ll.lower()
445
+ else:
446
+ finalline = ll
447
+ origfinalline = ll
448
+ ll = l
449
+ cont = (r is not None)
450
+ else:
451
+ # clean up line beginning from possible digits.
452
+ l = ' ' + l[5:]
453
+ if localdolowercase:
454
+ finalline = ll.lower()
455
+ else:
456
+ finalline = ll
457
+ origfinalline = ll
458
+ ll = l
459
+
460
+ elif sourcecodeform == 'free':
461
+ if not cont and ext == '.pyf' and mline_mark.match(l):
462
+ l = l + '\n'
463
+ while True:
464
+ lc = fin.readline()
465
+ if not lc:
466
+ errmess(
467
+ 'Unexpected end of file when reading multiline\n')
468
+ break
469
+ l = l + lc
470
+ if mline_mark.match(lc):
471
+ break
472
+ l = l.rstrip()
473
+ r = cont1.match(l)
474
+ if r:
475
+ l = r.group('line') # Continuation follows ..
476
+ if cont:
477
+ ll = ll + cont2.match(l).group('line')
478
+ finalline = ''
479
+ origfinalline = ''
480
+ else:
481
+ if localdolowercase:
482
+ finalline = ll.lower()
483
+ else:
484
+ finalline = ll
485
+ origfinalline = ll
486
+ ll = l
487
+ cont = (r is not None)
488
+ else:
489
+ raise ValueError(
490
+ "Flag sourcecodeform must be either 'fix' or 'free': %s" % repr(sourcecodeform))
491
+ filepositiontext = 'Line #%d in %s:"%s"\n\t' % (
492
+ fin.filelineno() - 1, currentfilename, l1)
493
+ m = includeline.match(origfinalline)
494
+ if m:
495
+ fn = m.group('name')
496
+ if os.path.isfile(fn):
497
+ readfortrancode(fn, dowithline=dowithline, istop=0)
498
+ else:
499
+ include_dirs = [
500
+ os.path.dirname(currentfilename)] + include_paths
501
+ foundfile = 0
502
+ for inc_dir in include_dirs:
503
+ fn1 = os.path.join(inc_dir, fn)
504
+ if os.path.isfile(fn1):
505
+ foundfile = 1
506
+ readfortrancode(fn1, dowithline=dowithline, istop=0)
507
+ break
508
+ if not foundfile:
509
+ outmess('readfortrancode: could not find include file %s in %s. Ignoring.\n' % (
510
+ repr(fn), os.pathsep.join(include_dirs)))
511
+ else:
512
+ dowithline(finalline)
513
+ l1 = ll
514
+ if localdolowercase:
515
+ finalline = ll.lower()
516
+ else:
517
+ finalline = ll
518
+ origfinalline = ll
519
+ filepositiontext = 'Line #%d in %s:"%s"\n\t' % (
520
+ fin.filelineno() - 1, currentfilename, l1)
521
+ m = includeline.match(origfinalline)
522
+ if m:
523
+ fn = m.group('name')
524
+ if os.path.isfile(fn):
525
+ readfortrancode(fn, dowithline=dowithline, istop=0)
526
+ else:
527
+ include_dirs = [os.path.dirname(currentfilename)] + include_paths
528
+ foundfile = 0
529
+ for inc_dir in include_dirs:
530
+ fn1 = os.path.join(inc_dir, fn)
531
+ if os.path.isfile(fn1):
532
+ foundfile = 1
533
+ readfortrancode(fn1, dowithline=dowithline, istop=0)
534
+ break
535
+ if not foundfile:
536
+ outmess('readfortrancode: could not find include file %s in %s. Ignoring.\n' % (
537
+ repr(fn), os.pathsep.join(include_dirs)))
538
+ else:
539
+ dowithline(finalline)
540
+ filepositiontext = ''
541
+ fin.close()
542
+ if istop:
543
+ dowithline('', 1)
544
+ else:
545
+ gotnextfile, filepositiontext, currentfilename, sourcecodeform, strictf77,\
546
+ beginpattern, quiet, verbose, dolowercase = saveglobals
547
+
548
+ # Crack line
549
+ beforethisafter = r'\s*(?P<before>%s(?=\s*(\b(%s)\b)))' + \
550
+ r'\s*(?P<this>(\b(%s)\b))' + \
551
+ r'\s*(?P<after>%s)\s*\Z'
552
+ ##
553
+ fortrantypes = 'character|logical|integer|real|complex|double\s*(precision\s*(complex|)|complex)|type(?=\s*\([\w\s,=(*)]*\))|byte'
554
+ typespattern = re.compile(
555
+ beforethisafter % ('', fortrantypes, fortrantypes, '.*'), re.I), 'type'
556
+ typespattern4implicit = re.compile(beforethisafter % (
557
+ '', fortrantypes + '|static|automatic|undefined', fortrantypes + '|static|automatic|undefined', '.*'), re.I)
558
+ #
559
+ functionpattern = re.compile(beforethisafter % (
560
+ '([a-z]+[\w\s(=*+-/)]*?|)', 'function', 'function', '.*'), re.I), 'begin'
561
+ subroutinepattern = re.compile(beforethisafter % (
562
+ '[a-z\s]*?', 'subroutine', 'subroutine', '.*'), re.I), 'begin'
563
+ # modulepattern=re.compile(beforethisafter%('[a-z\s]*?','module','module','.*'),re.I),'begin'
564
+ #
565
+ groupbegins77 = r'program|block\s*data'
566
+ beginpattern77 = re.compile(
567
+ beforethisafter % ('', groupbegins77, groupbegins77, '.*'), re.I), 'begin'
568
+ groupbegins90 = groupbegins77 + \
569
+ r'|module(?!\s*procedure)|python\s*module|interface|type(?!\s*\()'
570
+ beginpattern90 = re.compile(
571
+ beforethisafter % ('', groupbegins90, groupbegins90, '.*'), re.I), 'begin'
572
+ groupends = r'end|endprogram|endblockdata|endmodule|endpythonmodule|endinterface'
573
+ endpattern = re.compile(
574
+ beforethisafter % ('', groupends, groupends, '[\w\s]*'), re.I), 'end'
575
+ # endifs='end\s*(if|do|where|select|while|forall)'
576
+ endifs = '(end\s*(if|do|where|select|while|forall))|(module\s*procedure)'
577
+ endifpattern = re.compile(
578
+ beforethisafter % ('[\w]*?', endifs, endifs, '[\w\s]*'), re.I), 'endif'
579
+ #
580
+ implicitpattern = re.compile(
581
+ beforethisafter % ('', 'implicit', 'implicit', '.*'), re.I), 'implicit'
582
+ dimensionpattern = re.compile(beforethisafter % (
583
+ '', 'dimension|virtual', 'dimension|virtual', '.*'), re.I), 'dimension'
584
+ externalpattern = re.compile(
585
+ beforethisafter % ('', 'external', 'external', '.*'), re.I), 'external'
586
+ optionalpattern = re.compile(
587
+ beforethisafter % ('', 'optional', 'optional', '.*'), re.I), 'optional'
588
+ requiredpattern = re.compile(
589
+ beforethisafter % ('', 'required', 'required', '.*'), re.I), 'required'
590
+ publicpattern = re.compile(
591
+ beforethisafter % ('', 'public', 'public', '.*'), re.I), 'public'
592
+ privatepattern = re.compile(
593
+ beforethisafter % ('', 'private', 'private', '.*'), re.I), 'private'
594
+ intrisicpattern = re.compile(
595
+ beforethisafter % ('', 'intrisic', 'intrisic', '.*'), re.I), 'intrisic'
596
+ intentpattern = re.compile(beforethisafter % (
597
+ '', 'intent|depend|note|check', 'intent|depend|note|check', '\s*\(.*?\).*'), re.I), 'intent'
598
+ parameterpattern = re.compile(
599
+ beforethisafter % ('', 'parameter', 'parameter', '\s*\(.*'), re.I), 'parameter'
600
+ datapattern = re.compile(
601
+ beforethisafter % ('', 'data', 'data', '.*'), re.I), 'data'
602
+ callpattern = re.compile(
603
+ beforethisafter % ('', 'call', 'call', '.*'), re.I), 'call'
604
+ entrypattern = re.compile(
605
+ beforethisafter % ('', 'entry', 'entry', '.*'), re.I), 'entry'
606
+ callfunpattern = re.compile(
607
+ beforethisafter % ('', 'callfun', 'callfun', '.*'), re.I), 'callfun'
608
+ commonpattern = re.compile(
609
+ beforethisafter % ('', 'common', 'common', '.*'), re.I), 'common'
610
+ usepattern = re.compile(
611
+ beforethisafter % ('', 'use', 'use', '.*'), re.I), 'use'
612
+ containspattern = re.compile(
613
+ beforethisafter % ('', 'contains', 'contains', ''), re.I), 'contains'
614
+ formatpattern = re.compile(
615
+ beforethisafter % ('', 'format', 'format', '.*'), re.I), 'format'
616
+ # Non-fortran and f2py-specific statements
617
+ f2pyenhancementspattern = re.compile(beforethisafter % ('', 'threadsafe|fortranname|callstatement|callprotoargument|usercode|pymethoddef',
618
+ 'threadsafe|fortranname|callstatement|callprotoargument|usercode|pymethoddef', '.*'), re.I | re.S), 'f2pyenhancements'
619
+ multilinepattern = re.compile(
620
+ r"\s*(?P<before>''')(?P<this>.*?)(?P<after>''')\s*\Z", re.S), 'multiline'
621
+ ##
622
+
623
+
624
+ def _simplifyargs(argsline):
625
+ a = []
626
+ for n in markoutercomma(argsline).split('@,@'):
627
+ for r in '(),':
628
+ n = n.replace(r, '_')
629
+ a.append(n)
630
+ return ','.join(a)
631
+
632
+ crackline_re_1 = re.compile(r'\s*(?P<result>\b[a-z]+[\w]*\b)\s*[=].*', re.I)
633
+
634
+
635
+ def crackline(line, reset=0):
636
+ """
637
+ reset=-1 --- initialize
638
+ reset=0 --- crack the line
639
+ reset=1 --- final check if mismatch of blocks occured
640
+
641
+ Cracked data is saved in grouplist[0].
642
+ """
643
+ global beginpattern, groupcounter, groupname, groupcache, grouplist
644
+ global filepositiontext, currentfilename, neededmodule, expectbegin
645
+ global skipblocksuntil, skipemptyends, previous_context, gotnextfile
646
+
647
+ if ';' in line and not (f2pyenhancementspattern[0].match(line) or
648
+ multilinepattern[0].match(line)):
649
+ for l in line.split(';'):
650
+ # XXX: non-zero reset values need testing
651
+ assert reset == 0, repr(reset)
652
+ crackline(l, reset)
653
+ return
654
+ if reset < 0:
655
+ groupcounter = 0
656
+ groupname = {groupcounter: ''}
657
+ groupcache = {groupcounter: {}}
658
+ grouplist = {groupcounter: []}
659
+ groupcache[groupcounter]['body'] = []
660
+ groupcache[groupcounter]['vars'] = {}
661
+ groupcache[groupcounter]['block'] = ''
662
+ groupcache[groupcounter]['name'] = ''
663
+ neededmodule = -1
664
+ skipblocksuntil = -1
665
+ return
666
+ if reset > 0:
667
+ fl = 0
668
+ if f77modulename and neededmodule == groupcounter:
669
+ fl = 2
670
+ while groupcounter > fl:
671
+ outmess('crackline: groupcounter=%s groupname=%s\n' %
672
+ (repr(groupcounter), repr(groupname)))
673
+ outmess(
674
+ 'crackline: Mismatch of blocks encountered. Trying to fix it by assuming "end" statement.\n')
675
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
676
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
677
+ del grouplist[groupcounter]
678
+ groupcounter = groupcounter - 1
679
+ if f77modulename and neededmodule == groupcounter:
680
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
681
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
682
+ del grouplist[groupcounter]
683
+ groupcounter = groupcounter - 1 # end interface
684
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
685
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
686
+ del grouplist[groupcounter]
687
+ groupcounter = groupcounter - 1 # end module
688
+ neededmodule = -1
689
+ return
690
+ if line == '':
691
+ return
692
+ flag = 0
693
+ for pat in [dimensionpattern, externalpattern, intentpattern, optionalpattern,
694
+ requiredpattern,
695
+ parameterpattern, datapattern, publicpattern, privatepattern,
696
+ intrisicpattern,
697
+ endifpattern, endpattern,
698
+ formatpattern,
699
+ beginpattern, functionpattern, subroutinepattern,
700
+ implicitpattern, typespattern, commonpattern,
701
+ callpattern, usepattern, containspattern,
702
+ entrypattern,
703
+ f2pyenhancementspattern,
704
+ multilinepattern
705
+ ]:
706
+ m = pat[0].match(line)
707
+ if m:
708
+ break
709
+ flag = flag + 1
710
+ if not m:
711
+ re_1 = crackline_re_1
712
+ if 0 <= skipblocksuntil <= groupcounter:
713
+ return
714
+ if 'externals' in groupcache[groupcounter]:
715
+ for name in groupcache[groupcounter]['externals']:
716
+ if name in invbadnames:
717
+ name = invbadnames[name]
718
+ if 'interfaced' in groupcache[groupcounter] and name in groupcache[groupcounter]['interfaced']:
719
+ continue
720
+ m1 = re.match(
721
+ r'(?P<before>[^"]*)\b%s\b\s*@\(@(?P<args>[^@]*)@\)@.*\Z' % name, markouterparen(line), re.I)
722
+ if m1:
723
+ m2 = re_1.match(m1.group('before'))
724
+ a = _simplifyargs(m1.group('args'))
725
+ if m2:
726
+ line = 'callfun %s(%s) result (%s)' % (
727
+ name, a, m2.group('result'))
728
+ else:
729
+ line = 'callfun %s(%s)' % (name, a)
730
+ m = callfunpattern[0].match(line)
731
+ if not m:
732
+ outmess(
733
+ 'crackline: could not resolve function call for line=%s.\n' % repr(line))
734
+ return
735
+ analyzeline(m, 'callfun', line)
736
+ return
737
+ if verbose > 1 or (verbose == 1 and currentfilename.lower().endswith('.pyf')):
738
+ previous_context = None
739
+ outmess('crackline:%d: No pattern for line\n' % (groupcounter))
740
+ return
741
+ elif pat[1] == 'end':
742
+ if 0 <= skipblocksuntil < groupcounter:
743
+ groupcounter = groupcounter - 1
744
+ if skipblocksuntil <= groupcounter:
745
+ return
746
+ if groupcounter <= 0:
747
+ raise Exception('crackline: groupcounter(=%s) is nonpositive. '
748
+ 'Check the blocks.'
749
+ % (groupcounter))
750
+ m1 = beginpattern[0].match((line))
751
+ if (m1) and (not m1.group('this') == groupname[groupcounter]):
752
+ raise Exception('crackline: End group %s does not match with '
753
+ 'previous Begin group %s\n\t%s' %
754
+ (repr(m1.group('this')), repr(groupname[groupcounter]),
755
+ filepositiontext)
756
+ )
757
+ if skipblocksuntil == groupcounter:
758
+ skipblocksuntil = -1
759
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
760
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
761
+ del grouplist[groupcounter]
762
+ groupcounter = groupcounter - 1
763
+ if not skipemptyends:
764
+ expectbegin = 1
765
+ elif pat[1] == 'begin':
766
+ if 0 <= skipblocksuntil <= groupcounter:
767
+ groupcounter = groupcounter + 1
768
+ return
769
+ gotnextfile = 0
770
+ analyzeline(m, pat[1], line)
771
+ expectbegin = 0
772
+ elif pat[1] == 'endif':
773
+ pass
774
+ elif pat[1] == 'contains':
775
+ if ignorecontains:
776
+ return
777
+ if 0 <= skipblocksuntil <= groupcounter:
778
+ return
779
+ skipblocksuntil = groupcounter
780
+ else:
781
+ if 0 <= skipblocksuntil <= groupcounter:
782
+ return
783
+ analyzeline(m, pat[1], line)
784
+
785
+
786
+ def markouterparen(line):
787
+ l = ''
788
+ f = 0
789
+ for c in line:
790
+ if c == '(':
791
+ f = f + 1
792
+ if f == 1:
793
+ l = l + '@(@'
794
+ continue
795
+ elif c == ')':
796
+ f = f - 1
797
+ if f == 0:
798
+ l = l + '@)@'
799
+ continue
800
+ l = l + c
801
+ return l
802
+
803
+
804
+ def markoutercomma(line, comma=','):
805
+ l = ''
806
+ f = 0
807
+ cc = ''
808
+ for c in line:
809
+ if (not cc or cc == ')') and c == '(':
810
+ f = f + 1
811
+ cc = ')'
812
+ elif not cc and c == '\'' and (not l or l[-1] != '\\'):
813
+ f = f + 1
814
+ cc = '\''
815
+ elif c == cc:
816
+ f = f - 1
817
+ if f == 0:
818
+ cc = ''
819
+ elif c == comma and f == 0:
820
+ l = l + '@' + comma + '@'
821
+ continue
822
+ l = l + c
823
+ assert not f, repr((f, line, l, cc))
824
+ return l
825
+
826
+
827
+ def unmarkouterparen(line):
828
+ r = line.replace('@(@', '(').replace('@)@', ')')
829
+ return r
830
+
831
+
832
+ def appenddecl(decl, decl2, force=1):
833
+ if not decl:
834
+ decl = {}
835
+ if not decl2:
836
+ return decl
837
+ if decl is decl2:
838
+ return decl
839
+ for k in list(decl2.keys()):
840
+ if k == 'typespec':
841
+ if force or k not in decl:
842
+ decl[k] = decl2[k]
843
+ elif k == 'attrspec':
844
+ for l in decl2[k]:
845
+ decl = setattrspec(decl, l, force)
846
+ elif k == 'kindselector':
847
+ decl = setkindselector(decl, decl2[k], force)
848
+ elif k == 'charselector':
849
+ decl = setcharselector(decl, decl2[k], force)
850
+ elif k in ['=', 'typename']:
851
+ if force or k not in decl:
852
+ decl[k] = decl2[k]
853
+ elif k == 'note':
854
+ pass
855
+ elif k in ['intent', 'check', 'dimension', 'optional', 'required']:
856
+ errmess('appenddecl: "%s" not implemented.\n' % k)
857
+ else:
858
+ raise Exception('appenddecl: Unknown variable definition key:' +
859
+ str(k))
860
+ return decl
861
+
862
+ selectpattern = re.compile(
863
+ r'\s*(?P<this>(@\(@.*?@\)@|[*][\d*]+|[*]\s*@\(@.*?@\)@|))(?P<after>.*)\Z', re.I)
864
+ nameargspattern = re.compile(
865
+ r'\s*(?P<name>\b[\w$]+\b)\s*(@\(@\s*(?P<args>[\w\s,]*)\s*@\)@|)\s*((result(\s*@\(@\s*(?P<result>\b[\w$]+\b)\s*@\)@|))|(bind\s*@\(@\s*(?P<bind>.*)\s*@\)@))*\s*\Z', re.I)
866
+ callnameargspattern = re.compile(
867
+ r'\s*(?P<name>\b[\w$]+\b)\s*@\(@\s*(?P<args>.*)\s*@\)@\s*\Z', re.I)
868
+ real16pattern = re.compile(
869
+ r'([-+]?(?:\d+(?:\.\d*)?|\d*\.\d+))[dD]((?:[-+]?\d+)?)')
870
+ real8pattern = re.compile(
871
+ r'([-+]?((?:\d+(?:\.\d*)?|\d*\.\d+))[eE]((?:[-+]?\d+)?)|(\d+\.\d*))')
872
+
873
+ _intentcallbackpattern = re.compile(r'intent\s*\(.*?\bcallback\b', re.I)
874
+
875
+
876
+ def _is_intent_callback(vdecl):
877
+ for a in vdecl.get('attrspec', []):
878
+ if _intentcallbackpattern.match(a):
879
+ return 1
880
+ return 0
881
+
882
+
883
+ def _resolvenameargspattern(line):
884
+ line = markouterparen(line)
885
+ m1 = nameargspattern.match(line)
886
+ if m1:
887
+ return m1.group('name'), m1.group('args'), m1.group('result'), m1.group('bind')
888
+ m1 = callnameargspattern.match(line)
889
+ if m1:
890
+ return m1.group('name'), m1.group('args'), None, None
891
+ return None, [], None, None
892
+
893
+
894
+ def analyzeline(m, case, line):
895
+ global groupcounter, groupname, groupcache, grouplist, filepositiontext
896
+ global currentfilename, f77modulename, neededinterface, neededmodule
897
+ global expectbegin, gotnextfile, previous_context
898
+
899
+ block = m.group('this')
900
+ if case != 'multiline':
901
+ previous_context = None
902
+ if expectbegin and case not in ['begin', 'call', 'callfun', 'type'] \
903
+ and not skipemptyends and groupcounter < 1:
904
+ newname = os.path.basename(currentfilename).split('.')[0]
905
+ outmess(
906
+ 'analyzeline: no group yet. Creating program group with name "%s".\n' % newname)
907
+ gotnextfile = 0
908
+ groupcounter = groupcounter + 1
909
+ groupname[groupcounter] = 'program'
910
+ groupcache[groupcounter] = {}
911
+ grouplist[groupcounter] = []
912
+ groupcache[groupcounter]['body'] = []
913
+ groupcache[groupcounter]['vars'] = {}
914
+ groupcache[groupcounter]['block'] = 'program'
915
+ groupcache[groupcounter]['name'] = newname
916
+ groupcache[groupcounter]['from'] = 'fromsky'
917
+ expectbegin = 0
918
+ if case in ['begin', 'call', 'callfun']:
919
+ # Crack line => block,name,args,result
920
+ block = block.lower()
921
+ if re.match(r'block\s*data', block, re.I):
922
+ block = 'block data'
923
+ if re.match(r'python\s*module', block, re.I):
924
+ block = 'python module'
925
+ name, args, result, bind = _resolvenameargspattern(m.group('after'))
926
+ if name is None:
927
+ if block == 'block data':
928
+ name = '_BLOCK_DATA_'
929
+ else:
930
+ name = ''
931
+ if block not in ['interface', 'block data']:
932
+ outmess('analyzeline: No name/args pattern found for line.\n')
933
+
934
+ previous_context = (block, name, groupcounter)
935
+ if args:
936
+ args = rmbadname([x.strip()
937
+ for x in markoutercomma(args).split('@,@')])
938
+ else:
939
+ args = []
940
+ if '' in args:
941
+ while '' in args:
942
+ args.remove('')
943
+ outmess(
944
+ 'analyzeline: argument list is malformed (missing argument).\n')
945
+
946
+ # end of crack line => block,name,args,result
947
+ needmodule = 0
948
+ needinterface = 0
949
+
950
+ if case in ['call', 'callfun']:
951
+ needinterface = 1
952
+ if 'args' not in groupcache[groupcounter]:
953
+ return
954
+ if name not in groupcache[groupcounter]['args']:
955
+ return
956
+ for it in grouplist[groupcounter]:
957
+ if it['name'] == name:
958
+ return
959
+ if name in groupcache[groupcounter]['interfaced']:
960
+ return
961
+ block = {'call': 'subroutine', 'callfun': 'function'}[case]
962
+ if f77modulename and neededmodule == -1 and groupcounter <= 1:
963
+ neededmodule = groupcounter + 2
964
+ needmodule = 1
965
+ if block != 'interface':
966
+ needinterface = 1
967
+ # Create new block(s)
968
+ groupcounter = groupcounter + 1
969
+ groupcache[groupcounter] = {}
970
+ grouplist[groupcounter] = []
971
+ if needmodule:
972
+ if verbose > 1:
973
+ outmess('analyzeline: Creating module block %s\n' %
974
+ repr(f77modulename), 0)
975
+ groupname[groupcounter] = 'module'
976
+ groupcache[groupcounter]['block'] = 'python module'
977
+ groupcache[groupcounter]['name'] = f77modulename
978
+ groupcache[groupcounter]['from'] = ''
979
+ groupcache[groupcounter]['body'] = []
980
+ groupcache[groupcounter]['externals'] = []
981
+ groupcache[groupcounter]['interfaced'] = []
982
+ groupcache[groupcounter]['vars'] = {}
983
+ groupcounter = groupcounter + 1
984
+ groupcache[groupcounter] = {}
985
+ grouplist[groupcounter] = []
986
+ if needinterface:
987
+ if verbose > 1:
988
+ outmess('analyzeline: Creating additional interface block (groupcounter=%s).\n' % (
989
+ groupcounter), 0)
990
+ groupname[groupcounter] = 'interface'
991
+ groupcache[groupcounter]['block'] = 'interface'
992
+ groupcache[groupcounter]['name'] = 'unknown_interface'
993
+ groupcache[groupcounter]['from'] = '%s:%s' % (
994
+ groupcache[groupcounter - 1]['from'], groupcache[groupcounter - 1]['name'])
995
+ groupcache[groupcounter]['body'] = []
996
+ groupcache[groupcounter]['externals'] = []
997
+ groupcache[groupcounter]['interfaced'] = []
998
+ groupcache[groupcounter]['vars'] = {}
999
+ groupcounter = groupcounter + 1
1000
+ groupcache[groupcounter] = {}
1001
+ grouplist[groupcounter] = []
1002
+ groupname[groupcounter] = block
1003
+ groupcache[groupcounter]['block'] = block
1004
+ if not name:
1005
+ name = 'unknown_' + block
1006
+ groupcache[groupcounter]['prefix'] = m.group('before')
1007
+ groupcache[groupcounter]['name'] = rmbadname1(name)
1008
+ groupcache[groupcounter]['result'] = result
1009
+ if groupcounter == 1:
1010
+ groupcache[groupcounter]['from'] = currentfilename
1011
+ else:
1012
+ if f77modulename and groupcounter == 3:
1013
+ groupcache[groupcounter]['from'] = '%s:%s' % (
1014
+ groupcache[groupcounter - 1]['from'], currentfilename)
1015
+ else:
1016
+ groupcache[groupcounter]['from'] = '%s:%s' % (
1017
+ groupcache[groupcounter - 1]['from'], groupcache[groupcounter - 1]['name'])
1018
+ for k in list(groupcache[groupcounter].keys()):
1019
+ if not groupcache[groupcounter][k]:
1020
+ del groupcache[groupcounter][k]
1021
+
1022
+ groupcache[groupcounter]['args'] = args
1023
+ groupcache[groupcounter]['body'] = []
1024
+ groupcache[groupcounter]['externals'] = []
1025
+ groupcache[groupcounter]['interfaced'] = []
1026
+ groupcache[groupcounter]['vars'] = {}
1027
+ groupcache[groupcounter]['entry'] = {}
1028
+ # end of creation
1029
+ if block == 'type':
1030
+ groupcache[groupcounter]['varnames'] = []
1031
+
1032
+ if case in ['call', 'callfun']: # set parents variables
1033
+ if name not in groupcache[groupcounter - 2]['externals']:
1034
+ groupcache[groupcounter - 2]['externals'].append(name)
1035
+ groupcache[groupcounter]['vars'] = copy.deepcopy(
1036
+ groupcache[groupcounter - 2]['vars'])
1037
+ try:
1038
+ del groupcache[groupcounter]['vars'][name][
1039
+ groupcache[groupcounter]['vars'][name]['attrspec'].index('external')]
1040
+ except:
1041
+ pass
1042
+ if block in ['function', 'subroutine']: # set global attributes
1043
+ try:
1044
+ groupcache[groupcounter]['vars'][name] = appenddecl(
1045
+ groupcache[groupcounter]['vars'][name], groupcache[groupcounter - 2]['vars'][''])
1046
+ except:
1047
+ pass
1048
+ if case == 'callfun': # return type
1049
+ if result and result in groupcache[groupcounter]['vars']:
1050
+ if not name == result:
1051
+ groupcache[groupcounter]['vars'][name] = appenddecl(
1052
+ groupcache[groupcounter]['vars'][name], groupcache[groupcounter]['vars'][result])
1053
+ # if groupcounter>1: # name is interfaced
1054
+ try:
1055
+ groupcache[groupcounter - 2]['interfaced'].append(name)
1056
+ except:
1057
+ pass
1058
+ if block == 'function':
1059
+ t = typespattern[0].match(m.group('before') + ' ' + name)
1060
+ if t:
1061
+ typespec, selector, attr, edecl = cracktypespec0(
1062
+ t.group('this'), t.group('after'))
1063
+ updatevars(typespec, selector, attr, edecl)
1064
+
1065
+ if case in ['call', 'callfun']:
1066
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
1067
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
1068
+ del grouplist[groupcounter]
1069
+ groupcounter = groupcounter - 1 # end routine
1070
+ grouplist[groupcounter - 1].append(groupcache[groupcounter])
1071
+ grouplist[groupcounter - 1][-1]['body'] = grouplist[groupcounter]
1072
+ del grouplist[groupcounter]
1073
+ groupcounter = groupcounter - 1 # end interface
1074
+
1075
+ elif case == 'entry':
1076
+ name, args, result, bind = _resolvenameargspattern(m.group('after'))
1077
+ if name is not None:
1078
+ if args:
1079
+ args = rmbadname([x.strip()
1080
+ for x in markoutercomma(args).split('@,@')])
1081
+ else:
1082
+ args = []
1083
+ assert result is None, repr(result)
1084
+ groupcache[groupcounter]['entry'][name] = args
1085
+ previous_context = ('entry', name, groupcounter)
1086
+ elif case == 'type':
1087
+ typespec, selector, attr, edecl = cracktypespec0(
1088
+ block, m.group('after'))
1089
+ last_name = updatevars(typespec, selector, attr, edecl)
1090
+ if last_name is not None:
1091
+ previous_context = ('variable', last_name, groupcounter)
1092
+ elif case in ['dimension', 'intent', 'optional', 'required', 'external', 'public', 'private', 'intrisic']:
1093
+ edecl = groupcache[groupcounter]['vars']
1094
+ ll = m.group('after').strip()
1095
+ i = ll.find('::')
1096
+ if i < 0 and case == 'intent':
1097
+ i = markouterparen(ll).find('@)@') - 2
1098
+ ll = ll[:i + 1] + '::' + ll[i + 1:]
1099
+ i = ll.find('::')
1100
+ if ll[i:] == '::' and 'args' in groupcache[groupcounter]:
1101
+ outmess('All arguments will have attribute %s%s\n' %
1102
+ (m.group('this'), ll[:i]))
1103
+ ll = ll + ','.join(groupcache[groupcounter]['args'])
1104
+ if i < 0:
1105
+ i = 0
1106
+ pl = ''
1107
+ else:
1108
+ pl = ll[:i].strip()
1109
+ ll = ll[i + 2:]
1110
+ ch = markoutercomma(pl).split('@,@')
1111
+ if len(ch) > 1:
1112
+ pl = ch[0]
1113
+ outmess('analyzeline: cannot handle multiple attributes without type specification. Ignoring %r.\n' % (
1114
+ ','.join(ch[1:])))
1115
+ last_name = None
1116
+
1117
+ for e in [x.strip() for x in markoutercomma(ll).split('@,@')]:
1118
+ m1 = namepattern.match(e)
1119
+ if not m1:
1120
+ if case in ['public', 'private']:
1121
+ k = ''
1122
+ else:
1123
+ print(m.groupdict())
1124
+ outmess('analyzeline: no name pattern found in %s statement for %s. Skipping.\n' % (
1125
+ case, repr(e)))
1126
+ continue
1127
+ else:
1128
+ k = rmbadname1(m1.group('name'))
1129
+ if k not in edecl:
1130
+ edecl[k] = {}
1131
+ if case == 'dimension':
1132
+ ap = case + m1.group('after')
1133
+ if case == 'intent':
1134
+ ap = m.group('this') + pl
1135
+ if _intentcallbackpattern.match(ap):
1136
+ if k not in groupcache[groupcounter]['args']:
1137
+ if groupcounter > 1:
1138
+ if '__user__' not in groupcache[groupcounter - 2]['name']:
1139
+ outmess(
1140
+ 'analyzeline: missing __user__ module (could be nothing)\n')
1141
+ # fixes ticket 1693
1142
+ if k != groupcache[groupcounter]['name']:
1143
+ outmess('analyzeline: appending intent(callback) %s'
1144
+ ' to %s arguments\n' % (k, groupcache[groupcounter]['name']))
1145
+ groupcache[groupcounter]['args'].append(k)
1146
+ else:
1147
+ errmess(
1148
+ 'analyzeline: intent(callback) %s is ignored' % (k))
1149
+ else:
1150
+ errmess('analyzeline: intent(callback) %s is already'
1151
+ ' in argument list' % (k))
1152
+ if case in ['optional', 'required', 'public', 'external', 'private', 'intrisic']:
1153
+ ap = case
1154
+ if 'attrspec' in edecl[k]:
1155
+ edecl[k]['attrspec'].append(ap)
1156
+ else:
1157
+ edecl[k]['attrspec'] = [ap]
1158
+ if case == 'external':
1159
+ if groupcache[groupcounter]['block'] == 'program':
1160
+ outmess('analyzeline: ignoring program arguments\n')
1161
+ continue
1162
+ if k not in groupcache[groupcounter]['args']:
1163
+ continue
1164
+ if 'externals' not in groupcache[groupcounter]:
1165
+ groupcache[groupcounter]['externals'] = []
1166
+ groupcache[groupcounter]['externals'].append(k)
1167
+ last_name = k
1168
+ groupcache[groupcounter]['vars'] = edecl
1169
+ if last_name is not None:
1170
+ previous_context = ('variable', last_name, groupcounter)
1171
+ elif case == 'parameter':
1172
+ edecl = groupcache[groupcounter]['vars']
1173
+ ll = m.group('after').strip()[1:-1]
1174
+ last_name = None
1175
+ for e in markoutercomma(ll).split('@,@'):
1176
+ try:
1177
+ k, initexpr = [x.strip() for x in e.split('=')]
1178
+ except:
1179
+ outmess(
1180
+ 'analyzeline: could not extract name,expr in parameter statement "%s" of "%s"\n' % (e, ll))
1181
+ continue
1182
+ params = get_parameters(edecl)
1183
+ k = rmbadname1(k)
1184
+ if k not in edecl:
1185
+ edecl[k] = {}
1186
+ if '=' in edecl[k] and (not edecl[k]['='] == initexpr):
1187
+ outmess('analyzeline: Overwriting the value of parameter "%s" ("%s") with "%s".\n' % (
1188
+ k, edecl[k]['='], initexpr))
1189
+ t = determineexprtype(initexpr, params)
1190
+ if t:
1191
+ if t.get('typespec') == 'real':
1192
+ tt = list(initexpr)
1193
+ for m in real16pattern.finditer(initexpr):
1194
+ tt[m.start():m.end()] = list(
1195
+ initexpr[m.start():m.end()].lower().replace('d', 'e'))
1196
+ initexpr = ''.join(tt)
1197
+ elif t.get('typespec') == 'complex':
1198
+ initexpr = initexpr[1:].lower().replace('d', 'e').\
1199
+ replace(',', '+1j*(')
1200
+ try:
1201
+ v = eval(initexpr, {}, params)
1202
+ except (SyntaxError, NameError, TypeError) as msg:
1203
+ errmess('analyzeline: Failed to evaluate %r. Ignoring: %s\n'
1204
+ % (initexpr, msg))
1205
+ continue
1206
+ edecl[k]['='] = repr(v)
1207
+ if 'attrspec' in edecl[k]:
1208
+ edecl[k]['attrspec'].append('parameter')
1209
+ else:
1210
+ edecl[k]['attrspec'] = ['parameter']
1211
+ last_name = k
1212
+ groupcache[groupcounter]['vars'] = edecl
1213
+ if last_name is not None:
1214
+ previous_context = ('variable', last_name, groupcounter)
1215
+ elif case == 'implicit':
1216
+ if m.group('after').strip().lower() == 'none':
1217
+ groupcache[groupcounter]['implicit'] = None
1218
+ elif m.group('after'):
1219
+ if 'implicit' in groupcache[groupcounter]:
1220
+ impl = groupcache[groupcounter]['implicit']
1221
+ else:
1222
+ impl = {}
1223
+ if impl is None:
1224
+ outmess(
1225
+ 'analyzeline: Overwriting earlier "implicit none" statement.\n')
1226
+ impl = {}
1227
+ for e in markoutercomma(m.group('after')).split('@,@'):
1228
+ decl = {}
1229
+ m1 = re.match(
1230
+ r'\s*(?P<this>.*?)\s*(\(\s*(?P<after>[a-z-, ]+)\s*\)\s*|)\Z', e, re.I)
1231
+ if not m1:
1232
+ outmess(
1233
+ 'analyzeline: could not extract info of implicit statement part "%s"\n' % (e))
1234
+ continue
1235
+ m2 = typespattern4implicit.match(m1.group('this'))
1236
+ if not m2:
1237
+ outmess(
1238
+ 'analyzeline: could not extract types pattern of implicit statement part "%s"\n' % (e))
1239
+ continue
1240
+ typespec, selector, attr, edecl = cracktypespec0(
1241
+ m2.group('this'), m2.group('after'))
1242
+ kindselect, charselect, typename = cracktypespec(
1243
+ typespec, selector)
1244
+ decl['typespec'] = typespec
1245
+ decl['kindselector'] = kindselect
1246
+ decl['charselector'] = charselect
1247
+ decl['typename'] = typename
1248
+ for k in list(decl.keys()):
1249
+ if not decl[k]:
1250
+ del decl[k]
1251
+ for r in markoutercomma(m1.group('after')).split('@,@'):
1252
+ if '-' in r:
1253
+ try:
1254
+ begc, endc = [x.strip() for x in r.split('-')]
1255
+ except:
1256
+ outmess(
1257
+ 'analyzeline: expected "<char>-<char>" instead of "%s" in range list of implicit statement\n' % r)
1258
+ continue
1259
+ else:
1260
+ begc = endc = r.strip()
1261
+ if not len(begc) == len(endc) == 1:
1262
+ outmess(
1263
+ 'analyzeline: expected "<char>-<char>" instead of "%s" in range list of implicit statement (2)\n' % r)
1264
+ continue
1265
+ for o in range(ord(begc), ord(endc) + 1):
1266
+ impl[chr(o)] = decl
1267
+ groupcache[groupcounter]['implicit'] = impl
1268
+ elif case == 'data':
1269
+ ll = []
1270
+ dl = ''
1271
+ il = ''
1272
+ f = 0
1273
+ fc = 1
1274
+ inp = 0
1275
+ for c in m.group('after'):
1276
+ if not inp:
1277
+ if c == "'":
1278
+ fc = not fc
1279
+ if c == '/' and fc:
1280
+ f = f + 1
1281
+ continue
1282
+ if c == '(':
1283
+ inp = inp + 1
1284
+ elif c == ')':
1285
+ inp = inp - 1
1286
+ if f == 0:
1287
+ dl = dl + c
1288
+ elif f == 1:
1289
+ il = il + c
1290
+ elif f == 2:
1291
+ dl = dl.strip()
1292
+ if dl.startswith(','):
1293
+ dl = dl[1:].strip()
1294
+ ll.append([dl, il])
1295
+ dl = c
1296
+ il = ''
1297
+ f = 0
1298
+ if f == 2:
1299
+ dl = dl.strip()
1300
+ if dl.startswith(','):
1301
+ dl = dl[1:].strip()
1302
+ ll.append([dl, il])
1303
+ vars = {}
1304
+ if 'vars' in groupcache[groupcounter]:
1305
+ vars = groupcache[groupcounter]['vars']
1306
+ last_name = None
1307
+ for l in ll:
1308
+ l = [x.strip() for x in l]
1309
+ if l[0][0] == ',':
1310
+ l[0] = l[0][1:]
1311
+ if l[0][0] == '(':
1312
+ outmess(
1313
+ 'analyzeline: implied-DO list "%s" is not supported. Skipping.\n' % l[0])
1314
+ continue
1315
+ i = 0
1316
+ j = 0
1317
+ llen = len(l[1])
1318
+ for v in rmbadname([x.strip() for x in markoutercomma(l[0]).split('@,@')]):
1319
+ if v[0] == '(':
1320
+ outmess(
1321
+ 'analyzeline: implied-DO list "%s" is not supported. Skipping.\n' % v)
1322
+ # XXX: subsequent init expressions may get wrong values.
1323
+ # Ignoring since data statements are irrelevant for
1324
+ # wrapping.
1325
+ continue
1326
+ fc = 0
1327
+ while (i < llen) and (fc or not l[1][i] == ','):
1328
+ if l[1][i] == "'":
1329
+ fc = not fc
1330
+ i = i + 1
1331
+ i = i + 1
1332
+ if v not in vars:
1333
+ vars[v] = {}
1334
+ if '=' in vars[v] and not vars[v]['='] == l[1][j:i - 1]:
1335
+ outmess('analyzeline: changing init expression of "%s" ("%s") to "%s"\n' % (
1336
+ v, vars[v]['='], l[1][j:i - 1]))
1337
+ vars[v]['='] = l[1][j:i - 1]
1338
+ j = i
1339
+ last_name = v
1340
+ groupcache[groupcounter]['vars'] = vars
1341
+ if last_name is not None:
1342
+ previous_context = ('variable', last_name, groupcounter)
1343
+ elif case == 'common':
1344
+ line = m.group('after').strip()
1345
+ if not line[0] == '/':
1346
+ line = '//' + line
1347
+ cl = []
1348
+ f = 0
1349
+ bn = ''
1350
+ ol = ''
1351
+ for c in line:
1352
+ if c == '/':
1353
+ f = f + 1
1354
+ continue
1355
+ if f >= 3:
1356
+ bn = bn.strip()
1357
+ if not bn:
1358
+ bn = '_BLNK_'
1359
+ cl.append([bn, ol])
1360
+ f = f - 2
1361
+ bn = ''
1362
+ ol = ''
1363
+ if f % 2:
1364
+ bn = bn + c
1365
+ else:
1366
+ ol = ol + c
1367
+ bn = bn.strip()
1368
+ if not bn:
1369
+ bn = '_BLNK_'
1370
+ cl.append([bn, ol])
1371
+ commonkey = {}
1372
+ if 'common' in groupcache[groupcounter]:
1373
+ commonkey = groupcache[groupcounter]['common']
1374
+ for c in cl:
1375
+ if c[0] in commonkey:
1376
+ outmess(
1377
+ 'analyzeline: previously defined common block encountered. Skipping.\n')
1378
+ continue
1379
+ commonkey[c[0]] = []
1380
+ for i in [x.strip() for x in markoutercomma(c[1]).split('@,@')]:
1381
+ if i:
1382
+ commonkey[c[0]].append(i)
1383
+ groupcache[groupcounter]['common'] = commonkey
1384
+ previous_context = ('common', bn, groupcounter)
1385
+ elif case == 'use':
1386
+ m1 = re.match(
1387
+ r'\A\s*(?P<name>\b[\w]+\b)\s*((,(\s*\bonly\b\s*:|(?P<notonly>))\s*(?P<list>.*))|)\s*\Z', m.group('after'), re.I)
1388
+ if m1:
1389
+ mm = m1.groupdict()
1390
+ if 'use' not in groupcache[groupcounter]:
1391
+ groupcache[groupcounter]['use'] = {}
1392
+ name = m1.group('name')
1393
+ groupcache[groupcounter]['use'][name] = {}
1394
+ isonly = 0
1395
+ if 'list' in mm and mm['list'] is not None:
1396
+ if 'notonly' in mm and mm['notonly'] is None:
1397
+ isonly = 1
1398
+ groupcache[groupcounter]['use'][name]['only'] = isonly
1399
+ ll = [x.strip() for x in mm['list'].split(',')]
1400
+ rl = {}
1401
+ for l in ll:
1402
+ if '=' in l:
1403
+ m2 = re.match(
1404
+ r'\A\s*(?P<local>\b[\w]+\b)\s*=\s*>\s*(?P<use>\b[\w]+\b)\s*\Z', l, re.I)
1405
+ if m2:
1406
+ rl[m2.group('local').strip()] = m2.group(
1407
+ 'use').strip()
1408
+ else:
1409
+ outmess(
1410
+ 'analyzeline: Not local=>use pattern found in %s\n' % repr(l))
1411
+ else:
1412
+ rl[l] = l
1413
+ groupcache[groupcounter]['use'][name]['map'] = rl
1414
+ else:
1415
+ pass
1416
+ else:
1417
+ print(m.groupdict())
1418
+ outmess('analyzeline: Could not crack the use statement.\n')
1419
+ elif case in ['f2pyenhancements']:
1420
+ if 'f2pyenhancements' not in groupcache[groupcounter]:
1421
+ groupcache[groupcounter]['f2pyenhancements'] = {}
1422
+ d = groupcache[groupcounter]['f2pyenhancements']
1423
+ if m.group('this') == 'usercode' and 'usercode' in d:
1424
+ if isinstance(d['usercode'], str):
1425
+ d['usercode'] = [d['usercode']]
1426
+ d['usercode'].append(m.group('after'))
1427
+ else:
1428
+ d[m.group('this')] = m.group('after')
1429
+ elif case == 'multiline':
1430
+ if previous_context is None:
1431
+ if verbose:
1432
+ outmess('analyzeline: No context for multiline block.\n')
1433
+ return
1434
+ gc = groupcounter
1435
+ appendmultiline(groupcache[gc],
1436
+ previous_context[:2],
1437
+ m.group('this'))
1438
+ else:
1439
+ if verbose > 1:
1440
+ print(m.groupdict())
1441
+ outmess('analyzeline: No code implemented for line.\n')
1442
+
1443
+
1444
+ def appendmultiline(group, context_name, ml):
1445
+ if 'f2pymultilines' not in group:
1446
+ group['f2pymultilines'] = {}
1447
+ d = group['f2pymultilines']
1448
+ if context_name not in d:
1449
+ d[context_name] = []
1450
+ d[context_name].append(ml)
1451
+ return
1452
+
1453
+
1454
+ def cracktypespec0(typespec, ll):
1455
+ selector = None
1456
+ attr = None
1457
+ if re.match(r'double\s*complex', typespec, re.I):
1458
+ typespec = 'double complex'
1459
+ elif re.match(r'double\s*precision', typespec, re.I):
1460
+ typespec = 'double precision'
1461
+ else:
1462
+ typespec = typespec.strip().lower()
1463
+ m1 = selectpattern.match(markouterparen(ll))
1464
+ if not m1:
1465
+ outmess(
1466
+ 'cracktypespec0: no kind/char_selector pattern found for line.\n')
1467
+ return
1468
+ d = m1.groupdict()
1469
+ for k in list(d.keys()):
1470
+ d[k] = unmarkouterparen(d[k])
1471
+ if typespec in ['complex', 'integer', 'logical', 'real', 'character', 'type']:
1472
+ selector = d['this']
1473
+ ll = d['after']
1474
+ i = ll.find('::')
1475
+ if i >= 0:
1476
+ attr = ll[:i].strip()
1477
+ ll = ll[i + 2:]
1478
+ return typespec, selector, attr, ll
1479
+ #####
1480
+ namepattern = re.compile(r'\s*(?P<name>\b[\w]+\b)\s*(?P<after>.*)\s*\Z', re.I)
1481
+ kindselector = re.compile(
1482
+ r'\s*(\(\s*(kind\s*=)?\s*(?P<kind>.*)\s*\)|[*]\s*(?P<kind2>.*?))\s*\Z', re.I)
1483
+ charselector = re.compile(
1484
+ r'\s*(\((?P<lenkind>.*)\)|[*]\s*(?P<charlen>.*))\s*\Z', re.I)
1485
+ lenkindpattern = re.compile(
1486
+ r'\s*(kind\s*=\s*(?P<kind>.*?)\s*(@,@\s*len\s*=\s*(?P<len>.*)|)|(len\s*=\s*|)(?P<len2>.*?)\s*(@,@\s*(kind\s*=\s*|)(?P<kind2>.*)|))\s*\Z', re.I)
1487
+ lenarraypattern = re.compile(
1488
+ r'\s*(@\(@\s*(?!/)\s*(?P<array>.*?)\s*@\)@\s*[*]\s*(?P<len>.*?)|([*]\s*(?P<len2>.*?)|)\s*(@\(@\s*(?!/)\s*(?P<array2>.*?)\s*@\)@|))\s*(=\s*(?P<init>.*?)|(@\(@|)/\s*(?P<init2>.*?)\s*/(@\)@|)|)\s*\Z', re.I)
1489
+
1490
+
1491
+ def removespaces(expr):
1492
+ expr = expr.strip()
1493
+ if len(expr) <= 1:
1494
+ return expr
1495
+ expr2 = expr[0]
1496
+ for i in range(1, len(expr) - 1):
1497
+ if (expr[i] == ' ' and
1498
+ ((expr[i + 1] in "()[]{}=+-/* ") or
1499
+ (expr[i - 1] in "()[]{}=+-/* "))):
1500
+ continue
1501
+ expr2 = expr2 + expr[i]
1502
+ expr2 = expr2 + expr[-1]
1503
+ return expr2
1504
+
1505
+
1506
+ def markinnerspaces(line):
1507
+ l = ''
1508
+ f = 0
1509
+ cc = '\''
1510
+ cb = ''
1511
+ for c in line:
1512
+ if cb == '\\' and c in ['\\', '\'', '"']:
1513
+ l = l + c
1514
+ cb = c
1515
+ continue
1516
+ if f == 0 and c in ['\'', '"']:
1517
+ cc = c
1518
+ if c == cc:
1519
+ f = f + 1
1520
+ elif c == cc:
1521
+ f = f - 1
1522
+ elif c == ' ' and f == 1:
1523
+ l = l + '@_@'
1524
+ continue
1525
+ l = l + c
1526
+ cb = c
1527
+ return l
1528
+
1529
+
1530
+ def updatevars(typespec, selector, attrspec, entitydecl):
1531
+ global groupcache, groupcounter
1532
+
1533
+ last_name = None
1534
+ kindselect, charselect, typename = cracktypespec(typespec, selector)
1535
+ if attrspec:
1536
+ attrspec = [x.strip() for x in markoutercomma(attrspec).split('@,@')]
1537
+ l = []
1538
+ c = re.compile(r'(?P<start>[a-zA-Z]+)')
1539
+ for a in attrspec:
1540
+ if not a:
1541
+ continue
1542
+ m = c.match(a)
1543
+ if m:
1544
+ s = m.group('start').lower()
1545
+ a = s + a[len(s):]
1546
+ l.append(a)
1547
+ attrspec = l
1548
+ el = [x.strip() for x in markoutercomma(entitydecl).split('@,@')]
1549
+ el1 = []
1550
+ for e in el:
1551
+ for e1 in [x.strip() for x in markoutercomma(removespaces(markinnerspaces(e)), comma=' ').split('@ @')]:
1552
+ if e1:
1553
+ el1.append(e1.replace('@_@', ' '))
1554
+ for e in el1:
1555
+ m = namepattern.match(e)
1556
+ if not m:
1557
+ outmess(
1558
+ 'updatevars: no name pattern found for entity=%s. Skipping.\n' % (repr(e)))
1559
+ continue
1560
+ ename = rmbadname1(m.group('name'))
1561
+ edecl = {}
1562
+ if ename in groupcache[groupcounter]['vars']:
1563
+ edecl = groupcache[groupcounter]['vars'][ename].copy()
1564
+ not_has_typespec = 'typespec' not in edecl
1565
+ if not_has_typespec:
1566
+ edecl['typespec'] = typespec
1567
+ elif typespec and (not typespec == edecl['typespec']):
1568
+ outmess('updatevars: attempt to change the type of "%s" ("%s") to "%s". Ignoring.\n' % (
1569
+ ename, edecl['typespec'], typespec))
1570
+ if 'kindselector' not in edecl:
1571
+ edecl['kindselector'] = copy.copy(kindselect)
1572
+ elif kindselect:
1573
+ for k in list(kindselect.keys()):
1574
+ if k in edecl['kindselector'] and (not kindselect[k] == edecl['kindselector'][k]):
1575
+ outmess('updatevars: attempt to change the kindselector "%s" of "%s" ("%s") to "%s". Ignoring.\n' % (
1576
+ k, ename, edecl['kindselector'][k], kindselect[k]))
1577
+ else:
1578
+ edecl['kindselector'][k] = copy.copy(kindselect[k])
1579
+ if 'charselector' not in edecl and charselect:
1580
+ if not_has_typespec:
1581
+ edecl['charselector'] = charselect
1582
+ else:
1583
+ errmess('updatevars:%s: attempt to change empty charselector to %r. Ignoring.\n'
1584
+ % (ename, charselect))
1585
+ elif charselect:
1586
+ for k in list(charselect.keys()):
1587
+ if k in edecl['charselector'] and (not charselect[k] == edecl['charselector'][k]):
1588
+ outmess('updatevars: attempt to change the charselector "%s" of "%s" ("%s") to "%s". Ignoring.\n' % (
1589
+ k, ename, edecl['charselector'][k], charselect[k]))
1590
+ else:
1591
+ edecl['charselector'][k] = copy.copy(charselect[k])
1592
+ if 'typename' not in edecl:
1593
+ edecl['typename'] = typename
1594
+ elif typename and (not edecl['typename'] == typename):
1595
+ outmess('updatevars: attempt to change the typename of "%s" ("%s") to "%s". Ignoring.\n' % (
1596
+ ename, edecl['typename'], typename))
1597
+ if 'attrspec' not in edecl:
1598
+ edecl['attrspec'] = copy.copy(attrspec)
1599
+ elif attrspec:
1600
+ for a in attrspec:
1601
+ if a not in edecl['attrspec']:
1602
+ edecl['attrspec'].append(a)
1603
+ else:
1604
+ edecl['typespec'] = copy.copy(typespec)
1605
+ edecl['kindselector'] = copy.copy(kindselect)
1606
+ edecl['charselector'] = copy.copy(charselect)
1607
+ edecl['typename'] = typename
1608
+ edecl['attrspec'] = copy.copy(attrspec)
1609
+ if m.group('after'):
1610
+ m1 = lenarraypattern.match(markouterparen(m.group('after')))
1611
+ if m1:
1612
+ d1 = m1.groupdict()
1613
+ for lk in ['len', 'array', 'init']:
1614
+ if d1[lk + '2'] is not None:
1615
+ d1[lk] = d1[lk + '2']
1616
+ del d1[lk + '2']
1617
+ for k in list(d1.keys()):
1618
+ if d1[k] is not None:
1619
+ d1[k] = unmarkouterparen(d1[k])
1620
+ else:
1621
+ del d1[k]
1622
+ if 'len' in d1 and 'array' in d1:
1623
+ if d1['len'] == '':
1624
+ d1['len'] = d1['array']
1625
+ del d1['array']
1626
+ else:
1627
+ d1['array'] = d1['array'] + ',' + d1['len']
1628
+ del d1['len']
1629
+ errmess('updatevars: "%s %s" is mapped to "%s %s(%s)"\n' % (
1630
+ typespec, e, typespec, ename, d1['array']))
1631
+ if 'array' in d1:
1632
+ dm = 'dimension(%s)' % d1['array']
1633
+ if 'attrspec' not in edecl or (not edecl['attrspec']):
1634
+ edecl['attrspec'] = [dm]
1635
+ else:
1636
+ edecl['attrspec'].append(dm)
1637
+ for dm1 in edecl['attrspec']:
1638
+ if dm1[:9] == 'dimension' and dm1 != dm:
1639
+ del edecl['attrspec'][-1]
1640
+ errmess('updatevars:%s: attempt to change %r to %r. Ignoring.\n'
1641
+ % (ename, dm1, dm))
1642
+ break
1643
+
1644
+ if 'len' in d1:
1645
+ if typespec in ['complex', 'integer', 'logical', 'real']:
1646
+ if ('kindselector' not in edecl) or (not edecl['kindselector']):
1647
+ edecl['kindselector'] = {}
1648
+ edecl['kindselector']['*'] = d1['len']
1649
+ elif typespec == 'character':
1650
+ if ('charselector' not in edecl) or (not edecl['charselector']):
1651
+ edecl['charselector'] = {}
1652
+ if 'len' in edecl['charselector']:
1653
+ del edecl['charselector']['len']
1654
+ edecl['charselector']['*'] = d1['len']
1655
+ if 'init' in d1:
1656
+ if '=' in edecl and (not edecl['='] == d1['init']):
1657
+ outmess('updatevars: attempt to change the init expression of "%s" ("%s") to "%s". Ignoring.\n' % (
1658
+ ename, edecl['='], d1['init']))
1659
+ else:
1660
+ edecl['='] = d1['init']
1661
+ else:
1662
+ outmess('updatevars: could not crack entity declaration "%s". Ignoring.\n' % (
1663
+ ename + m.group('after')))
1664
+ for k in list(edecl.keys()):
1665
+ if not edecl[k]:
1666
+ del edecl[k]
1667
+ groupcache[groupcounter]['vars'][ename] = edecl
1668
+ if 'varnames' in groupcache[groupcounter]:
1669
+ groupcache[groupcounter]['varnames'].append(ename)
1670
+ last_name = ename
1671
+ return last_name
1672
+
1673
+
1674
+ def cracktypespec(typespec, selector):
1675
+ kindselect = None
1676
+ charselect = None
1677
+ typename = None
1678
+ if selector:
1679
+ if typespec in ['complex', 'integer', 'logical', 'real']:
1680
+ kindselect = kindselector.match(selector)
1681
+ if not kindselect:
1682
+ outmess(
1683
+ 'cracktypespec: no kindselector pattern found for %s\n' % (repr(selector)))
1684
+ return
1685
+ kindselect = kindselect.groupdict()
1686
+ kindselect['*'] = kindselect['kind2']
1687
+ del kindselect['kind2']
1688
+ for k in list(kindselect.keys()):
1689
+ if not kindselect[k]:
1690
+ del kindselect[k]
1691
+ for k, i in list(kindselect.items()):
1692
+ kindselect[k] = rmbadname1(i)
1693
+ elif typespec == 'character':
1694
+ charselect = charselector.match(selector)
1695
+ if not charselect:
1696
+ outmess(
1697
+ 'cracktypespec: no charselector pattern found for %s\n' % (repr(selector)))
1698
+ return
1699
+ charselect = charselect.groupdict()
1700
+ charselect['*'] = charselect['charlen']
1701
+ del charselect['charlen']
1702
+ if charselect['lenkind']:
1703
+ lenkind = lenkindpattern.match(
1704
+ markoutercomma(charselect['lenkind']))
1705
+ lenkind = lenkind.groupdict()
1706
+ for lk in ['len', 'kind']:
1707
+ if lenkind[lk + '2']:
1708
+ lenkind[lk] = lenkind[lk + '2']
1709
+ charselect[lk] = lenkind[lk]
1710
+ del lenkind[lk + '2']
1711
+ del charselect['lenkind']
1712
+ for k in list(charselect.keys()):
1713
+ if not charselect[k]:
1714
+ del charselect[k]
1715
+ for k, i in list(charselect.items()):
1716
+ charselect[k] = rmbadname1(i)
1717
+ elif typespec == 'type':
1718
+ typename = re.match(r'\s*\(\s*(?P<name>\w+)\s*\)', selector, re.I)
1719
+ if typename:
1720
+ typename = typename.group('name')
1721
+ else:
1722
+ outmess('cracktypespec: no typename found in %s\n' %
1723
+ (repr(typespec + selector)))
1724
+ else:
1725
+ outmess('cracktypespec: no selector used for %s\n' %
1726
+ (repr(selector)))
1727
+ return kindselect, charselect, typename
1728
+ ######
1729
+
1730
+
1731
+ def setattrspec(decl, attr, force=0):
1732
+ if not decl:
1733
+ decl = {}
1734
+ if not attr:
1735
+ return decl
1736
+ if 'attrspec' not in decl:
1737
+ decl['attrspec'] = [attr]
1738
+ return decl
1739
+ if force:
1740
+ decl['attrspec'].append(attr)
1741
+ if attr in decl['attrspec']:
1742
+ return decl
1743
+ if attr == 'static' and 'automatic' not in decl['attrspec']:
1744
+ decl['attrspec'].append(attr)
1745
+ elif attr == 'automatic' and 'static' not in decl['attrspec']:
1746
+ decl['attrspec'].append(attr)
1747
+ elif attr == 'public' and 'private' not in decl['attrspec']:
1748
+ decl['attrspec'].append(attr)
1749
+ elif attr == 'private' and 'public' not in decl['attrspec']:
1750
+ decl['attrspec'].append(attr)
1751
+ else:
1752
+ decl['attrspec'].append(attr)
1753
+ return decl
1754
+
1755
+
1756
+ def setkindselector(decl, sel, force=0):
1757
+ if not decl:
1758
+ decl = {}
1759
+ if not sel:
1760
+ return decl
1761
+ if 'kindselector' not in decl:
1762
+ decl['kindselector'] = sel
1763
+ return decl
1764
+ for k in list(sel.keys()):
1765
+ if force or k not in decl['kindselector']:
1766
+ decl['kindselector'][k] = sel[k]
1767
+ return decl
1768
+
1769
+
1770
+ def setcharselector(decl, sel, force=0):
1771
+ if not decl:
1772
+ decl = {}
1773
+ if not sel:
1774
+ return decl
1775
+ if 'charselector' not in decl:
1776
+ decl['charselector'] = sel
1777
+ return decl
1778
+ for k in list(sel.keys()):
1779
+ if force or k not in decl['charselector']:
1780
+ decl['charselector'][k] = sel[k]
1781
+ return decl
1782
+
1783
+
1784
+ def getblockname(block, unknown='unknown'):
1785
+ if 'name' in block:
1786
+ return block['name']
1787
+ return unknown
1788
+
1789
+ # post processing
1790
+
1791
+
1792
+ def setmesstext(block):
1793
+ global filepositiontext
1794
+
1795
+ try:
1796
+ filepositiontext = 'In: %s:%s\n' % (block['from'], block['name'])
1797
+ except:
1798
+ pass
1799
+
1800
+
1801
+ def get_usedict(block):
1802
+ usedict = {}
1803
+ if 'parent_block' in block:
1804
+ usedict = get_usedict(block['parent_block'])
1805
+ if 'use' in block:
1806
+ usedict.update(block['use'])
1807
+ return usedict
1808
+
1809
+
1810
+ def get_useparameters(block, param_map=None):
1811
+ global f90modulevars
1812
+
1813
+ if param_map is None:
1814
+ param_map = {}
1815
+ usedict = get_usedict(block)
1816
+ if not usedict:
1817
+ return param_map
1818
+ for usename, mapping in list(usedict.items()):
1819
+ usename = usename.lower()
1820
+ if usename not in f90modulevars:
1821
+ outmess('get_useparameters: no module %s info used by %s\n' %
1822
+ (usename, block.get('name')))
1823
+ continue
1824
+ mvars = f90modulevars[usename]
1825
+ params = get_parameters(mvars)
1826
+ if not params:
1827
+ continue
1828
+ # XXX: apply mapping
1829
+ if mapping:
1830
+ errmess('get_useparameters: mapping for %s not impl.' % (mapping))
1831
+ for k, v in list(params.items()):
1832
+ if k in param_map:
1833
+ outmess('get_useparameters: overriding parameter %s with'
1834
+ ' value from module %s' % (repr(k), repr(usename)))
1835
+ param_map[k] = v
1836
+
1837
+ return param_map
1838
+
1839
+
1840
+ def postcrack2(block, tab='', param_map=None):
1841
+ global f90modulevars
1842
+
1843
+ if not f90modulevars:
1844
+ return block
1845
+ if isinstance(block, list):
1846
+ ret = []
1847
+ for g in block:
1848
+ g = postcrack2(g, tab=tab + '\t', param_map=param_map)
1849
+ ret.append(g)
1850
+ return ret
1851
+ setmesstext(block)
1852
+ outmess('%sBlock: %s\n' % (tab, block['name']), 0)
1853
+
1854
+ if param_map is None:
1855
+ param_map = get_useparameters(block)
1856
+
1857
+ if param_map is not None and 'vars' in block:
1858
+ vars = block['vars']
1859
+ for n in list(vars.keys()):
1860
+ var = vars[n]
1861
+ if 'kindselector' in var:
1862
+ kind = var['kindselector']
1863
+ if 'kind' in kind:
1864
+ val = kind['kind']
1865
+ if val in param_map:
1866
+ kind['kind'] = param_map[val]
1867
+ new_body = []
1868
+ for b in block['body']:
1869
+ b = postcrack2(b, tab=tab + '\t', param_map=param_map)
1870
+ new_body.append(b)
1871
+ block['body'] = new_body
1872
+
1873
+ return block
1874
+
1875
+
1876
+ def postcrack(block, args=None, tab=''):
1877
+ """
1878
+ TODO:
1879
+ function return values
1880
+ determine expression types if in argument list
1881
+ """
1882
+ global usermodules, onlyfunctions
1883
+
1884
+ if isinstance(block, list):
1885
+ gret = []
1886
+ uret = []
1887
+ for g in block:
1888
+ setmesstext(g)
1889
+ g = postcrack(g, tab=tab + '\t')
1890
+ # sort user routines to appear first
1891
+ if 'name' in g and '__user__' in g['name']:
1892
+ uret.append(g)
1893
+ else:
1894
+ gret.append(g)
1895
+ return uret + gret
1896
+ setmesstext(block)
1897
+ if not isinstance(block, dict) and 'block' not in block:
1898
+ raise Exception('postcrack: Expected block dictionary instead of ' +
1899
+ str(block))
1900
+ if 'name' in block and not block['name'] == 'unknown_interface':
1901
+ outmess('%sBlock: %s\n' % (tab, block['name']), 0)
1902
+ block = analyzeargs(block)
1903
+ block = analyzecommon(block)
1904
+ block['vars'] = analyzevars(block)
1905
+ block['sortvars'] = sortvarnames(block['vars'])
1906
+ if 'args' in block and block['args']:
1907
+ args = block['args']
1908
+ block['body'] = analyzebody(block, args, tab=tab)
1909
+
1910
+ userisdefined = []
1911
+ if 'use' in block:
1912
+ useblock = block['use']
1913
+ for k in list(useblock.keys()):
1914
+ if '__user__' in k:
1915
+ userisdefined.append(k)
1916
+ else:
1917
+ useblock = {}
1918
+ name = ''
1919
+ if 'name' in block:
1920
+ name = block['name']
1921
+ # and not userisdefined: # Build a __user__ module
1922
+ if 'externals' in block and block['externals']:
1923
+ interfaced = []
1924
+ if 'interfaced' in block:
1925
+ interfaced = block['interfaced']
1926
+ mvars = copy.copy(block['vars'])
1927
+ if name:
1928
+ mname = name + '__user__routines'
1929
+ else:
1930
+ mname = 'unknown__user__routines'
1931
+ if mname in userisdefined:
1932
+ i = 1
1933
+ while '%s_%i' % (mname, i) in userisdefined:
1934
+ i = i + 1
1935
+ mname = '%s_%i' % (mname, i)
1936
+ interface = {'block': 'interface', 'body': [],
1937
+ 'vars': {}, 'name': name + '_user_interface'}
1938
+ for e in block['externals']:
1939
+ if e in interfaced:
1940
+ edef = []
1941
+ j = -1
1942
+ for b in block['body']:
1943
+ j = j + 1
1944
+ if b['block'] == 'interface':
1945
+ i = -1
1946
+ for bb in b['body']:
1947
+ i = i + 1
1948
+ if 'name' in bb and bb['name'] == e:
1949
+ edef = copy.copy(bb)
1950
+ del b['body'][i]
1951
+ break
1952
+ if edef:
1953
+ if not b['body']:
1954
+ del block['body'][j]
1955
+ del interfaced[interfaced.index(e)]
1956
+ break
1957
+ interface['body'].append(edef)
1958
+ else:
1959
+ if e in mvars and not isexternal(mvars[e]):
1960
+ interface['vars'][e] = mvars[e]
1961
+ if interface['vars'] or interface['body']:
1962
+ block['interfaced'] = interfaced
1963
+ mblock = {'block': 'python module', 'body': [
1964
+ interface], 'vars': {}, 'name': mname, 'interfaced': block['externals']}
1965
+ useblock[mname] = {}
1966
+ usermodules.append(mblock)
1967
+ if useblock:
1968
+ block['use'] = useblock
1969
+ return block
1970
+
1971
+
1972
+ def sortvarnames(vars):
1973
+ indep = []
1974
+ dep = []
1975
+ for v in list(vars.keys()):
1976
+ if 'depend' in vars[v] and vars[v]['depend']:
1977
+ dep.append(v)
1978
+ else:
1979
+ indep.append(v)
1980
+ n = len(dep)
1981
+ i = 0
1982
+ while dep: # XXX: How to catch dependence cycles correctly?
1983
+ v = dep[0]
1984
+ fl = 0
1985
+ for w in dep[1:]:
1986
+ if w in vars[v]['depend']:
1987
+ fl = 1
1988
+ break
1989
+ if fl:
1990
+ dep = dep[1:] + [v]
1991
+ i = i + 1
1992
+ if i > n:
1993
+ errmess('sortvarnames: failed to compute dependencies because'
1994
+ ' of cyclic dependencies between '
1995
+ + ', '.join(dep) + '\n')
1996
+ indep = indep + dep
1997
+ break
1998
+ else:
1999
+ indep.append(v)
2000
+ dep = dep[1:]
2001
+ n = len(dep)
2002
+ i = 0
2003
+ return indep
2004
+
2005
+
2006
+ def analyzecommon(block):
2007
+ if not hascommon(block):
2008
+ return block
2009
+ commonvars = []
2010
+ for k in list(block['common'].keys()):
2011
+ comvars = []
2012
+ for e in block['common'][k]:
2013
+ m = re.match(
2014
+ r'\A\s*\b(?P<name>.*?)\b\s*(\((?P<dims>.*?)\)|)\s*\Z', e, re.I)
2015
+ if m:
2016
+ dims = []
2017
+ if m.group('dims'):
2018
+ dims = [x.strip()
2019
+ for x in markoutercomma(m.group('dims')).split('@,@')]
2020
+ n = m.group('name').strip()
2021
+ if n in block['vars']:
2022
+ if 'attrspec' in block['vars'][n]:
2023
+ block['vars'][n]['attrspec'].append(
2024
+ 'dimension(%s)' % (','.join(dims)))
2025
+ else:
2026
+ block['vars'][n]['attrspec'] = [
2027
+ 'dimension(%s)' % (','.join(dims))]
2028
+ else:
2029
+ if dims:
2030
+ block['vars'][n] = {
2031
+ 'attrspec': ['dimension(%s)' % (','.join(dims))]}
2032
+ else:
2033
+ block['vars'][n] = {}
2034
+ if n not in commonvars:
2035
+ commonvars.append(n)
2036
+ else:
2037
+ n = e
2038
+ errmess(
2039
+ 'analyzecommon: failed to extract "<name>[(<dims>)]" from "%s" in common /%s/.\n' % (e, k))
2040
+ comvars.append(n)
2041
+ block['common'][k] = comvars
2042
+ if 'commonvars' not in block:
2043
+ block['commonvars'] = commonvars
2044
+ else:
2045
+ block['commonvars'] = block['commonvars'] + commonvars
2046
+ return block
2047
+
2048
+
2049
+ def analyzebody(block, args, tab=''):
2050
+ global usermodules, skipfuncs, onlyfuncs, f90modulevars
2051
+
2052
+ setmesstext(block)
2053
+ body = []
2054
+ for b in block['body']:
2055
+ b['parent_block'] = block
2056
+ if b['block'] in ['function', 'subroutine']:
2057
+ if args is not None and b['name'] not in args:
2058
+ continue
2059
+ else:
2060
+ as_ = b['args']
2061
+ if b['name'] in skipfuncs:
2062
+ continue
2063
+ if onlyfuncs and b['name'] not in onlyfuncs:
2064
+ continue
2065
+ b['saved_interface'] = crack2fortrangen(
2066
+ b, '\n' + ' ' * 6, as_interface=True)
2067
+
2068
+ else:
2069
+ as_ = args
2070
+ b = postcrack(b, as_, tab=tab + '\t')
2071
+ if b['block'] == 'interface' and not b['body']:
2072
+ if 'f2pyenhancements' not in b:
2073
+ continue
2074
+ if b['block'].replace(' ', '') == 'pythonmodule':
2075
+ usermodules.append(b)
2076
+ else:
2077
+ if b['block'] == 'module':
2078
+ f90modulevars[b['name']] = b['vars']
2079
+ body.append(b)
2080
+ return body
2081
+
2082
+
2083
+ def buildimplicitrules(block):
2084
+ setmesstext(block)
2085
+ implicitrules = defaultimplicitrules
2086
+ attrrules = {}
2087
+ if 'implicit' in block:
2088
+ if block['implicit'] is None:
2089
+ implicitrules = None
2090
+ if verbose > 1:
2091
+ outmess(
2092
+ 'buildimplicitrules: no implicit rules for routine %s.\n' % repr(block['name']))
2093
+ else:
2094
+ for k in list(block['implicit'].keys()):
2095
+ if block['implicit'][k].get('typespec') not in ['static', 'automatic']:
2096
+ implicitrules[k] = block['implicit'][k]
2097
+ else:
2098
+ attrrules[k] = block['implicit'][k]['typespec']
2099
+ return implicitrules, attrrules
2100
+
2101
+
2102
+ def myeval(e, g=None, l=None):
2103
+ r = eval(e, g, l)
2104
+ if type(r) in [type(0), type(0.0)]:
2105
+ return r
2106
+ raise ValueError('r=%r' % (r))
2107
+
2108
+ getlincoef_re_1 = re.compile(r'\A\b\w+\b\Z', re.I)
2109
+
2110
+
2111
+ def getlincoef(e, xset): # e = a*x+b ; x in xset
2112
+ try:
2113
+ c = int(myeval(e, {}, {}))
2114
+ return 0, c, None
2115
+ except:
2116
+ pass
2117
+ if getlincoef_re_1.match(e):
2118
+ return 1, 0, e
2119
+ len_e = len(e)
2120
+ for x in xset:
2121
+ if len(x) > len_e:
2122
+ continue
2123
+ if re.search(r'\w\s*\([^)]*\b' + x + r'\b', e):
2124
+ # skip function calls having x as an argument, e.g max(1, x)
2125
+ continue
2126
+ re_1 = re.compile(r'(?P<before>.*?)\b' + x + r'\b(?P<after>.*)', re.I)
2127
+ m = re_1.match(e)
2128
+ if m:
2129
+ try:
2130
+ m1 = re_1.match(e)
2131
+ while m1:
2132
+ ee = '%s(%s)%s' % (
2133
+ m1.group('before'), 0, m1.group('after'))
2134
+ m1 = re_1.match(ee)
2135
+ b = myeval(ee, {}, {})
2136
+ m1 = re_1.match(e)
2137
+ while m1:
2138
+ ee = '%s(%s)%s' % (
2139
+ m1.group('before'), 1, m1.group('after'))
2140
+ m1 = re_1.match(ee)
2141
+ a = myeval(ee, {}, {}) - b
2142
+ m1 = re_1.match(e)
2143
+ while m1:
2144
+ ee = '%s(%s)%s' % (
2145
+ m1.group('before'), 0.5, m1.group('after'))
2146
+ m1 = re_1.match(ee)
2147
+ c = myeval(ee, {}, {})
2148
+ # computing another point to be sure that expression is linear
2149
+ m1 = re_1.match(e)
2150
+ while m1:
2151
+ ee = '%s(%s)%s' % (
2152
+ m1.group('before'), 1.5, m1.group('after'))
2153
+ m1 = re_1.match(ee)
2154
+ c2 = myeval(ee, {}, {})
2155
+ if (a * 0.5 + b == c and a * 1.5 + b == c2):
2156
+ return a, b, x
2157
+ except:
2158
+ pass
2159
+ break
2160
+ return None, None, None
2161
+
2162
+ _varname_match = re.compile(r'\A[a-z]\w*\Z').match
2163
+
2164
+
2165
+ def getarrlen(dl, args, star='*'):
2166
+ edl = []
2167
+ try:
2168
+ edl.append(myeval(dl[0], {}, {}))
2169
+ except:
2170
+ edl.append(dl[0])
2171
+ try:
2172
+ edl.append(myeval(dl[1], {}, {}))
2173
+ except:
2174
+ edl.append(dl[1])
2175
+ if isinstance(edl[0], int):
2176
+ p1 = 1 - edl[0]
2177
+ if p1 == 0:
2178
+ d = str(dl[1])
2179
+ elif p1 < 0:
2180
+ d = '%s-%s' % (dl[1], -p1)
2181
+ else:
2182
+ d = '%s+%s' % (dl[1], p1)
2183
+ elif isinstance(edl[1], int):
2184
+ p1 = 1 + edl[1]
2185
+ if p1 == 0:
2186
+ d = '-(%s)' % (dl[0])
2187
+ else:
2188
+ d = '%s-(%s)' % (p1, dl[0])
2189
+ else:
2190
+ d = '%s-(%s)+1' % (dl[1], dl[0])
2191
+ try:
2192
+ return repr(myeval(d, {}, {})), None, None
2193
+ except:
2194
+ pass
2195
+ d1, d2 = getlincoef(dl[0], args), getlincoef(dl[1], args)
2196
+ if None not in [d1[0], d2[0]]:
2197
+ if (d1[0], d2[0]) == (0, 0):
2198
+ return repr(d2[1] - d1[1] + 1), None, None
2199
+ b = d2[1] - d1[1] + 1
2200
+ d1 = (d1[0], 0, d1[2])
2201
+ d2 = (d2[0], b, d2[2])
2202
+ if d1[0] == 0 and d2[2] in args:
2203
+ if b < 0:
2204
+ return '%s * %s - %s' % (d2[0], d2[2], -b), d2[2], '+%s)/(%s)' % (-b, d2[0])
2205
+ elif b:
2206
+ return '%s * %s + %s' % (d2[0], d2[2], b), d2[2], '-%s)/(%s)' % (b, d2[0])
2207
+ else:
2208
+ return '%s * %s' % (d2[0], d2[2]), d2[2], ')/(%s)' % (d2[0])
2209
+ if d2[0] == 0 and d1[2] in args:
2210
+
2211
+ if b < 0:
2212
+ return '%s * %s - %s' % (-d1[0], d1[2], -b), d1[2], '+%s)/(%s)' % (-b, -d1[0])
2213
+ elif b:
2214
+ return '%s * %s + %s' % (-d1[0], d1[2], b), d1[2], '-%s)/(%s)' % (b, -d1[0])
2215
+ else:
2216
+ return '%s * %s' % (-d1[0], d1[2]), d1[2], ')/(%s)' % (-d1[0])
2217
+ if d1[2] == d2[2] and d1[2] in args:
2218
+ a = d2[0] - d1[0]
2219
+ if not a:
2220
+ return repr(b), None, None
2221
+ if b < 0:
2222
+ return '%s * %s - %s' % (a, d1[2], -b), d2[2], '+%s)/(%s)' % (-b, a)
2223
+ elif b:
2224
+ return '%s * %s + %s' % (a, d1[2], b), d2[2], '-%s)/(%s)' % (b, a)
2225
+ else:
2226
+ return '%s * %s' % (a, d1[2]), d2[2], ')/(%s)' % (a)
2227
+ if d1[0] == d2[0] == 1:
2228
+ c = str(d1[2])
2229
+ if c not in args:
2230
+ if _varname_match(c):
2231
+ outmess('\tgetarrlen:variable "%s" undefined\n' % (c))
2232
+ c = '(%s)' % c
2233
+ if b == 0:
2234
+ d = '%s-%s' % (d2[2], c)
2235
+ elif b < 0:
2236
+ d = '%s-%s-%s' % (d2[2], c, -b)
2237
+ else:
2238
+ d = '%s-%s+%s' % (d2[2], c, b)
2239
+ elif d1[0] == 0:
2240
+ c2 = str(d2[2])
2241
+ if c2 not in args:
2242
+ if _varname_match(c2):
2243
+ outmess('\tgetarrlen:variable "%s" undefined\n' % (c2))
2244
+ c2 = '(%s)' % c2
2245
+ if d2[0] == 1:
2246
+ pass
2247
+ elif d2[0] == -1:
2248
+ c2 = '-%s' % c2
2249
+ else:
2250
+ c2 = '%s*%s' % (d2[0], c2)
2251
+
2252
+ if b == 0:
2253
+ d = c2
2254
+ elif b < 0:
2255
+ d = '%s-%s' % (c2, -b)
2256
+ else:
2257
+ d = '%s+%s' % (c2, b)
2258
+ elif d2[0] == 0:
2259
+ c1 = str(d1[2])
2260
+ if c1 not in args:
2261
+ if _varname_match(c1):
2262
+ outmess('\tgetarrlen:variable "%s" undefined\n' % (c1))
2263
+ c1 = '(%s)' % c1
2264
+ if d1[0] == 1:
2265
+ c1 = '-%s' % c1
2266
+ elif d1[0] == -1:
2267
+ c1 = '+%s' % c1
2268
+ elif d1[0] < 0:
2269
+ c1 = '+%s*%s' % (-d1[0], c1)
2270
+ else:
2271
+ c1 = '-%s*%s' % (d1[0], c1)
2272
+
2273
+ if b == 0:
2274
+ d = c1
2275
+ elif b < 0:
2276
+ d = '%s-%s' % (c1, -b)
2277
+ else:
2278
+ d = '%s+%s' % (c1, b)
2279
+ else:
2280
+ c1 = str(d1[2])
2281
+ if c1 not in args:
2282
+ if _varname_match(c1):
2283
+ outmess('\tgetarrlen:variable "%s" undefined\n' % (c1))
2284
+ c1 = '(%s)' % c1
2285
+ if d1[0] == 1:
2286
+ c1 = '-%s' % c1
2287
+ elif d1[0] == -1:
2288
+ c1 = '+%s' % c1
2289
+ elif d1[0] < 0:
2290
+ c1 = '+%s*%s' % (-d1[0], c1)
2291
+ else:
2292
+ c1 = '-%s*%s' % (d1[0], c1)
2293
+
2294
+ c2 = str(d2[2])
2295
+ if c2 not in args:
2296
+ if _varname_match(c2):
2297
+ outmess('\tgetarrlen:variable "%s" undefined\n' % (c2))
2298
+ c2 = '(%s)' % c2
2299
+ if d2[0] == 1:
2300
+ pass
2301
+ elif d2[0] == -1:
2302
+ c2 = '-%s' % c2
2303
+ else:
2304
+ c2 = '%s*%s' % (d2[0], c2)
2305
+
2306
+ if b == 0:
2307
+ d = '%s%s' % (c2, c1)
2308
+ elif b < 0:
2309
+ d = '%s%s-%s' % (c2, c1, -b)
2310
+ else:
2311
+ d = '%s%s+%s' % (c2, c1, b)
2312
+ return d, None, None
2313
+
2314
+ word_pattern = re.compile(r'\b[a-z][\w$]*\b', re.I)
2315
+
2316
+
2317
+ def _get_depend_dict(name, vars, deps):
2318
+ if name in vars:
2319
+ words = vars[name].get('depend', [])
2320
+
2321
+ if '=' in vars[name] and not isstring(vars[name]):
2322
+ for word in word_pattern.findall(vars[name]['=']):
2323
+ if word not in words and word in vars:
2324
+ words.append(word)
2325
+ for word in words[:]:
2326
+ for w in deps.get(word, []) \
2327
+ or _get_depend_dict(word, vars, deps):
2328
+ if w not in words:
2329
+ words.append(w)
2330
+ else:
2331
+ outmess('_get_depend_dict: no dependence info for %s\n' % (repr(name)))
2332
+ words = []
2333
+ deps[name] = words
2334
+ return words
2335
+
2336
+
2337
+ def _calc_depend_dict(vars):
2338
+ names = list(vars.keys())
2339
+ depend_dict = {}
2340
+ for n in names:
2341
+ _get_depend_dict(n, vars, depend_dict)
2342
+ return depend_dict
2343
+
2344
+
2345
+ def get_sorted_names(vars):
2346
+ """
2347
+ """
2348
+ depend_dict = _calc_depend_dict(vars)
2349
+ names = []
2350
+ for name in list(depend_dict.keys()):
2351
+ if not depend_dict[name]:
2352
+ names.append(name)
2353
+ del depend_dict[name]
2354
+ while depend_dict:
2355
+ for name, lst in list(depend_dict.items()):
2356
+ new_lst = [n for n in lst if n in depend_dict]
2357
+ if not new_lst:
2358
+ names.append(name)
2359
+ del depend_dict[name]
2360
+ else:
2361
+ depend_dict[name] = new_lst
2362
+ return [name for name in names if name in vars]
2363
+
2364
+
2365
+ def _kind_func(string):
2366
+ # XXX: return something sensible.
2367
+ if string[0] in "'\"":
2368
+ string = string[1:-1]
2369
+ if real16pattern.match(string):
2370
+ return 8
2371
+ elif real8pattern.match(string):
2372
+ return 4
2373
+ return 'kind(' + string + ')'
2374
+
2375
+
2376
+ def _selected_int_kind_func(r):
2377
+ # XXX: This should be processor dependent
2378
+ m = 10 ** r
2379
+ if m <= 2 ** 8:
2380
+ return 1
2381
+ if m <= 2 ** 16:
2382
+ return 2
2383
+ if m <= 2 ** 32:
2384
+ return 4
2385
+ if m <= 2 ** 63:
2386
+ return 8
2387
+ if m <= 2 ** 128:
2388
+ return 16
2389
+ return -1
2390
+
2391
+
2392
+ def _selected_real_kind_func(p, r=0, radix=0):
2393
+ # XXX: This should be processor dependent
2394
+ # This is only good for 0 <= p <= 20
2395
+ if p < 7:
2396
+ return 4
2397
+ if p < 16:
2398
+ return 8
2399
+ if platform.machine().lower().startswith('power'):
2400
+ if p <= 20:
2401
+ return 16
2402
+ else:
2403
+ if p < 19:
2404
+ return 10
2405
+ elif p <= 20:
2406
+ return 16
2407
+ return -1
2408
+
2409
+
2410
+ def get_parameters(vars, global_params={}):
2411
+ params = copy.copy(global_params)
2412
+ g_params = copy.copy(global_params)
2413
+ for name, func in [('kind', _kind_func),
2414
+ ('selected_int_kind', _selected_int_kind_func),
2415
+ ('selected_real_kind', _selected_real_kind_func), ]:
2416
+ if name not in g_params:
2417
+ g_params[name] = func
2418
+ param_names = []
2419
+ for n in get_sorted_names(vars):
2420
+ if 'attrspec' in vars[n] and 'parameter' in vars[n]['attrspec']:
2421
+ param_names.append(n)
2422
+ kind_re = re.compile(r'\bkind\s*\(\s*(?P<value>.*)\s*\)', re.I)
2423
+ selected_int_kind_re = re.compile(
2424
+ r'\bselected_int_kind\s*\(\s*(?P<value>.*)\s*\)', re.I)
2425
+ selected_kind_re = re.compile(
2426
+ r'\bselected_(int|real)_kind\s*\(\s*(?P<value>.*)\s*\)', re.I)
2427
+ for n in param_names:
2428
+ if '=' in vars[n]:
2429
+ v = vars[n]['=']
2430
+ if islogical(vars[n]):
2431
+ v = v.lower()
2432
+ for repl in [
2433
+ ('.false.', 'False'),
2434
+ ('.true.', 'True'),
2435
+ # TODO: test .eq., .neq., etc replacements.
2436
+ ]:
2437
+ v = v.replace(*repl)
2438
+ v = kind_re.sub(r'kind("\1")', v)
2439
+ v = selected_int_kind_re.sub(r'selected_int_kind(\1)', v)
2440
+ if isinteger(vars[n]) and not selected_kind_re.match(v):
2441
+ v = v.split('_')[0]
2442
+ if isdouble(vars[n]):
2443
+ tt = list(v)
2444
+ for m in real16pattern.finditer(v):
2445
+ tt[m.start():m.end()] = list(
2446
+ v[m.start():m.end()].lower().replace('d', 'e'))
2447
+ v = ''.join(tt)
2448
+ if iscomplex(vars[n]):
2449
+ if v[0] == '(' and v[-1] == ')':
2450
+ # FIXME, unused l looks like potential bug
2451
+ l = markoutercomma(v[1:-1]).split('@,@')
2452
+ try:
2453
+ params[n] = eval(v, g_params, params)
2454
+ except Exception as msg:
2455
+ params[n] = v
2456
+ outmess('get_parameters: got "%s" on %s\n' % (msg, repr(v)))
2457
+ if isstring(vars[n]) and isinstance(params[n], int):
2458
+ params[n] = chr(params[n])
2459
+ nl = n.lower()
2460
+ if nl != n:
2461
+ params[nl] = params[n]
2462
+ else:
2463
+ print(vars[n])
2464
+ outmess(
2465
+ 'get_parameters:parameter %s does not have value?!\n' % (repr(n)))
2466
+ return params
2467
+
2468
+
2469
+ def _eval_length(length, params):
2470
+ if length in ['(:)', '(*)', '*']:
2471
+ return '(*)'
2472
+ return _eval_scalar(length, params)
2473
+
2474
+ _is_kind_number = re.compile(r'\d+_').match
2475
+
2476
+
2477
+ def _eval_scalar(value, params):
2478
+ if _is_kind_number(value):
2479
+ value = value.split('_')[0]
2480
+ try:
2481
+ value = str(eval(value, {}, params))
2482
+ except (NameError, SyntaxError):
2483
+ return value
2484
+ except Exception as msg:
2485
+ errmess('"%s" in evaluating %r '
2486
+ '(available names: %s)\n'
2487
+ % (msg, value, list(params.keys())))
2488
+ return value
2489
+
2490
+
2491
+ def analyzevars(block):
2492
+ global f90modulevars
2493
+
2494
+ setmesstext(block)
2495
+ implicitrules, attrrules = buildimplicitrules(block)
2496
+ vars = copy.copy(block['vars'])
2497
+ if block['block'] == 'function' and block['name'] not in vars:
2498
+ vars[block['name']] = {}
2499
+ if '' in block['vars']:
2500
+ del vars['']
2501
+ if 'attrspec' in block['vars']['']:
2502
+ gen = block['vars']['']['attrspec']
2503
+ for n in list(vars.keys()):
2504
+ for k in ['public', 'private']:
2505
+ if k in gen:
2506
+ vars[n] = setattrspec(vars[n], k)
2507
+ svars = []
2508
+ args = block['args']
2509
+ for a in args:
2510
+ try:
2511
+ vars[a]
2512
+ svars.append(a)
2513
+ except KeyError:
2514
+ pass
2515
+ for n in list(vars.keys()):
2516
+ if n not in args:
2517
+ svars.append(n)
2518
+
2519
+ params = get_parameters(vars, get_useparameters(block))
2520
+
2521
+ dep_matches = {}
2522
+ name_match = re.compile(r'\w[\w\d_$]*').match
2523
+ for v in list(vars.keys()):
2524
+ m = name_match(v)
2525
+ if m:
2526
+ n = v[m.start():m.end()]
2527
+ try:
2528
+ dep_matches[n]
2529
+ except KeyError:
2530
+ dep_matches[n] = re.compile(r'.*\b%s\b' % (v), re.I).match
2531
+ for n in svars:
2532
+ if n[0] in list(attrrules.keys()):
2533
+ vars[n] = setattrspec(vars[n], attrrules[n[0]])
2534
+ if 'typespec' not in vars[n]:
2535
+ if not('attrspec' in vars[n] and 'external' in vars[n]['attrspec']):
2536
+ if implicitrules:
2537
+ ln0 = n[0].lower()
2538
+ for k in list(implicitrules[ln0].keys()):
2539
+ if k == 'typespec' and implicitrules[ln0][k] == 'undefined':
2540
+ continue
2541
+ if k not in vars[n]:
2542
+ vars[n][k] = implicitrules[ln0][k]
2543
+ elif k == 'attrspec':
2544
+ for l in implicitrules[ln0][k]:
2545
+ vars[n] = setattrspec(vars[n], l)
2546
+ elif n in block['args']:
2547
+ outmess('analyzevars: typespec of variable %s is not defined in routine %s.\n' % (
2548
+ repr(n), block['name']))
2549
+
2550
+ if 'charselector' in vars[n]:
2551
+ if 'len' in vars[n]['charselector']:
2552
+ l = vars[n]['charselector']['len']
2553
+ try:
2554
+ l = str(eval(l, {}, params))
2555
+ except:
2556
+ pass
2557
+ vars[n]['charselector']['len'] = l
2558
+
2559
+ if 'kindselector' in vars[n]:
2560
+ if 'kind' in vars[n]['kindselector']:
2561
+ l = vars[n]['kindselector']['kind']
2562
+ try:
2563
+ l = str(eval(l, {}, params))
2564
+ except:
2565
+ pass
2566
+ vars[n]['kindselector']['kind'] = l
2567
+
2568
+ savelindims = {}
2569
+ if 'attrspec' in vars[n]:
2570
+ attr = vars[n]['attrspec']
2571
+ attr.reverse()
2572
+ vars[n]['attrspec'] = []
2573
+ dim, intent, depend, check, note = None, None, None, None, None
2574
+ for a in attr:
2575
+ if a[:9] == 'dimension':
2576
+ dim = (a[9:].strip())[1:-1]
2577
+ elif a[:6] == 'intent':
2578
+ intent = (a[6:].strip())[1:-1]
2579
+ elif a[:6] == 'depend':
2580
+ depend = (a[6:].strip())[1:-1]
2581
+ elif a[:5] == 'check':
2582
+ check = (a[5:].strip())[1:-1]
2583
+ elif a[:4] == 'note':
2584
+ note = (a[4:].strip())[1:-1]
2585
+ else:
2586
+ vars[n] = setattrspec(vars[n], a)
2587
+ if intent:
2588
+ if 'intent' not in vars[n]:
2589
+ vars[n]['intent'] = []
2590
+ for c in [x.strip() for x in markoutercomma(intent).split('@,@')]:
2591
+ # Remove spaces so that 'in out' becomes 'inout'
2592
+ tmp = c.replace(' ', '')
2593
+ if tmp not in vars[n]['intent']:
2594
+ vars[n]['intent'].append(tmp)
2595
+ intent = None
2596
+ if note:
2597
+ note = note.replace('\\n\\n', '\n\n')
2598
+ note = note.replace('\\n ', '\n')
2599
+ if 'note' not in vars[n]:
2600
+ vars[n]['note'] = [note]
2601
+ else:
2602
+ vars[n]['note'].append(note)
2603
+ note = None
2604
+ if depend is not None:
2605
+ if 'depend' not in vars[n]:
2606
+ vars[n]['depend'] = []
2607
+ for c in rmbadname([x.strip() for x in markoutercomma(depend).split('@,@')]):
2608
+ if c not in vars[n]['depend']:
2609
+ vars[n]['depend'].append(c)
2610
+ depend = None
2611
+ if check is not None:
2612
+ if 'check' not in vars[n]:
2613
+ vars[n]['check'] = []
2614
+ for c in [x.strip() for x in markoutercomma(check).split('@,@')]:
2615
+ if c not in vars[n]['check']:
2616
+ vars[n]['check'].append(c)
2617
+ check = None
2618
+ if dim and 'dimension' not in vars[n]:
2619
+ vars[n]['dimension'] = []
2620
+ for d in rmbadname([x.strip() for x in markoutercomma(dim).split('@,@')]):
2621
+ star = '*'
2622
+ if d == ':':
2623
+ star = ':'
2624
+ if d in params:
2625
+ d = str(params[d])
2626
+ for p in list(params.keys()):
2627
+ m = re.match(
2628
+ r'(?P<before>.*?)\b' + p + r'\b(?P<after>.*)', d, re.I)
2629
+ if m:
2630
+ d = m.group('before') + \
2631
+ str(params[p]) + m.group('after')
2632
+ if d == star:
2633
+ dl = [star]
2634
+ else:
2635
+ dl = markoutercomma(d, ':').split('@:@')
2636
+ if len(dl) == 2 and '*' in dl: # e.g. dimension(5:*)
2637
+ dl = ['*']
2638
+ d = '*'
2639
+ if len(dl) == 1 and not dl[0] == star:
2640
+ dl = ['1', dl[0]]
2641
+ if len(dl) == 2:
2642
+ d, v, di = getarrlen(dl, list(block['vars'].keys()))
2643
+ if d[:4] == '1 * ':
2644
+ d = d[4:]
2645
+ if di and di[-4:] == '/(1)':
2646
+ di = di[:-4]
2647
+ if v:
2648
+ savelindims[d] = v, di
2649
+ vars[n]['dimension'].append(d)
2650
+ if 'dimension' in vars[n]:
2651
+ if isintent_c(vars[n]):
2652
+ shape_macro = 'shape'
2653
+ else:
2654
+ shape_macro = 'shape' # 'fshape'
2655
+ if isstringarray(vars[n]):
2656
+ if 'charselector' in vars[n]:
2657
+ d = vars[n]['charselector']
2658
+ if '*' in d:
2659
+ d = d['*']
2660
+ errmess('analyzevars: character array "character*%s %s(%s)" is considered as "character %s(%s)"; "intent(c)" is forced.\n'
2661
+ % (d, n,
2662
+ ','.join(vars[n]['dimension']),
2663
+ n, ','.join(vars[n]['dimension'] + [d])))
2664
+ vars[n]['dimension'].append(d)
2665
+ del vars[n]['charselector']
2666
+ if 'intent' not in vars[n]:
2667
+ vars[n]['intent'] = []
2668
+ if 'c' not in vars[n]['intent']:
2669
+ vars[n]['intent'].append('c')
2670
+ else:
2671
+ errmess(
2672
+ "analyzevars: charselector=%r unhandled." % (d))
2673
+ if 'check' not in vars[n] and 'args' in block and n in block['args']:
2674
+ flag = 'depend' not in vars[n]
2675
+ if flag:
2676
+ vars[n]['depend'] = []
2677
+ vars[n]['check'] = []
2678
+ if 'dimension' in vars[n]:
2679
+ #/----< no check
2680
+ i = -1
2681
+ ni = len(vars[n]['dimension'])
2682
+ for d in vars[n]['dimension']:
2683
+ ddeps = [] # dependecies of 'd'
2684
+ ad = ''
2685
+ pd = ''
2686
+ if d not in vars:
2687
+ if d in savelindims:
2688
+ pd, ad = '(', savelindims[d][1]
2689
+ d = savelindims[d][0]
2690
+ else:
2691
+ for r in block['args']:
2692
+ if r not in vars:
2693
+ continue
2694
+ if re.match(r'.*?\b' + r + r'\b', d, re.I):
2695
+ ddeps.append(r)
2696
+ if d in vars:
2697
+ if 'attrspec' in vars[d]:
2698
+ for aa in vars[d]['attrspec']:
2699
+ if aa[:6] == 'depend':
2700
+ ddeps += aa[6:].strip()[1:-1].split(',')
2701
+ if 'depend' in vars[d]:
2702
+ ddeps = ddeps + vars[d]['depend']
2703
+ i = i + 1
2704
+ if d in vars and ('depend' not in vars[d]) \
2705
+ and ('=' not in vars[d]) and (d not in vars[n]['depend']) \
2706
+ and l_or(isintent_in, isintent_inout, isintent_inplace)(vars[n]):
2707
+ vars[d]['depend'] = [n]
2708
+ if ni > 1:
2709
+ vars[d]['='] = '%s%s(%s,%s)%s' % (
2710
+ pd, shape_macro, n, i, ad)
2711
+ else:
2712
+ vars[d]['='] = '%slen(%s)%s' % (pd, n, ad)
2713
+ # /---< no check
2714
+ if 1 and 'check' not in vars[d]:
2715
+ if ni > 1:
2716
+ vars[d]['check'] = ['%s%s(%s,%i)%s==%s'
2717
+ % (pd, shape_macro, n, i, ad, d)]
2718
+ else:
2719
+ vars[d]['check'] = [
2720
+ '%slen(%s)%s>=%s' % (pd, n, ad, d)]
2721
+ if 'attrspec' not in vars[d]:
2722
+ vars[d]['attrspec'] = ['optional']
2723
+ if ('optional' not in vars[d]['attrspec']) and\
2724
+ ('required' not in vars[d]['attrspec']):
2725
+ vars[d]['attrspec'].append('optional')
2726
+ elif d not in ['*', ':']:
2727
+ #/----< no check
2728
+ if flag:
2729
+ if d in vars:
2730
+ if n not in ddeps:
2731
+ vars[n]['depend'].append(d)
2732
+ else:
2733
+ vars[n]['depend'] = vars[n]['depend'] + ddeps
2734
+ elif isstring(vars[n]):
2735
+ length = '1'
2736
+ if 'charselector' in vars[n]:
2737
+ if '*' in vars[n]['charselector']:
2738
+ length = _eval_length(vars[n]['charselector']['*'],
2739
+ params)
2740
+ vars[n]['charselector']['*'] = length
2741
+ elif 'len' in vars[n]['charselector']:
2742
+ length = _eval_length(vars[n]['charselector']['len'],
2743
+ params)
2744
+ del vars[n]['charselector']['len']
2745
+ vars[n]['charselector']['*'] = length
2746
+
2747
+ if not vars[n]['check']:
2748
+ del vars[n]['check']
2749
+ if flag and not vars[n]['depend']:
2750
+ del vars[n]['depend']
2751
+ if '=' in vars[n]:
2752
+ if 'attrspec' not in vars[n]:
2753
+ vars[n]['attrspec'] = []
2754
+ if ('optional' not in vars[n]['attrspec']) and \
2755
+ ('required' not in vars[n]['attrspec']):
2756
+ vars[n]['attrspec'].append('optional')
2757
+ if 'depend' not in vars[n]:
2758
+ vars[n]['depend'] = []
2759
+ for v, m in list(dep_matches.items()):
2760
+ if m(vars[n]['=']):
2761
+ vars[n]['depend'].append(v)
2762
+ if not vars[n]['depend']:
2763
+ del vars[n]['depend']
2764
+ if isscalar(vars[n]):
2765
+ vars[n]['='] = _eval_scalar(vars[n]['='], params)
2766
+
2767
+ for n in list(vars.keys()):
2768
+ if n == block['name']: # n is block name
2769
+ if 'note' in vars[n]:
2770
+ block['note'] = vars[n]['note']
2771
+ if block['block'] == 'function':
2772
+ if 'result' in block and block['result'] in vars:
2773
+ vars[n] = appenddecl(vars[n], vars[block['result']])
2774
+ if 'prefix' in block:
2775
+ pr = block['prefix']
2776
+ ispure = 0
2777
+ isrec = 1
2778
+ pr1 = pr.replace('pure', '')
2779
+ ispure = (not pr == pr1)
2780
+ pr = pr1.replace('recursive', '')
2781
+ isrec = (not pr == pr1)
2782
+ m = typespattern[0].match(pr)
2783
+ if m:
2784
+ typespec, selector, attr, edecl = cracktypespec0(
2785
+ m.group('this'), m.group('after'))
2786
+ kindselect, charselect, typename = cracktypespec(
2787
+ typespec, selector)
2788
+ vars[n]['typespec'] = typespec
2789
+ if kindselect:
2790
+ if 'kind' in kindselect:
2791
+ try:
2792
+ kindselect['kind'] = eval(
2793
+ kindselect['kind'], {}, params)
2794
+ except:
2795
+ pass
2796
+ vars[n]['kindselector'] = kindselect
2797
+ if charselect:
2798
+ vars[n]['charselector'] = charselect
2799
+ if typename:
2800
+ vars[n]['typename'] = typename
2801
+ if ispure:
2802
+ vars[n] = setattrspec(vars[n], 'pure')
2803
+ if isrec:
2804
+ vars[n] = setattrspec(vars[n], 'recursive')
2805
+ else:
2806
+ outmess(
2807
+ 'analyzevars: prefix (%s) were not used\n' % repr(block['prefix']))
2808
+ if not block['block'] in ['module', 'pythonmodule', 'python module', 'block data']:
2809
+ if 'commonvars' in block:
2810
+ neededvars = copy.copy(block['args'] + block['commonvars'])
2811
+ else:
2812
+ neededvars = copy.copy(block['args'])
2813
+ for n in list(vars.keys()):
2814
+ if l_or(isintent_callback, isintent_aux)(vars[n]):
2815
+ neededvars.append(n)
2816
+ if 'entry' in block:
2817
+ neededvars.extend(list(block['entry'].keys()))
2818
+ for k in list(block['entry'].keys()):
2819
+ for n in block['entry'][k]:
2820
+ if n not in neededvars:
2821
+ neededvars.append(n)
2822
+ if block['block'] == 'function':
2823
+ if 'result' in block:
2824
+ neededvars.append(block['result'])
2825
+ else:
2826
+ neededvars.append(block['name'])
2827
+ if block['block'] in ['subroutine', 'function']:
2828
+ name = block['name']
2829
+ if name in vars and 'intent' in vars[name]:
2830
+ block['intent'] = vars[name]['intent']
2831
+ if block['block'] == 'type':
2832
+ neededvars.extend(list(vars.keys()))
2833
+ for n in list(vars.keys()):
2834
+ if n not in neededvars:
2835
+ del vars[n]
2836
+ return vars
2837
+
2838
+ analyzeargs_re_1 = re.compile(r'\A[a-z]+[\w$]*\Z', re.I)
2839
+
2840
+
2841
+ def expr2name(a, block, args=[]):
2842
+ orig_a = a
2843
+ a_is_expr = not analyzeargs_re_1.match(a)
2844
+ if a_is_expr: # `a` is an expression
2845
+ implicitrules, attrrules = buildimplicitrules(block)
2846
+ at = determineexprtype(a, block['vars'], implicitrules)
2847
+ na = 'e_'
2848
+ for c in a:
2849
+ c = c.lower()
2850
+ if c not in string.ascii_lowercase + string.digits:
2851
+ c = '_'
2852
+ na = na + c
2853
+ if na[-1] == '_':
2854
+ na = na + 'e'
2855
+ else:
2856
+ na = na + '_e'
2857
+ a = na
2858
+ while a in block['vars'] or a in block['args']:
2859
+ a = a + 'r'
2860
+ if a in args:
2861
+ k = 1
2862
+ while a + str(k) in args:
2863
+ k = k + 1
2864
+ a = a + str(k)
2865
+ if a_is_expr:
2866
+ block['vars'][a] = at
2867
+ else:
2868
+ if a not in block['vars']:
2869
+ if orig_a in block['vars']:
2870
+ block['vars'][a] = block['vars'][orig_a]
2871
+ else:
2872
+ block['vars'][a] = {}
2873
+ if 'externals' in block and orig_a in block['externals'] + block['interfaced']:
2874
+ block['vars'][a] = setattrspec(block['vars'][a], 'external')
2875
+ return a
2876
+
2877
+
2878
+ def analyzeargs(block):
2879
+ setmesstext(block)
2880
+ implicitrules, attrrules = buildimplicitrules(block)
2881
+ if 'args' not in block:
2882
+ block['args'] = []
2883
+ args = []
2884
+ for a in block['args']:
2885
+ a = expr2name(a, block, args)
2886
+ args.append(a)
2887
+ block['args'] = args
2888
+ if 'entry' in block:
2889
+ for k, args1 in list(block['entry'].items()):
2890
+ for a in args1:
2891
+ if a not in block['vars']:
2892
+ block['vars'][a] = {}
2893
+
2894
+ for b in block['body']:
2895
+ if b['name'] in args:
2896
+ if 'externals' not in block:
2897
+ block['externals'] = []
2898
+ if b['name'] not in block['externals']:
2899
+ block['externals'].append(b['name'])
2900
+ if 'result' in block and block['result'] not in block['vars']:
2901
+ block['vars'][block['result']] = {}
2902
+ return block
2903
+
2904
+ determineexprtype_re_1 = re.compile(r'\A\(.+?[,].+?\)\Z', re.I)
2905
+ determineexprtype_re_2 = re.compile(r'\A[+-]?\d+(_(P<name>[\w]+)|)\Z', re.I)
2906
+ determineexprtype_re_3 = re.compile(
2907
+ r'\A[+-]?[\d.]+[\d+-de.]*(_(P<name>[\w]+)|)\Z', re.I)
2908
+ determineexprtype_re_4 = re.compile(r'\A\(.*\)\Z', re.I)
2909
+ determineexprtype_re_5 = re.compile(r'\A(?P<name>\w+)\s*\(.*?\)\s*\Z', re.I)
2910
+
2911
+
2912
+ def _ensure_exprdict(r):
2913
+ if isinstance(r, int):
2914
+ return {'typespec': 'integer'}
2915
+ if isinstance(r, float):
2916
+ return {'typespec': 'real'}
2917
+ if isinstance(r, complex):
2918
+ return {'typespec': 'complex'}
2919
+ if isinstance(r, dict):
2920
+ return r
2921
+ raise AssertionError(repr(r))
2922
+
2923
+
2924
+ def determineexprtype(expr, vars, rules={}):
2925
+ if expr in vars:
2926
+ return _ensure_exprdict(vars[expr])
2927
+ expr = expr.strip()
2928
+ if determineexprtype_re_1.match(expr):
2929
+ return {'typespec': 'complex'}
2930
+ m = determineexprtype_re_2.match(expr)
2931
+ if m:
2932
+ if 'name' in m.groupdict() and m.group('name'):
2933
+ outmess(
2934
+ 'determineexprtype: selected kind types not supported (%s)\n' % repr(expr))
2935
+ return {'typespec': 'integer'}
2936
+ m = determineexprtype_re_3.match(expr)
2937
+ if m:
2938
+ if 'name' in m.groupdict() and m.group('name'):
2939
+ outmess(
2940
+ 'determineexprtype: selected kind types not supported (%s)\n' % repr(expr))
2941
+ return {'typespec': 'real'}
2942
+ for op in ['+', '-', '*', '/']:
2943
+ for e in [x.strip() for x in markoutercomma(expr, comma=op).split('@' + op + '@')]:
2944
+ if e in vars:
2945
+ return _ensure_exprdict(vars[e])
2946
+ t = {}
2947
+ if determineexprtype_re_4.match(expr): # in parenthesis
2948
+ t = determineexprtype(expr[1:-1], vars, rules)
2949
+ else:
2950
+ m = determineexprtype_re_5.match(expr)
2951
+ if m:
2952
+ rn = m.group('name')
2953
+ t = determineexprtype(m.group('name'), vars, rules)
2954
+ if t and 'attrspec' in t:
2955
+ del t['attrspec']
2956
+ if not t:
2957
+ if rn[0] in rules:
2958
+ return _ensure_exprdict(rules[rn[0]])
2959
+ if expr[0] in '\'"':
2960
+ return {'typespec': 'character', 'charselector': {'*': '*'}}
2961
+ if not t:
2962
+ outmess(
2963
+ 'determineexprtype: could not determine expressions (%s) type.\n' % (repr(expr)))
2964
+ return t
2965
+
2966
+ ######
2967
+
2968
+
2969
+ def crack2fortrangen(block, tab='\n', as_interface=False):
2970
+ global skipfuncs, onlyfuncs
2971
+
2972
+ setmesstext(block)
2973
+ ret = ''
2974
+ if isinstance(block, list):
2975
+ for g in block:
2976
+ if g and g['block'] in ['function', 'subroutine']:
2977
+ if g['name'] in skipfuncs:
2978
+ continue
2979
+ if onlyfuncs and g['name'] not in onlyfuncs:
2980
+ continue
2981
+ ret = ret + crack2fortrangen(g, tab, as_interface=as_interface)
2982
+ return ret
2983
+ prefix = ''
2984
+ name = ''
2985
+ args = ''
2986
+ blocktype = block['block']
2987
+ if blocktype == 'program':
2988
+ return ''
2989
+ argsl = []
2990
+ if 'name' in block:
2991
+ name = block['name']
2992
+ if 'args' in block:
2993
+ vars = block['vars']
2994
+ for a in block['args']:
2995
+ a = expr2name(a, block, argsl)
2996
+ if not isintent_callback(vars[a]):
2997
+ argsl.append(a)
2998
+ if block['block'] == 'function' or argsl:
2999
+ args = '(%s)' % ','.join(argsl)
3000
+ f2pyenhancements = ''
3001
+ if 'f2pyenhancements' in block:
3002
+ for k in list(block['f2pyenhancements'].keys()):
3003
+ f2pyenhancements = '%s%s%s %s' % (
3004
+ f2pyenhancements, tab + tabchar, k, block['f2pyenhancements'][k])
3005
+ intent_lst = block.get('intent', [])[:]
3006
+ if blocktype == 'function' and 'callback' in intent_lst:
3007
+ intent_lst.remove('callback')
3008
+ if intent_lst:
3009
+ f2pyenhancements = '%s%sintent(%s) %s' %\
3010
+ (f2pyenhancements, tab + tabchar,
3011
+ ','.join(intent_lst), name)
3012
+ use = ''
3013
+ if 'use' in block:
3014
+ use = use2fortran(block['use'], tab + tabchar)
3015
+ common = ''
3016
+ if 'common' in block:
3017
+ common = common2fortran(block['common'], tab + tabchar)
3018
+ if name == 'unknown_interface':
3019
+ name = ''
3020
+ result = ''
3021
+ if 'result' in block:
3022
+ result = ' result (%s)' % block['result']
3023
+ if block['result'] not in argsl:
3024
+ argsl.append(block['result'])
3025
+ body = crack2fortrangen(block['body'], tab + tabchar)
3026
+ vars = vars2fortran(
3027
+ block, block['vars'], argsl, tab + tabchar, as_interface=as_interface)
3028
+ mess = ''
3029
+ if 'from' in block and not as_interface:
3030
+ mess = '! in %s' % block['from']
3031
+ if 'entry' in block:
3032
+ entry_stmts = ''
3033
+ for k, i in list(block['entry'].items()):
3034
+ entry_stmts = '%s%sentry %s(%s)' \
3035
+ % (entry_stmts, tab + tabchar, k, ','.join(i))
3036
+ body = body + entry_stmts
3037
+ if blocktype == 'block data' and name == '_BLOCK_DATA_':
3038
+ name = ''
3039
+ ret = '%s%s%s %s%s%s %s%s%s%s%s%s%send %s %s' % (
3040
+ tab, prefix, blocktype, name, args, result, mess, f2pyenhancements, use, vars, common, body, tab, blocktype, name)
3041
+ return ret
3042
+
3043
+
3044
+ def common2fortran(common, tab=''):
3045
+ ret = ''
3046
+ for k in list(common.keys()):
3047
+ if k == '_BLNK_':
3048
+ ret = '%s%scommon %s' % (ret, tab, ','.join(common[k]))
3049
+ else:
3050
+ ret = '%s%scommon /%s/ %s' % (ret, tab, k, ','.join(common[k]))
3051
+ return ret
3052
+
3053
+
3054
+ def use2fortran(use, tab=''):
3055
+ ret = ''
3056
+ for m in list(use.keys()):
3057
+ ret = '%s%suse %s,' % (ret, tab, m)
3058
+ if use[m] == {}:
3059
+ if ret and ret[-1] == ',':
3060
+ ret = ret[:-1]
3061
+ continue
3062
+ if 'only' in use[m] and use[m]['only']:
3063
+ ret = '%s only:' % (ret)
3064
+ if 'map' in use[m] and use[m]['map']:
3065
+ c = ' '
3066
+ for k in list(use[m]['map'].keys()):
3067
+ if k == use[m]['map'][k]:
3068
+ ret = '%s%s%s' % (ret, c, k)
3069
+ c = ','
3070
+ else:
3071
+ ret = '%s%s%s=>%s' % (ret, c, k, use[m]['map'][k])
3072
+ c = ','
3073
+ if ret and ret[-1] == ',':
3074
+ ret = ret[:-1]
3075
+ return ret
3076
+
3077
+
3078
+ def true_intent_list(var):
3079
+ lst = var['intent']
3080
+ ret = []
3081
+ for intent in lst:
3082
+ try:
3083
+ c = eval('isintent_%s(var)' % intent)
3084
+ except NameError:
3085
+ c = 0
3086
+ if c:
3087
+ ret.append(intent)
3088
+ return ret
3089
+
3090
+
3091
+ def vars2fortran(block, vars, args, tab='', as_interface=False):
3092
+ """
3093
+ TODO:
3094
+ public sub
3095
+ ...
3096
+ """
3097
+ setmesstext(block)
3098
+ ret = ''
3099
+ nout = []
3100
+ for a in args:
3101
+ if a in block['vars']:
3102
+ nout.append(a)
3103
+ if 'commonvars' in block:
3104
+ for a in block['commonvars']:
3105
+ if a in vars:
3106
+ if a not in nout:
3107
+ nout.append(a)
3108
+ else:
3109
+ errmess(
3110
+ 'vars2fortran: Confused?!: "%s" is not defined in vars.\n' % a)
3111
+ if 'varnames' in block:
3112
+ nout.extend(block['varnames'])
3113
+ if not as_interface:
3114
+ for a in list(vars.keys()):
3115
+ if a not in nout:
3116
+ nout.append(a)
3117
+ for a in nout:
3118
+ if 'depend' in vars[a]:
3119
+ for d in vars[a]['depend']:
3120
+ if d in vars and 'depend' in vars[d] and a in vars[d]['depend']:
3121
+ errmess(
3122
+ 'vars2fortran: Warning: cross-dependence between variables "%s" and "%s"\n' % (a, d))
3123
+ if 'externals' in block and a in block['externals']:
3124
+ if isintent_callback(vars[a]):
3125
+ ret = '%s%sintent(callback) %s' % (ret, tab, a)
3126
+ ret = '%s%sexternal %s' % (ret, tab, a)
3127
+ if isoptional(vars[a]):
3128
+ ret = '%s%soptional %s' % (ret, tab, a)
3129
+ if a in vars and 'typespec' not in vars[a]:
3130
+ continue
3131
+ cont = 1
3132
+ for b in block['body']:
3133
+ if a == b['name'] and b['block'] == 'function':
3134
+ cont = 0
3135
+ break
3136
+ if cont:
3137
+ continue
3138
+ if a not in vars:
3139
+ show(vars)
3140
+ outmess('vars2fortran: No definition for argument "%s".\n' % a)
3141
+ continue
3142
+ if a == block['name'] and not block['block'] == 'function':
3143
+ continue
3144
+ if 'typespec' not in vars[a]:
3145
+ if 'attrspec' in vars[a] and 'external' in vars[a]['attrspec']:
3146
+ if a in args:
3147
+ ret = '%s%sexternal %s' % (ret, tab, a)
3148
+ continue
3149
+ show(vars[a])
3150
+ outmess('vars2fortran: No typespec for argument "%s".\n' % a)
3151
+ continue
3152
+ vardef = vars[a]['typespec']
3153
+ if vardef == 'type' and 'typename' in vars[a]:
3154
+ vardef = '%s(%s)' % (vardef, vars[a]['typename'])
3155
+ selector = {}
3156
+ if 'kindselector' in vars[a]:
3157
+ selector = vars[a]['kindselector']
3158
+ elif 'charselector' in vars[a]:
3159
+ selector = vars[a]['charselector']
3160
+ if '*' in selector:
3161
+ if selector['*'] in ['*', ':']:
3162
+ vardef = '%s*(%s)' % (vardef, selector['*'])
3163
+ else:
3164
+ vardef = '%s*%s' % (vardef, selector['*'])
3165
+ else:
3166
+ if 'len' in selector:
3167
+ vardef = '%s(len=%s' % (vardef, selector['len'])
3168
+ if 'kind' in selector:
3169
+ vardef = '%s,kind=%s)' % (vardef, selector['kind'])
3170
+ else:
3171
+ vardef = '%s)' % (vardef)
3172
+ elif 'kind' in selector:
3173
+ vardef = '%s(kind=%s)' % (vardef, selector['kind'])
3174
+ c = ' '
3175
+ if 'attrspec' in vars[a]:
3176
+ attr = []
3177
+ for l in vars[a]['attrspec']:
3178
+ if l not in ['external']:
3179
+ attr.append(l)
3180
+ if attr:
3181
+ vardef = '%s, %s' % (vardef, ','.join(attr))
3182
+ c = ','
3183
+ if 'dimension' in vars[a]:
3184
+ vardef = '%s%sdimension(%s)' % (
3185
+ vardef, c, ','.join(vars[a]['dimension']))
3186
+ c = ','
3187
+ if 'intent' in vars[a]:
3188
+ lst = true_intent_list(vars[a])
3189
+ if lst:
3190
+ vardef = '%s%sintent(%s)' % (vardef, c, ','.join(lst))
3191
+ c = ','
3192
+ if 'check' in vars[a]:
3193
+ vardef = '%s%scheck(%s)' % (vardef, c, ','.join(vars[a]['check']))
3194
+ c = ','
3195
+ if 'depend' in vars[a]:
3196
+ vardef = '%s%sdepend(%s)' % (
3197
+ vardef, c, ','.join(vars[a]['depend']))
3198
+ c = ','
3199
+ if '=' in vars[a]:
3200
+ v = vars[a]['=']
3201
+ if vars[a]['typespec'] in ['complex', 'double complex']:
3202
+ try:
3203
+ v = eval(v)
3204
+ v = '(%s,%s)' % (v.real, v.imag)
3205
+ except:
3206
+ pass
3207
+ vardef = '%s :: %s=%s' % (vardef, a, v)
3208
+ else:
3209
+ vardef = '%s :: %s' % (vardef, a)
3210
+ ret = '%s%s%s' % (ret, tab, vardef)
3211
+ return ret
3212
+ ######
3213
+
3214
+
3215
+ def crackfortran(files):
3216
+ global usermodules
3217
+
3218
+ outmess('Reading fortran codes...\n', 0)
3219
+ readfortrancode(files, crackline)
3220
+ outmess('Post-processing...\n', 0)
3221
+ usermodules = []
3222
+ postlist = postcrack(grouplist[0])
3223
+ outmess('Post-processing (stage 2)...\n', 0)
3224
+ postlist = postcrack2(postlist)
3225
+ return usermodules + postlist
3226
+
3227
+
3228
+ def crack2fortran(block):
3229
+ global f2py_version
3230
+
3231
+ pyf = crack2fortrangen(block) + '\n'
3232
+ header = """! -*- f90 -*-
3233
+ ! Note: the context of this file is case sensitive.
3234
+ """
3235
+ footer = """
3236
+ ! This file was auto-generated with f2py (version:%s).
3237
+ ! See http://cens.ioc.ee/projects/f2py2e/
3238
+ """ % (f2py_version)
3239
+ return header + pyf + footer
3240
+
3241
+ if __name__ == "__main__":
3242
+ files = []
3243
+ funcs = []
3244
+ f = 1
3245
+ f2 = 0
3246
+ f3 = 0
3247
+ showblocklist = 0
3248
+ for l in sys.argv[1:]:
3249
+ if l == '':
3250
+ pass
3251
+ elif l[0] == ':':
3252
+ f = 0
3253
+ elif l == '-quiet':
3254
+ quiet = 1
3255
+ verbose = 0
3256
+ elif l == '-verbose':
3257
+ verbose = 2
3258
+ quiet = 0
3259
+ elif l == '-fix':
3260
+ if strictf77:
3261
+ outmess(
3262
+ 'Use option -f90 before -fix if Fortran 90 code is in fix form.\n', 0)
3263
+ skipemptyends = 1
3264
+ sourcecodeform = 'fix'
3265
+ elif l == '-skipemptyends':
3266
+ skipemptyends = 1
3267
+ elif l == '--ignore-contains':
3268
+ ignorecontains = 1
3269
+ elif l == '-f77':
3270
+ strictf77 = 1
3271
+ sourcecodeform = 'fix'
3272
+ elif l == '-f90':
3273
+ strictf77 = 0
3274
+ sourcecodeform = 'free'
3275
+ skipemptyends = 1
3276
+ elif l == '-h':
3277
+ f2 = 1
3278
+ elif l == '-show':
3279
+ showblocklist = 1
3280
+ elif l == '-m':
3281
+ f3 = 1
3282
+ elif l[0] == '-':
3283
+ errmess('Unknown option %s\n' % repr(l))
3284
+ elif f2:
3285
+ f2 = 0
3286
+ pyffilename = l
3287
+ elif f3:
3288
+ f3 = 0
3289
+ f77modulename = l
3290
+ elif f:
3291
+ try:
3292
+ open(l).close()
3293
+ files.append(l)
3294
+ except IOError as detail:
3295
+ errmess('IOError: %s\n' % str(detail))
3296
+ else:
3297
+ funcs.append(l)
3298
+ if not strictf77 and f77modulename and not skipemptyends:
3299
+ outmess("""\
3300
+ Warning: You have specifyied module name for non Fortran 77 code
3301
+ that should not need one (expect if you are scanning F90 code
3302
+ for non module blocks but then you should use flag -skipemptyends
3303
+ and also be sure that the files do not contain programs without program statement).
3304
+ """, 0)
3305
+
3306
+ postlist = crackfortran(files, funcs)
3307
+ if pyffilename:
3308
+ outmess('Writing fortran code to file %s\n' % repr(pyffilename), 0)
3309
+ pyf = crack2fortran(postlist)
3310
+ f = open(pyffilename, 'w')
3311
+ f.write(pyf)
3312
+ f.close()
3313
+ if showblocklist:
3314
+ show(postlist)