4 ms·
fortran really lets you start from any integer index, including negative ones, 1 is just a default if you omit the lower bound. But it's not half-open when you
by daviddlhg 13y ago
fortran really lets you start from any integer index, including negative ones, 1 is just a default if you omit the lower bound. But it's not half-open when you declare (or use slicing) i.e. it uses inclusive lower and upper bounds, so A(-17:-17, 10:10) has one element not none. It might or might not have been nicer if they'd been half-open. Or one could also imagine a start+length type declaration, but meh.
http://orion.math.iastate.edu/burkardt/papers/fortran_arrays.html#Array_Declarations http://orion.math.iastate.edu/burkardt/papers/fortran_arrays...