Generic Type Method

addSubtract(_:_:addResult:subtractResult:)

Calculates the double-precision elementwise sum and difference of the supplied vectors.

Declaration

static func addSubtract<S, T, U, V>(_ vectorA: S, _ vectorB: T, addResult: inout U, subtractResult: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateMutableBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

See Also

Addition and Subtraction

static func addSubtract<S, T, U, V>(S, T, addResult: inout U, subtractResult: inout V)

Calculates the single-precision elementwise sum and difference of the supplied vectors.