<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/arithmetic-operations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Arithmetic operations"
}
-->

# Arithmetic operations

Perform operations on large vectors.

## Topics

### Addition

[`static func add<U>(Double, U) -> [Double]`](/documentation/Accelerate/vDSP/add(_:_:)-9mv1a)

Returns the double-precision element-wise sum of a vector and a scalar value.

[`static func add<T, U>(T, U) -> [Double]`](/documentation/Accelerate/vDSP/add(_:_:)-2ftxc)

Returns the double-precision element-wise sum of two vectors.

[`static func add<U>(Float, U) -> [Float]`](/documentation/Accelerate/vDSP/add(_:_:)-53nh9)

Returns the single-precision element-wise sum of a vector and a scalar value.

[`static func add<T, U>(T, U) -> [Float]`](/documentation/Accelerate/vDSP/add(_:_:)-7swvf)

Returns the single-precision element-wise sum of two vectors.

[`static func add<U, V>(Double, U, result: inout V)`](/documentation/Accelerate/vDSP/add(_:_:result:)-2531u)

Calculates the single-precision element-wise sum of a vector and a scalar value.

[`static func add<U, V>(Float, U, result: inout V)`](/documentation/Accelerate/vDSP/add(_:_:result:)-2w0o9)

Calculates the single-precision element-wise sum of a vector and a scalar value.

[`static func add<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/add(_:_:result:)-338hl)

Calculates the double-precision element-wise sum of two vectors.

[`static func add<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/add(_:_:result:)-3vzwi)

Calculates the single-precision element-wise sum of two vectors.

[`static func add(DSPSplitComplex, to: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/add(_:to:count:result:)-g1dk)

Calculates the single-precision element-wise sum of the supplied complex vectors.

[`static func add(DSPDoubleSplitComplex, to: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/add(_:to:count:result:)-75np9)

Calculates the double-precision element-wise sum of the supplied complex vectors.

[`static func add<U>(multiplication: (a: U, b: Double), Double) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-4e3tj)

Returns the double-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<T, U>(multiplication: (a: T, b: Double), U) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-1bsuq)

Returns the double-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<T, U>(multiplication: (a: T, b: U), Double) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-9dxlr)

Returns the double-precision element-wise sum of the product of two vectors, and a scalar value.

[`static func add<S, T, U>(multiplication: (a: S, b: T), U) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-4667v)

Returns the double-precision element-wise sum of a vector and the product of two vectors.

[`static func add<U>(multiplication: (a: U, b: Float), Float) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-3tw93)

Returns the single-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<T, U>(multiplication: (a: T, b: Float), U) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-7aut1)

Returns the single-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<T, U>(multiplication: (a: T, b: U), Float) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-36vhq)

Returns the single-precision element-wise sum of the product of two vectors, and a scalar value.

[`static func add<S, T, U>(multiplication: (a: S, b: T), U) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:_:)-9bgb2)

Returns the single-precision element-wise sum of a vector and the product of two vectors.

