diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-13 13:39:17 +0200 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2011-03-13 13:39:17 +0200 |
commit | c3f4e890e88a06866b467221d90cf8b71f83c2c5 (patch) | |
tree | 827b1174c14410c828c4a2e66597f20cacd63d6c | |
parent | b598d9c819113f50488f6995d91dcdbe8e49c3c7 (diff) | |
download | numpy-c3f4e890e88a06866b467221d90cf8b71f83c2c5.tar.gz |
DOC: Updated f2py related release notes.
-rw-r--r-- | doc/release/1.6.0-notes.rst | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/release/1.6.0-notes.rst b/doc/release/1.6.0-notes.rst index fdc020572..deead91ce 100644 --- a/doc/release/1.6.0-notes.rst +++ b/doc/release/1.6.0-notes.rst @@ -44,10 +44,21 @@ Legendre polynomials in ``numpy.polynomial`` -Fortran assumed shape array support in ``numpy.f2py`` ------------------------------------------------------ - - +Fortran assumed shape array and size function support in ``numpy.f2py`` +----------------------------------------------------------------------- + +F2py now supports wrapping Fortran 90 routines that use assumed shape +arrays. Before such routines could be called from Python but the +corresponding Fortran routines received assumed shape arrays as zero +length arrays which caused unpredicted results. Thanks to Lorenz +Hüdepohl for pointing out the correct way to interface routines with +assumed shape arrays. + +In addition, f2py interprets Fortran expression ``size(array, dim)`` +as ``shape(array, dim-1)`` which makes it possible to automatically +wrap Fortran routines that use two argument ``size`` function in +dimension specifications. Before users were forced to apply this +mapping manually. Other new functions |