(j3.2006) Question about DIM
Bill Long
longb
Mon Jan 11 08:49:51 EST 2016
Perhaps a more interesting question is whether this relic is actually used? I can?t remember ever seeing it, though with only 48 years of Fortran programming experience, I?m a relative newcomer. :)
If there was any motivation to update DIM, more interesting questions would be
1) If X-Y is -0.0, is the result 0.0 or -0.0?
2) If X-Y is NaN, what is the result?
Cheers,
Bill
On Jan 10, 2016, at 11:32 PM, Van Snyder <van.snyder at jpl.nasa.gov> wrote:
> Does anybody remember a compelling reason why the arguments of DIM are
> required to be of the same type and kind, whereas, e.g., the arguments
> of DOT_PRODUCT can be any numeric type and kind with the type and kind
> of the result determined as for the product VECTOR_A*VECTOR_B?
>
> Why not allow X and Y to be either integer or real, of any kind,
> independently, with the type and kind of the result as if for X-Y as
> specified in 7.1.9.3?
>
>
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3
Bill Long longb at cray.com
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101
More information about the J3
mailing list