Function

simd_sign(_:)

Returns the sign of each element in a vector.

Declaration

func simd_sign(_ x: simd_double3) -> simd_double3

See Also

Common Functions

func simd_abs(simd_double3) -> simd_double3

Returns the absolute value of each element in a vector.

func simd_clamp(simd_double3, simd_double3, simd_double3) -> simd_double3

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

func simd_fract(simd_double3) -> simd_double3

Returns the fractional part of each element in a vector.

func simd_step(simd_double3, simd_double3) -> simd_double3

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

func simd_equal(simd_double3, simd_double3) -> simd_bool

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