Skip to content
Prev 48628 / 63424 Next

cummax / cummin for complex numbers

Michael Haupt <michael.haupt <at> oracle.com> writes:
Well, it is documented in the development version:

   x: a numeric or complex (not ?cummin? or ?cummax?) object, or an
          object that can be coerced to one of these.

I imagine the problem is in coming up with a good, consistent definition
of the min/max for complex numbers: would you prefer min/max modulus,
phase, real part, imaginary part ... ? max()/min() aren't even defined
for complex numbers in R ...