[f2py] problem with a single row array argument
pearu at cens.ioc.ee
pearu at cens.ioc.ee
Wed Jul 20 11:43:19 EEST 2005
On Wed, 13 Jul 2005, Brett Olivier wrote:
> Hi Pearu, thanks for the fix.
>
> This might not be part of the same issue, but the getrf output is still
> slightly different between the old and new f2py versions. This is only really
> noticeable when the the first element of the array is a zero.
>
> Thanks
> Brett
>
> ========Older F2PY ===========
> SciPy version: 0.3.3_309.4624
> F2PY version: 2.45.241_1926
>
> arr = scipy.array([[0. 1. -1.]])
> res = scipy.linalg.clapack.dgetrf(arr)
>
> print res
> (array([ [ 1., 0., -1.]]), array([1],'i'), 0)
>
> ========CVS F2PY ===========
> SciPy version: 0.3.3_309.4624
> F2PY version: 2.46.243_1997
>
> arr = scipy.array([[0.,1.,-1.]])
> res = scipy.linalg.clapack.dgetrf(arr)
>
> print res
> (array([ [ 0., 1., -1.]]), array([0],'i'), 1)
Yes, I noticed that too. I don't have explaination for this behaviour but
in the latter case the result looks correct.
Pearu
More information about the f2py-users
mailing list