[NumPy-Tickets] [NumPy] #1532: f2py does not respect assumed size arrays of fortran 90

NumPy Trac numpy-tickets@scipy....
Mon Feb 28 14:40:46 CST 2011


#1532: f2py does not respect assumed size arrays of fortran 90
--------------------------+-------------------------------------------------
  Reporter:  ozn          |       Owner:  pearu      
      Type:  enhancement  |      Status:  reopened   
  Priority:  normal       |   Milestone:  Unscheduled
 Component:  numpy.f2py   |     Version:  devel      
Resolution:               |    Keywords:             
--------------------------+-------------------------------------------------

Comment(by lorenz):

 Works fine now for the examples!

 However, I feel almost guilty now for pointing out yet another issue that
 popped up when I was playing with your assumed shape support:

 It seems f2py can gracefully handle statements of the sort
 {{{
   real, intent(in)  :: foo_in(:)
   real, intent(out) :: foo_out(size(foo_in))
 }}}
 To make matters more interesting, I was unfortunately using something more
 complicated in my actual code, think of:
 {{{
   real, intent(in)  :: foo_in(:,:)
   real, intent(out) :: foo_out1(size(foo_in,1)), &
                        foo_out2(size(foo_in,2))

   ! or even a calculated shape:
   real, intent(out) :: foo_out3(size(foo_in,1) * 4)
 }}}
 But implementing support for this sounds rather non-trivial to me..

 Hope my input is still welcome,
 kind regards,
    Lorenz

 PS: The captachs here drive me mad!

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1532#comment:14>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list