grattan (version 1.7.1.2)

pmaxC: Parallel maximum

Description

A faster pmax().

Arguments

x

A numeric vector.

a

A single numeric value.

Value

The parallel maximum of the input values. pmax0(x) is shorthand for pmaxC(x, 0), i.e. convert negative values in x to 0.