Generic Function

pointwiseMax(_:_:)

The lanewise maximum of two vectors.

Declaration

func pointwiseMax<T>(_ a: T, _ b: T) -> T where T : SIMD, T.Scalar : Comparable

Discussion

Each element of the result is the minimum of the corresponding elements of the inputs.