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

Tiziano Zito opossumnano@gmail....
Fri Nov 7 09:45:15 CST 2008


hi berthold, the zheevr routine is wrapped already in the symeig
package (http://mdp-toolkit.sourceforge.net/symeig.html). this
package is being integrated in scipy, but in the meanwhile it is
available as a standalone package. 

ciao,
tiziano


On Fri 07 Nov, 16:08, Berthold Höllmann wrote:
> 
> 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
> Berthold
> -- 
>                             __   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



> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev



More information about the Scipy-dev mailing list