On 2011-10-26 13:35+0200 Arjen Markus wrote: > Hi Alan, > > that is most definitely possible: > > function range( n ) > integer :: n > > real(plflt), dimension(n) :: range > > range = (/ (i, i=1,n) /) > end function range > > I will introduce that function and maybe some others as well.
Excellent! I suggest using the "arange" name (since "range" is already taken for something completely different in the Fortran 95 standard) and python arange arguments (some optional with sensible defaults) of http://docs.scipy.org/doc/numpy/reference/generated/numpy.arange.html. That allows you to copy the exact use of arange in the python examples without worrying about offsets and increments. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel