From c3f4e890e88a06866b467221d90cf8b71f83c2c5 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Sun, 13 Mar 2011 13:39:17 +0200 Subject: DOC: Updated f2py related release notes. --- doc/release/1.6.0-notes.rst | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'doc/release') 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 -- cgit v1.2.1