Function

simd_sign(_:)

Returns the sign of each element in a vector.

Declaration

func simd_sign(_ x: simd_float4) -> simd_float4

See Also

Common Functions

func simd_abs(simd_float4) -> simd_float4

Returns the absolute value of each element in a vector.

func simd_clamp(simd_float4, simd_float4, simd_float4) -> simd_float4

Returns each element in a vector clamped to a specified range.

func simd_fract(simd_float4) -> simd_float4

Returns the fractional part of each element in a vector.

func simd_step(simd_float4, simd_float4) -> simd_float4

Returns zero for each element in a vector less than a specified edge; one otherwise.

func simd_equal(simd_float4, simd_float4) -> simd_bool

Returns true if all elements of a vector are equal; false otherwise.