Function

vDSP_vfracD(_:_:_:_:_:)

Truncates the elements of a double-precision vector to fractions.

Declaration

func vDSP_vfracD(_ __A: UnsafePointer<Double>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Double>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Discussion

This function is the same as vDSP_vfrac(_:_:_:_:_:), except for the types of vectors A and C.

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.

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

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