Generic Type Method

trunc(_:result:)

Calculates each element in the supplied single-precision vector truncated to a fraction.

Declaration

static func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

See Also

Single-Vector Fractional Part Extraction

static func trunc<U>(U) -> [Double]

Returns a double-precision array containing each element in the supplied vector truncated to a fraction.

static func trunc<U>(U) -> [Float]

Returns a single-precision array containing each element in the supplied vector truncated to a fraction.

static func trunc<U, V>(U, result: inout V)

Calculates each element in the supplied double-precision vector truncated to a fraction.