The lanewise maximum of two vectors.
SDK
- Xcode 11.0+
Framework
- Swift Standard Library
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.