abs(_:)

Elementwise absolute value of a vector. The result is a vector of the same length with all elements positive.

Declaration

func abs(_ x: simd_half2) -> simd_half2