[`static func add<U, V>(multiplication: (a: U, b: Double), Double, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-8ixx9)

Calculates the double-precision element-wise addition of the product of a vector and a scalar value, and a scalar.

[`static func add<T, U, V>(multiplication: (a: T, b: Double), U, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-2i5om)

Calculates the double-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<U, V>(multiplication: (a: U, b: Float), Float, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-1rob9)

Calculates the single-precision element-wise addition of the product of a vector and a scalar value, and a scalar.

[`static func add<T, U, V>(multiplication: (a: T, b: Float), U, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-6n4jf)

Calculates the single-precision element-wise addition of the product of a vector and a scalar value, and a vector.

[`static func add<T, U, V>(multiplication: (a: T, b: U), Double, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-2wpvw)

Calculates the double-precision element-wise sum of the product of two vectors, and a scalar value.

[`static func add<T, U, V>(multiplication: (a: T, b: U), Float, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-8dau)

Calculates the single-precision element-wise sum of the product of two vectors, and a scalar value.

[`static func add<S, T, U, V>(multiplication: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-48vyq)

Calculates the double-precision element-wise sum of a vector and the product of two vectors.

[`static func add<S, T, U, V>(multiplication: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:_:result:)-1srn8)

Calculates the single-precision element-wise sum of a vector and the product of two vectors.

[`static func add<T, U>(multiplication: (a: T, b: Double), multiplication: (c: U, d: Double)) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:)-563ub)

Returns the double-precision element-wise addition of two vector-scalar products.

[`static func add<R, S, T, U>(multiplication: (a: R, b: S), multiplication: (c: T, d: U)) -> [Double]`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:)-boma)

Returns the double-precision element-wise product of a vector and a vector, added to a second product of a vector and a vector.

[`static func add<T, U>(multiplication: (a: T, b: Float), multiplication: (c: U, d: Float)) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:)-8rjh8)

Returns the single-precision element-wise addition of two vector-scalar products.

[`static func add<R, S, T, U>(multiplication: (a: R, b: S), multiplication: (c: T, d: U)) -> [Float]`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:)-xxxa)

Returns the single-precision element-wise product of a vector and a vector, added to a second product of a vector and a vector.

[`static func add<T, U, V>(multiplication: (a: T, b: Double), multiplication: (c: U, d: Double), result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:result:)-9xe8k)

Calculates the double-precision element-wise addition of two vector-scalar products.

[`static func add<T, U, V>(multiplication: (a: T, b: Float), multiplication: (c: U, d: Float), result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:result:)-663mk)

Calculates the single-precision element-wise addition of two vector-scalar products.

[`static func add<R, S, T, U, V>(multiplication: (a: R, b: S), multiplication: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:result:)-5s7xu)

Calculates the double-precision element-wise product of a vector and a vector, added to a second product of a vector and a vector.

[`static func add<R, S, T, U, V>(multiplication: (a: R, b: S), multiplication: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/add(multiplication:multiplication:result:)-4g1u3)

Calculates the single-precision element-wise product of a vector and a vector, added to a second product of a vector and a vector.

### Subtraction

[`static func subtract<T, U>(U, T) -> [Double]`](/documentation/Accelerate/vDSP/subtract(_:_:)-8o5ai)

Returns the double-precision element-wise subtraction of two vectors.

[`static func subtract<T, U>(U, T) -> [Float]`](/documentation/Accelerate/vDSP/subtract(_:_:)-9xmo8)

Returns the single-precision element-wise subtraction of two vectors.

[`static func subtract<T, U, V>(U, T, result: inout V)`](/documentation/Accelerate/vDSP/subtract(_:_:result:)-1ianx)

Calculates the double-precision element-wise subtraction of two vectors.

[`static func subtract<T, U, V>(U, T, result: inout V)`](/documentation/Accelerate/vDSP/subtract(_:_:result:)-2p3fa)

Calculates the single-precision element-wise subtraction of two vectors.

[`static func subtract(DSPSplitComplex, from: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/subtract(_:from:count:result:)-4p5xd)

Calculates the single-precision element-wise subtraction of a complex vector from a complex vector.

[`static func subtract(DSPDoubleSplitComplex, from: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/subtract(_:from:count:result:)-80zi9)

Calculates the double-precision element-wise subtraction of a complex vector from a complex vector.

[`static func subtract<T, U>(multiplication: (a: U, b: Double), T) -> [Double]`](/documentation/Accelerate/vDSP/subtract(multiplication:_:)-2hhme)

Calculates the double-precision element-wise difference of the product of a vector and a scalar value, and a vector.

[`static func subtract<S, T, U>(multiplication: (a: T, b: U), S) -> [Double]`](/documentation/Accelerate/vDSP/subtract(multiplication:_:)-9gphg)

Returns the double-precision element-wise difference of a vector and the product of two vectors.

[`static func subtract<T, U>(multiplication: (a: U, b: Float), T) -> [Float]`](/documentation/Accelerate/vDSP/subtract(multiplication:_:)-3zm6l)

Calculates the single-precision element-wise difference of the product of a vector and a scalar value, and a vector.

[`static func subtract<S, T, U>(multiplication: (a: T, b: U), S) -> [Float]`](/documentation/Accelerate/vDSP/subtract(multiplication:_:)-6u3sp)

Returns the single-precision element-wise difference of a vector and the product of two vectors.

[`static func subtract<T, U, V>(multiplication: (a: U, b: Double), T, result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:_:result:)-9p12h)

Calculates the double-precision element-wise difference of the product of a vector and a scalar value, and a vector.

[`static func subtract<T, U, V>(multiplication: (a: U, b: Float), T, result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:_:result:)-86gx3)

Calculates the single-precision element-wise difference of the product of a vector and a scalar value, and a vector.

[`static func subtract<S, T, U, V>(multiplication: (a: T, b: U), S, result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:_:result:)-3f2bw)

Calculates the double-precision element-wise difference of a vector and the product of two vectors.

[`static func subtract<S, T, U, V>(multiplication: (a: T, b: U), S, result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:_:result:)-6b91s)

Calculates the single-precision element-wise difference of a vector and the product of two vectors.

[`static func subtract<R, S, T, U>(multiplication: (a: T, b: U), multiplication: (c: R, d: S)) -> [Double]`](/documentation/Accelerate/vDSP/subtract(multiplication:multiplication:)-22a4b)

Returns the double-precision element-wise difference of the products of two pairs of vectors.

[`static func subtract<R, S, T, U>(multiplication: (a: T, b: U), multiplication: (c: R, d: S)) -> [Float]`](/documentation/Accelerate/vDSP/subtract(multiplication:multiplication:)-1ghyu)

Returns the single-precision element-wise difference of the products of two pairs of vectors.

[`static func subtract<R, S, T, U, V>(multiplication: (a: T, b: U), multiplication: (c: R, d: S), result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:multiplication:result:)-48y6i)

Calculates the double-precision element-wise difference of the products of two pairs of vectors.

[`static func subtract<R, S, T, U, V>(multiplication: (a: T, b: U), multiplication: (c: R, d: S), result: inout V)`](/documentation/Accelerate/vDSP/subtract(multiplication:multiplication:result:)-8ofjj)

Calculates the single-precision element-wise difference of the products of two pairs of vectors.

### Addition and Subtraction

[`static func addSubtract<S, T, U, V>(S, T, addResult: inout U, subtractResult: inout V)`](/documentation/Accelerate/vDSP/addSubtract(_:_:addResult:subtractResult:)-avzd)

Calculates the double-precision element-wise sum and subtraction of two vectors.

[`static func addSubtract<S, T, U, V>(S, T, addResult: inout U, subtractResult: inout V)`](/documentation/Accelerate/vDSP/addSubtract(_:_:addResult:subtractResult:)-6qxwa)

Calculates the single-precision element-wise sum and subtraction of two vectors.

### Multiplication

[`static func multiply<U>(Double, U) -> [Double]`](/documentation/Accelerate/vDSP/multiply(_:_:)-9dxnc)

Returns the double-precision element-wise product of a vector and a scalar value.

[`static func multiply<T, U>(T, U) -> [Double]`](/documentation/Accelerate/vDSP/multiply(_:_:)-1ckqt)

Returns the double-precision element-wise product of two vectors.

[`static func multiply<U>(Float, U) -> [Float]`](/documentation/Accelerate/vDSP/multiply(_:_:)-993yp)

Returns the single-precision element-wise product of a vector and a scalar value.

[`static func multiply<T, U>(T, U) -> [Float]`](/documentation/Accelerate/vDSP/multiply(_:_:)-9zgw)

Returns the single-precision element-wise product of two vectors.

[`static func multiply<U, V>(Double, U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(_:_:result:)-4xorc)

Calculates the double-precision element-wise product of a vector and a scalar value.

[`static func multiply<U, V>(Float, U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(_:_:result:)-358cn)

Calculates the single-precision element-wise product of a vector and a scalar value.

[`static func multiply<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(_:_:result:)-3ptjl)

Calculates the double-precision element-wise product of two vectors.

[`static func multiply<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(_:_:result:)-155f3)

Calculates the single-precision element-wise product of two vectors.

[`static func multiply(DSPSplitComplex, by: DSPSplitComplex, count: Int, useConjugate: Bool, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/multiply(_:by:count:useConjugate:result:)-4idx8)

Calculates the product of two complex single-precision vectors, optionally conjugating one of them.

[`static func multiply(DSPDoubleSplitComplex, by: DSPDoubleSplitComplex, count: Int, useConjugate: Bool, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/multiply(_:by:count:useConjugate:result:)-79r8u)

Calculates the element-wise product of two complex double-precision vectors, optionally conjugating one of them.

[`static func multiply<U>(DSPSplitComplex, by: U, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/multiply(_:by:result:)-8b9eq)

Calculates the double-precision element-wise product of a complex vector and a real vector.

[`static func multiply<U>(DSPDoubleSplitComplex, by: U, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/multiply(_:by:result:)-8jyhd)

Calculates the single-precision element-wise product of a complex vector and a real vector.

[`static func multiply<T, U>(addition: (a: T, b: U), Double) -> [Double]`](/documentation/Accelerate/vDSP/multiply(addition:_:)-4c9in)

Returns the double-precision element-wise product of the sum of two vectors and a scalar value.

[`static func multiply<S, T, U>(addition: (a: S, b: T), U) -> [Double]`](/documentation/Accelerate/vDSP/multiply(addition:_:)-1wt61)

Returns the double-precision element-wise product of a vector and the sum of two vectors.

[`static func multiply<T, U>(addition: (a: T, b: U), Float) -> [Float]`](/documentation/Accelerate/vDSP/multiply(addition:_:)-4fnbx)

Returns the single-precision element-wise product of the sum of two vectors and a scalar value.

[`static func multiply<S, T, U>(addition: (a: S, b: T), U) -> [Float]`](/documentation/Accelerate/vDSP/multiply(addition:_:)-7t59)

Returns the single-precision element-wise product of a vector and the sum of two vectors.

[`static func multiply<T, U, V>(addition: (a: T, b: U), Double, result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:_:result:)-7dujy)

Calculates the double-precision element-wise product of the sum of two vectors and a scalar value.

[`static func multiply<T, U, V>(addition: (a: T, b: U), Float, result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:_:result:)-6x7xq)

Calculates the single-precision element-wise product of the sum of two vectors and a scalar value.

[`static func multiply<S, T, U, V>(addition: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:_:result:)-5sqwo)

Calculates the double-precision element-wise product of a vector and the sum of two vectors.

[`static func multiply<S, T, U, V>(addition: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:_:result:)-3jqts)

Calculates the single-precision element-wise product of a vector and the sum of two vectors.

[`static func multiply<S, T, U>(addition: (a: S, b: T), addition: (c: U, d: U)) -> [Double]`](/documentation/Accelerate/vDSP/multiply(addition:addition:)-7rs)

Returns the double-precision element-wise product of the sums of two pairs of vectors.

[`static func multiply<S, T, U>(addition: (a: S, b: T), addition: (c: U, d: U)) -> [Float]`](/documentation/Accelerate/vDSP/multiply(addition:addition:)-1voy8)

Returns the single-precision element-wise product of the sums of two pairs of vectors.

[`static func multiply<S, T, U, V>(addition: (a: S, b: T), addition: (c: U, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:addition:result:)-89hgk)

Calculates the double-precision element-wise product of the sums of two pairs of vectors.

[`static func multiply<S, T, U, V>(addition: (a: S, b: T), addition: (c: U, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:addition:result:)-7p21q)

Calculates the single-precision element-wise product of the sums of two pairs of vectors.

[`static func multiply<R, S, T, U>(addition: (a: R, b: S), subtraction: (c: T, d: U)) -> [Double]`](/documentation/Accelerate/vDSP/multiply(addition:subtraction:)-7qfik)

Returns the double-precision element-wise product of the sum of two vectors and the difference of two vectors.

[`static func multiply<R, S, T, U>(addition: (a: R, b: S), subtraction: (c: T, d: U)) -> [Float]`](/documentation/Accelerate/vDSP/multiply(addition:subtraction:)-6h89l)

Returns the single-precision element-wise product of the sum of two vectors and the difference of two vectors.

[`static func multiply<R, S, T, U, V>(addition: (a: R, b: S), subtraction: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:subtraction:result:)-2rldl)

Calculates the double-precision element-wise product of the sum of two vectors and the difference of two vectors.

[`static func multiply<R, S, T, U, V>(addition: (a: R, b: S), subtraction: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(addition:subtraction:result:)-j688)

Calculates the double-precision element-wise product of the sum of two vectors and the difference of two vectors.

[`static func multiply<T, U>(subtraction: (a: T, b: U), Double) -> [Double]`](/documentation/Accelerate/vDSP/multiply(subtraction:_:)-3gxn3)

Returns the double-precision element-wise product of the difference of two vectors and a scalar value.

[`static func multiply<S, T, U>(subtraction: (a: S, b: T), U) -> [Double]`](/documentation/Accelerate/vDSP/multiply(subtraction:_:)-8a8sr)

Returns the double-precision element-wise product of a vector and the differences of two vectors.

[`static func multiply<T, U>(subtraction: (a: T, b: U), Float) -> [Float]`](/documentation/Accelerate/vDSP/multiply(subtraction:_:)-106pt)

Returns the single-precision element-wise product of the difference of two vectors and a scalar value.

[`static func multiply<S, T, U>(subtraction: (a: S, b: T), U) -> [Float]`](/documentation/Accelerate/vDSP/multiply(subtraction:_:)-6y7g6)

Returns the single-precision element-wise product of a vector and the differences of two vectors.

[`static func multiply<T, U, V>(subtraction: (a: T, b: U), Double, result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:_:result:)-lhn7)

Calculates the double-precision element-wise product of the difference of two vectors and a scalar value.

[`static func multiply<T, U, V>(subtraction: (a: T, b: U), Float, result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:_:result:)-5l106)

Calculates the single-precision element-wise product of the difference of two vectors and a scalar value.

[`static func multiply<S, T, U, V>(subtraction: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:_:result:)-ziw4)

Calculates the double-precision element-wise product of a vector and the differences of two vectors.

[`static func multiply<S, T, U, V>(subtraction: (a: S, b: T), U, result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:_:result:)-36flg)

Calculates the single-precision element-wise product of a vector and the differences of two vectors.

[`static func multiply<R, S, T, U>(subtraction: (a: R, b: S), subtraction: (c: T, d: U)) -> [Double]`](/documentation/Accelerate/vDSP/multiply(subtraction:subtraction:)-5pv8p)

Returns the double-precision element-wise product of the differences of two pairs of vectors.

[`static func multiply<R, S, T, U>(subtraction: (a: R, b: S), subtraction: (c: T, d: U)) -> [Float]`](/documentation/Accelerate/vDSP/multiply(subtraction:subtraction:)-1rnom)

Returns the single-precision element-wise product of the differences of two pairs of vectors.

[`static func multiply<R, S, T, U, V>(subtraction: (a: R, b: S), subtraction: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:subtraction:result:)-4jjy5)

Calculates the double-precision element-wise product of the differences of two pairs of vectors.

[`static func multiply<R, S, T, U, V>(subtraction: (a: R, b: S), subtraction: (c: T, d: U), result: inout V)`](/documentation/Accelerate/vDSP/multiply(subtraction:subtraction:result:)-rubk)

Calculates the single-precision element-wise product of the differences of two pairs of vectors.

### Division

[`static func divide<U>(Double, U) -> [Double]`](/documentation/Accelerate/vDSP/divide(_:_:)-73m8v)

Returns the double-precision element-wise division of a scalar value and a vector.

[`static func divide<U>(U, Double) -> [Double]`](/documentation/Accelerate/vDSP/divide(_:_:)-9nb4j)

Calculates the double-precision element-wise division of a vector and a scalar value.

[`static func divide<T, U>(T, U) -> [Double]`](/documentation/Accelerate/vDSP/divide(_:_:)-8swnm)

Returns the double-precision element-wise division of two vectors.

[`static func divide<U>(Float, U) -> [Float]`](/documentation/Accelerate/vDSP/divide(_:_:)-70npt)

Returns the single-precision element-wise division of a scalar value and a vector.

[`static func divide<U>(U, Float) -> [Float]`](/documentation/Accelerate/vDSP/divide(_:_:)-1uqmz)

Calculates the single-precision element-wise division of a vector and a scalar value.

[`static func divide<T, U>(T, U) -> [Float]`](/documentation/Accelerate/vDSP/divide(_:_:)-6nfsi)

Returns the single-precision element-wise division of two vectors.

[`static func divide<U, V>(Double, U, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-18qa3)

Calculates the double-precision element-wise division of a scalar value and a vector.

[`static func divide<U, V>(Float, U, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-3emlk)

Calculates the single-precision element-wise division of a scalar value and a vector.

[`static func divide<U, V>(U, Double, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-44mff)

Calculates the double-precision element-wise division of a vector and a scalar value.

[`static func divide<U, V>(U, Float, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-5hwb2)

Calculates the single-precision element-wise division of a vector and a scalar value.

[`static func divide<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-6gtmm)

Calculates the double-precision element-wise division of two vectors.

[`static func divide<T, U, V>(T, U, result: inout V)`](/documentation/Accelerate/vDSP/divide(_:_:result:)-7ejy9)

Calculates the single-precision element-wise division of two vectors.

[`static func divide(DSPSplitComplex, by: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/divide(_:by:count:result:)-9chz5)

Calculates the single-precision element-wise division of a complex vector by a complex vector.

[`static func divide(DSPDoubleSplitComplex, by: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/divide(_:by:count:result:)-57jlj)

Calculates the double-precision element-wise division of a complex vector by a complex vector.

[`static func divide<U>(DSPSplitComplex, by: U, result: inout DSPSplitComplex)`](/documentation/Accelerate/vDSP/divide(_:by:result:)-66qch)

Calculates the single-precision element-wise division of a complex vector by a real vector.

[`static func divide<U>(DSPDoubleSplitComplex, by: U, result: inout DSPDoubleSplitComplex)`](/documentation/Accelerate/vDSP/divide(_:by:result:)-402v9)

Calculates the double-precision element-wise division of a complex vector by a complex vector.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)