Skip to content
  • Mark OLESEN's avatar
    ENH: minMax, minMaxMag as functions and field functions · 9a702900
    Mark OLESEN authored
    - Global functions are unary or combining binary functions, which are
      defined in MinMax.H (MinMaxOps.H).
    
      There are also global reduction functions (gMinMax, gMinMaxMag)
      as well as supporting 'Op' classes:
    
      - minMaxOp, minMaxEqOp, minMaxMagOp, minMaxMagEqOp
    
      Since the result of the functions represents a content reduction
      into a single MinMax<T> value (a min/max pair), field operations
      returning a field simply do not make sense.
    
    - Implemented for lists, fields, field-fields, DimensionedField,
      GeometricField (parallel reducing, with boundaries).
    
    - Since the minMax evaluates during its operation, this makes it more
      efficient for cases where both min/max values are required since it
      avoids looping twice through the data.
    
      * Changed GeometricField writeMinMax accordingly.
    
    ENH: clip as field function
    
    - clipping provides a more efficient, single-pass operation to apply
      lower/upper limits on single or multiple values.
    
      Examples...
    9a702900