[SciPy-dev] "intent(aux)" does not honor "depend(..)"

Berthold Höllmann berthold@despammed....
Fri Nov 7 09:08:51 CST 2008

I try to wrap the lapack zheevr routine for a project of ours. Doing
this I try to determine the optimal workspace in the wrapper
routine. The generated code does work when put into correct order, but
inspite ow writing::

     integer intent(aux), depend(n) :: nb1 = __ilaenv(1, "ZHETRD", uplo, n, -1, -1, -1)
     integer intent(aux), depend(n) :: nb2 = __ilaenv(1, "ZUNMTR", uplo, n, -1, -1, -1)
     integer intent(aux), depend(nb1, nb2) :: nb = MAX(nb1, nb2)

the generated code for calculating nb1, nb2, and nb is inserted directly
after `PyArg_ParseTupleAndKeywords` is called, instead at a point after
`uplo` and `n` are set. I guess this is a bug?

Kind regards
                            __   Address:
                         G /  \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35       P.O.Box 111606
fax  : +49-40-36149-7320   \__/   D-20459 Hamburg    D-20416 Hamburg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20081107/1f2ff289/attachment.bin 

More information about the Scipy-dev mailing list