Re: maxval,product, etc with mask all false

From: James Van Buskirk (not_valid_at_comcast.net)
Date: 05/11/04

  • Next message: Carlie J. Coats: "Re: Code speedup"
    Date: Tue, 11 May 2004 01:16:49 GMT
    
    

    "Richard Maine" <nospam@see.signature> wrote in message
    news:m1r7tsrwpc.fsf@macfortran.local...

    > All these cases should be documented in any Fortran text. In general,
    > they return a "reasonable" extrapolation to the zero-size condition,
    > but the extrapolation is different for different cases. For example,
    > product is different from maxval/minval. Thus, although I can give
    > you the specific answers for those 3, I can't answer the "such as"
    > part of your question in other than the above very general terms. Do
    > note that having all elements of the mask be zero is just like having
    > a zero-sized array with no mask - that might help your intuition about
    > what the "reasonable" extrapolation is likely to be. I do recommend a
    > textbook for things like this (any textbook).

    The "such as" doesn't seem like such a long list:

    SUM: Zero
    COUNT: 0
    ANY: .FALSE.
    ALL: .TRUE.
    MAXLOC & MINLOC: A processor-dependent result in F95; zero
    is broadcast into the result in F03 -- thanks again for
    making this change.

    -- 
    write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
    6.0134700243160014d-154/),(/'x'/)); end
    

  • Next message: Carlie J. Coats: "Re: Code speedup"

    Relevant Pages

    • Re: Our Expanding Universe
      ... then try looking into a textbook... ... > that it's a conceptual tool only, and that that transformation affects ... BTW, according to the physics we have today, the elementary particles ... already *have* zero size. ...
      (sci.astro)
    • dimension of a null set
      ... The following is a textbook example of a set that has measure zero ... but is of the 2nd Baire category. ... be a convergent series with positive terms. ...
      (sci.math.research)
    • Re: first time using direct access files: recl ??
      ... "Richard Maine" wrote in message ... you're the millionth monkey this time. ... my website), blanket initialization to zero, or tab editing so ...
      (comp.lang.fortran)
    • Re: Solving inequality
      ... I cannot check if it is right (ie not a textbook ... the intersection we get x = ... Ah, yes of course, missed that one, the denominator of the expression ... is zero when x=0, so is undefined ...
      (sci.math)