[J3] intrinsic procedures and assumed-rank
malcolm at nag-j.co.jp
Thu Oct 15 20:14:01 EDT 2020
Assumed-rank arrays can be associated with assumed-size arrays.
That’s not a problem for SHAPE et al (we return a silly value for the final dimension), but it’s impossible to do MAXVAL if you don’t know the actual size of the array.
..............Malcolm Cohen, NAG Oxford/Tokyo.
From: J3 <j3-bounces at mailman.j3-fortran.org> On Behalf Of Clune, Thomas L. (GSFC-6101) via J3
Sent: Friday, October 16, 2020 8:26 AM
To: General J3 interest list <j3 at mailman.j3-fortran.org>
Cc: Clune, Thomas L. (GSFC-6101) <thomas.l.clune at nasa.gov>
Subject: [J3] intrinsic procedures and assumed-rank
There almost certainly was a discussion of this at some point in the past, but I am seeing that while SHAPE(), SIZE(), UBOUND(), etc, can be used with an assumed-rank array, other things like MAXVAL() and MAXLOC() can not. I do not immediately see any reason why those could not be similarly extended, except maybe handling the case with MASK present would induce some (small) overhead?
Could this be changed in F202x or more likely F202y?
The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. Please see our Privacy Notice <https://www.nag.co.uk/content/privacy-notice> for information on how we process personal data and for details of how to stop or limit communications from us.
This e-mail has been scanned for all viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the J3