One Logo Pool Ball
Accelerate · IOS API REFERENCE

vDSP

enum · iOS 13.0+ · SDK 27.1

enum vDSP

An enum that acts as a namespace for Swift overlays to vDSP based functions.

Members (363)

static · iOS 13.0+

downsample

TypeScript
static downsampleDecimationFactorFilterResult(source: Array<number>, decimationFactor: number, filter: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func downsample<T, U, V>(_ source: U, decimationFactor: Int, filter: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

FIR filtering with decimation and antialiasing; double-precision. - Parameter source: Double-precision input vector. - Parameter decimationFactor: The integer factor by which to divide the sampling rate. - Parameter filter: Filter to use during the downsampling operation. - Parameter result: Double-precision output vector. - Precondition: The number of elements in the input must be at least `decimationFactor * (result.count - 1) + filter.count`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

downsample

TypeScript
static downsampleDecimationFactorFilterResult3665(source: Array<number>, decimationFactor: number, filter: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func downsample<T, U, V>(_ source: U, decimationFactor: Int, filter: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

FIR filtering with decimation and antialiasing; single-precision. - Parameter source: Single-precision input vector. - Parameter decimationFactor: The integer factor by which to divide the sampling rate. - Parameter filter: Filter to use during the downsampling operation. - Parameter result: Single-precision output vector. - Precondition: The number of elements in the input must be at least `decimationFactor * (result.count - 1) + filter.count`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

downsample

TypeScript
static downsampleDecimationFactorFilter(source: Array<number>, decimationFactor: number, filter: Array<number>): Array<number>
Swift declaration
static func downsample<T, U>(_ source: U, decimationFactor: Int, filter: T) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

FIR filtering with decimation and antialiasing; double-precision. - Parameter source: Double-precision input vector. - Parameter decimationFactor: The integer factor by which to divide the sampling rate. - Parameter filter: Filter to use during the downsampling operation. - Returns: Double-precision output vector.

static · iOS 13.0+

downsample

TypeScript
static downsampleDecimationFactorFilter3744(source: Array<number>, decimationFactor: number, filter: Array<number>): Array<number>
Swift declaration
static func downsample<T, U>(_ source: U, decimationFactor: Int, filter: T) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

FIR filtering with decimation and antialiasing; single-precision. - Parameter source: Single-precision input vector. - Parameter decimationFactor: The integer factor by which to divide the sampling rate. - Parameter filter: Filter to use during the downsampling operation. - Returns: Single-precision output vector.

static · iOS 13.0+

formWindow

TypeScript
static formWindowUsingSequenceResultIsHalfWindow(sequence: vDSP_WindowSequence, result: Array<number>, isHalfWindow: boolean): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formWindow<V>(usingSequence sequence: vDSP.WindowSequence, result: inout V, isHalfWindow: Bool) where V : AccelerateMutableBuffer, V.Element == Double

Fills a supplied array with the specified window, double-precision. - Parameter sequence: Specifies the window sequence. - Parameter result: Output values. - Parameter isHalfWindow: When true, creates a window with only the first `(N+1)/2` points.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

formWindow

TypeScript
static formWindowUsingSequenceResultIsHalfWindow96227(sequence: vDSP_WindowSequence, result: Array<number>, isHalfWindow: boolean): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formWindow<V>(usingSequence sequence: vDSP.WindowSequence, result: inout V, isHalfWindow: Bool) where V : AccelerateMutableBuffer, V.Element == Float

Fills a supplied array with the specified window, single-precision. - Parameter sequence: Specifies the window sequence. - Parameter result: Output values. - Parameter isHalfWindow: When true, creates a window with only the first `(N+1)/2` points.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

meanSquare

TypeScript
static meanSquare(vector: Array<number>): number
Swift declaration
static func meanSquare<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns the mean square of the supplied double-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

meanSquare

TypeScript
static meanSquare62392(vector: Array<number>): number
Swift declaration
static func meanSquare<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns the mean square of the supplied single-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

stereoRamp

TypeScript
static stereoRampWithInitialValueMultiplyingByIncrement(initialValue: number, multiplierOne: Array<number>, multiplierTwo: Array<number>, increment: number): { $ret: { "firstOutput": Array<number>; "secondOutput": Array<number> }; $out: { "initialValue": number } }
Swift declaration
static func stereoRamp<U>(withInitialValue initialValue: inout Double, multiplyingBy multiplierOne: U, _ multiplierTwo: U, increment: Double) -> (firstOutput: [Double], secondOutput: [Double]) where U : AccelerateBuffer, U.Element == Double

Returns two arraya containing monotonically monotonically incrementing or decrementing values, multiplying by a source vector, stereo, double-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplierOne: Input values multiplied by the ramp function. - Parameter multiplierTwo: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Returns: A tuple of two arrays containing the specified ramps.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue inside $out.

static · iOS 13.0+

stereoRamp

TypeScript
static stereoRampWithInitialValueMultiplyingByIncrement41941(initialValue: number, multiplierOne: Array<number>, multiplierTwo: Array<number>, increment: number): { $ret: { "firstOutput": Array<number>; "secondOutput": Array<number> }; $out: { "initialValue": number } }
Swift declaration
static func stereoRamp<U>(withInitialValue initialValue: inout Float, multiplyingBy multiplierOne: U, _ multiplierTwo: U, increment: Float) -> (firstOutput: [Float], secondOutput: [Float]) where U : AccelerateBuffer, U.Element == Float

Returns two arraya containing monotonically monotonically incrementing or decrementing values, multiplying by a source vector, stereo, single-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplierOne: Input values multiplied by the ramp function. - Parameter multiplierTwo: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Returns: A tuple of two arrays containing the specified ramps.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue inside $out.

static · iOS 13.0+

addSubtract

TypeScript
static addSubtractAddResultSubtractResult(vectorA: Array<number>, vectorB: Array<number>, addResult: Array<number>, subtractResult: Array<number>): { $ret: null; $out: { "addResult": Array<number>; "subtractResult": Array<number> } }
Swift 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

Calculates elementwise sum and difference of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `i1` in `o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter vectorB: the `i0` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter addResult: The `o0` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter subtractResult: The `o1` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with addResult, subtractResult inside $out.

static · iOS 13.0+

addSubtract

TypeScript
static addSubtractAddResultSubtractResult10636(vectorA: Array<number>, vectorB: Array<number>, addResult: Array<number>, subtractResult: Array<number>): { $ret: null; $out: { "addResult": Array<number>; "subtractResult": Array<number> } }
Swift 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 == Float, T.Element == Float, U.Element == Float, V.Element == Float

Calculates elementwise sum and difference of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `i1` in `o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter vectorB: the `i0` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter addResult: The `o0` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`. - Parameter subtractResult: The `o1` in o0[i] = i1[i] + i0[i]; o1[i] = i1[i] - i0[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with addResult, subtractResult inside $out.

static · iOS 13.0+

invertedClip

TypeScript
static invertedClipToResult(vector: Array<number>, bounds: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func invertedClip<U, V>(_ vector: U, to bounds: ClosedRange<Double>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elements of `vector` inverted-clipped to the specified range. Double-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Parameter result: The clipped result. This function performs the following operation where `A` is `vector`, `B` is `bounds.lowerBound`, `C` is `bounds.upperBound`, and `D` is the inverted clip result: ``` for (int n = 0; n < N; ++n) { if (A[n] <= *B || A[n] >= *C) D[n] = A[n]; else if (A[n] < 0) D[n] = *B; else D[n] = *C; } ```

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

invertedClip

TypeScript
static invertedClipToResult55066(vector: Array<number>, bounds: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func invertedClip<U, V>(_ vector: U, to bounds: ClosedRange<Float>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elements of `vector` inverted-clipped to the specified range. Single-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Parameter result: The clipped result. This function performs the following operation where `A` is `vector`, `B` is `bounds.lowerBound`, `C` is `bounds.upperBound`, and `D` is the inverted clip result: ``` for (int n = 0; n < N; ++n) { if (A[n] <= *B || A[n] >= *C) D[n] = A[n]; else if (A[n] < 0) D[n] = *B; else D[n] = *C; } ```

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

invertedClip

TypeScript
static invertedClipTo(vector: Array<number>, bounds: SDKHandle): Array<number>
Swift declaration
static func invertedClip<U>(_ vector: U, to bounds: ClosedRange<Double>) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elements of `vector` inverted-clipped to the specified range. Double-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result. This function performs the following operation where `A` is `vector`, `B` is `bounds.lowerBound`, `C` is `bounds.upperBound`, and `D` is the inverted clip result: ``` for (int n = 0; n < N; ++n) { if (A[n] <= *B || A[n] >= *C) D[n] = A[n]; else if (A[n] < 0) D[n] = *B; else D[n] = *C; } ```

static · iOS 13.0+

invertedClip

TypeScript
static invertedClipTo65979(vector: Array<number>, bounds: SDKHandle): Array<number>
Swift declaration
static func invertedClip<U>(_ vector: U, to bounds: ClosedRange<Float>) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elements of `vector` inverted-clipped to the specified range. Single-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result. This function performs the following operation where `A` is `vector`, `B` is `bounds.lowerBound`, `C` is `bounds.upperBound`, and `D` is the inverted clip result: ``` for (int n = 0; n < N; ++n) { if (A[n] <= *B || A[n] >= *C) D[n] = A[n]; else if (A[n] < 0) D[n] = *B; else D[n] = *C; } ```

static · iOS 13.0+

signedSquare

TypeScript
static signedSquareResult(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func signedSquare<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Calculates the signed square of each element in `vector`, writing the result to `result`; double-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

signedSquare

TypeScript
static signedSquareResult37784(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func signedSquare<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Calculates the signed square of each element in `vector`, writing the result to `result`; single-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

signedSquare

TypeScript
static signedSquare(vector: Array<number>): Array<number>
Swift declaration
static func signedSquare<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the signed square of each element in `vector`, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

signedSquare

TypeScript
static signedSquare57683(vector: Array<number>): Array<number>
Swift declaration
static func signedSquare<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the signed square of each element in `vector`, single-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

sumOfSquares

TypeScript
static sumOfSquares(vector: Array<number>): number
Swift declaration
static func sumOfSquares<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector sum of squares; double-precision. - Parameter vector: The input vector. - Returns: The sum of squares in `vector`.

static · iOS 13.0+

sumOfSquares

TypeScript
static sumOfSquares21210(vector: Array<number>): number
Swift declaration
static func sumOfSquares<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector sum of squares; single-precision. - Parameter vector: The input vector. - Returns: The sum of squares in `vector`.

static · iOS 14.0+

swapElements

TypeScript
static swapElements(vectorA: Array<number>, vectorB: Array<number>): { $ret: null; $out: { "vectorA": Array<number>; "vectorB": Array<number> } }
Swift declaration
static func swapElements<T, U>(_ vectorA: inout T, _ vectorB: inout U) where T : AccelerateMutableBuffer, U : AccelerateMutableBuffer, T.Element == Double, U.Element == Double

Swaps the elements of two double-precision vectors. - Parameter vectorA: First input-output vector. - Parameter vectorB: Second input-output vector.

Omit the output parameters from the call. The result contains $ret and $out, with vectorA, vectorB inside $out.

static · iOS 14.0+

swapElements

TypeScript
static swapElements3347(vectorA: Array<number>, vectorB: Array<number>): { $ret: null; $out: { "vectorA": Array<number>; "vectorB": Array<number> } }
Swift declaration
static func swapElements<T, U>(_ vectorA: inout T, _ vectorB: inout U) where T : AccelerateMutableBuffer, U : AccelerateMutableBuffer, T.Element == Float, U.Element == Float

Swaps the elements of two single-precision vectors. - Parameter vectorA: First input-output vector. - Parameter vectorB: Second input-output vector.

Omit the output parameters from the call. The result contains $ret and $out, with vectorA, vectorB inside $out.

static · iOS 14.0+

taperedMerge

TypeScript
static taperedMergeResult(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func taperedMerge<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Tapered merge of two double-precision vectors. - Parameter vectorA: First input vector. - Parameter vectorB: Second input vector. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

taperedMerge

TypeScript
static taperedMergeResult91810(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func taperedMerge<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Tapered merge of two single-precision vectors. - Parameter vectorA: First input vector. - Parameter vectorB: Second input vector. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

taperedMerge

TypeScript
static taperedMerge(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func taperedMerge<T, U>(_ vectorA: T, _ vectorB: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns tapered merge of two double-precision vectors. - Parameter vectorA: First input vector. - Parameter vectorB: Second input vector. - Parameter result: Output values.

static · iOS 14.0+

taperedMerge

TypeScript
static taperedMerge88366(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func taperedMerge<T, U>(_ vectorA: T, _ vectorB: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns tapered merge of two single-precision vectors. - Parameter vectorA: First input vector. - Parameter vectorB: Second input vector. - Parameter result: Output values.

static · iOS 13.0+

doubleToFloat

TypeScript
static doubleToFloat(source: Array<number>): Array<number>
Swift declaration
static func doubleToFloat<U>(_ source: U) -> [Float] where U : AccelerateBuffer, U.Element == Double

Converts an array of double-precision floating-point values to single-precision floating-point values. - Parameter source: Source vector. - Returns: Conversion result.

static · iOS 13.0+

floatToDouble

TypeScript
static floatToDouble(source: Array<number>): Array<number>
Swift declaration
static func floatToDouble<U>(_ source: U) -> [Double] where U : AccelerateBuffer, U.Element == Float

Converts an array of single-precision floating-point values to double-precision floating-point values. - Parameter source: Source vector. - Returns: Conversion result.

static · iOS 13.0+

meanMagnitude

TypeScript
static meanMagnitude(vector: Array<number>): number
Swift declaration
static func meanMagnitude<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns the mean magnitude of the supplied double-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

meanMagnitude

TypeScript
static meanMagnitude18834(vector: Array<number>): number
Swift declaration
static func meanMagnitude<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns the mean magnitude of the supplied single-precision vector. - Parameter vector: The input vector.

static · iOS 16.0+

float16ToFloat

TypeScript
static float16ToFloat(source: Array<number>): Array<number>
Swift declaration
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0)
static func float16ToFloat<U>(_ source: U) -> [Float] where U : AccelerateBuffer, U.Element == Float16

Returns an array of 16-bit floating-point values converted to single-precision floating-point values. - Parameter source: Source vector. - Returns: Conversion result.

static · iOS 16.0+

floatToFloat16

TypeScript
static floatToFloat16(source: Array<number>): Array<number>
Swift declaration
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0)
static func floatToFloat16<U>(_ source: U) -> [Float16] where U : AccelerateBuffer, U.Element == Float

Returns an array of single-precision floating-point values converted to 16-bit floating-point values. - Parameter source: Source vector. - Returns: Conversion result.

static · iOS 13.0+

formStereoRamp

TypeScript
static formStereoRampWithInitialValueMultiplyingByIncrementResults(initialValue: number, multiplierOne: Array<number>, multiplierTwo: Array<number>, increment: number, resultOne: Array<number>, resultTwo: Array<number>): { $ret: null; $out: { "initialValue": number; "resultOne": Array<number>; "resultTwo": Array<number> } }
Swift declaration
static func formStereoRamp<U, V>(withInitialValue initialValue: inout Double, multiplyingBy multiplierOne: U, _ multiplierTwo: U, increment: Double, results resultOne: inout V, _ resultTwo: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Fills a supplied array with monotonically incrementing or decrementing values, multiplying by a source vector, stereo, double-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplierOne: Input values multiplied by the ramp function. - Parameter multiplierTwo: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter resultOne: Output values. - Parameter resultTwo: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue, resultOne, resultTwo inside $out.

static · iOS 13.0+

formStereoRamp

TypeScript
static formStereoRampWithInitialValueMultiplyingByIncrementResults57397(initialValue: number, multiplierOne: Array<number>, multiplierTwo: Array<number>, increment: number, resultOne: Array<number>, resultTwo: Array<number>): { $ret: null; $out: { "initialValue": number; "resultOne": Array<number>; "resultTwo": Array<number> } }
Swift declaration
static func formStereoRamp<U, V>(withInitialValue initialValue: inout Float, multiplyingBy multiplierOne: U, _ multiplierTwo: U, increment: Float, results resultOne: inout V, _ resultTwo: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Fills a supplied array with monotonically incrementing or decrementing values, multiplying by a source vector, stereo, single-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplierOne: Input values multiplied by the ramp function. - Parameter multiplierTwo: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter resultOne: Output values. - Parameter resultTwo: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue, resultOne, resultTwo inside $out.

static · iOS 13.0+

indexOfMaximum

TypeScript
static indexOfMaximum(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMaximum<U>(_ vector: U) -> (UInt, Double) where U : AccelerateBuffer, U.Element == Double

Returns vector maximum with index; double-precision. - Parameter vector: The input vector. - Returns: A tuple containing the maximum value and its index.

static · iOS 13.0+

indexOfMaximum

TypeScript
static indexOfMaximum40460(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMaximum<U>(_ vector: U) -> (UInt, Float) where U : AccelerateBuffer, U.Element == Float

Returns vector maximum with index; single-precision. - Parameter vector: The input vector. - Returns: A tuple containing the maximum value and its index.

static · iOS 13.0+

indexOfMinimum

TypeScript
static indexOfMinimum(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMinimum<U>(_ vector: U) -> (UInt, Double) where U : AccelerateBuffer, U.Element == Double

Returns vector minimum with index; double-precision. - Parameter vector: The input vector. - Returns: A tuple containing the minimum value and its index.

static · iOS 13.0+

indexOfMinimum

TypeScript
static indexOfMinimum35802(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMinimum<U>(_ vector: U) -> (UInt, Float) where U : AccelerateBuffer, U.Element == Float

Returns vector minimum with index; single-precision. - Parameter vector: The input vector. - Returns: A tuple containing the minimum value and its index.

static · iOS 13.0+

rootMeanSquare

TypeScript
static rootMeanSquare(vector: Array<number>): number
Swift declaration
static func rootMeanSquare<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns the root-mean-square of the supplied double-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

rootMeanSquare

TypeScript
static rootMeanSquare81416(vector: Array<number>): number
Swift declaration
static func rootMeanSquare<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns the root-mean-square of the supplied single-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Int8

Converts an array of double-precision floating-point values to signed 8-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding23870(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Int16

Converts an array of double-precision floating-point values to signed 16-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding19512(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Int32

Converts an array of double-precision floating-point values to signed 32-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding17060(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == UInt8

Converts an array of double-precision floating-point values to unsigned 8-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding42868(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == UInt16

Converts an array of double-precision floating-point values to unsigned 16-bit integer values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding72402(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == UInt32

Converts an array of double-precision floating-point values to unsigned 32-bit integer values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding40708(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Int8

Converts an array of single-precision floating-point values to signed 8-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding80924(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Int16

Converts an array of single-precision floating-point values to signed 16-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding98362(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Int32

Converts an array of single-precision floating-point values to signed 32-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding15142(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == UInt8

Converts an array of single-precision floating-point values to unsigned 8-bit integer values using specified rounding. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding76746(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == UInt16

Converts an array of single-precision floating-point values to unsigned 16-bit integer values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfToRounding81324(source: Array<number>, destination: Array<number>, rounding: vDSP_RoundingMode): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == UInt32

Converts an array of single-precision floating-point values to unsigned 32-bit integer values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Float

Converts an array of double-precision floating-point values to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo29620(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Double

Converts an array of single-precision floating-point values to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 16.0+

convertElements

TypeScript
static convertElementsOfTo69456(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0)
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float16

Converts an array of single-precision floating-point values to 16-bit floating-point values. - Parameter source: The source vector. - Parameter destination: The destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo86755(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int8, V.Element == Double

Converts an array of signed 8-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo34169(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int8, V.Element == Float

Converts an array of signed 8-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo55659(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int16, V.Element == Double

Converts an array of signed 16-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo84481(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int16, V.Element == Float

Converts an array of signed 16-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo11261(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int32, V.Element == Double

Converts an array of signed 32-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo15431(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Int32, V.Element == Float

Converts an array of signed 32-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo95561(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt8, V.Element == Double

Converts an array of unsigned 8-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo23923(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt8, V.Element == Float

Converts an array of unsigned 8-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo1149(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt16, V.Element == Double

Converts an array of unsigned 16-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo33511(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt16, V.Element == Float

Converts an array of unsigned 16-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo81227(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt32, V.Element == Double

Converts an array of unsigned 32-bit integers to double-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

convertElements

TypeScript
static convertElementsOfTo41729(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == UInt32, V.Element == Float

Converts an array of unsigned 32-bit integers to single-precision floating-point values. - Parameter source: Source vector. - Parameter destination: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 16.0+

convertElements

TypeScript
static convertElementsOfTo94466(source: Array<number>, destination: Array<number>): { $ret: null; $out: { "destination": Array<number> } }
Swift declaration
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0)
static func convertElements<U, V>(of source: U, to destination: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float16, V.Element == Float

Converts an array of 16-bit floating-point values to single-precision floating-point values. - Parameter source: The source vector. - Parameter destination: The destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

distanceSquared

TypeScript
static distanceSquared(pointA: Array<number>, pointB: Array<number>): number
Swift declaration
static func distanceSquared<U, V>(_ pointA: U, _ pointB: V) -> Double where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Returns the distance squared between two points in `n` dimensional space. Double-precision. - Parameter pointA: First point in `n` dimensional space, where `n` is the collection count. - Parameter pointB: Second point in `n` dimensional space, where `n` is the collection count. - Returns: The distance squared between `pointA` and `pointB`.

static · iOS 13.0+

distanceSquared

TypeScript
static distanceSquared82425(pointA: Array<number>, pointB: Array<number>): number
Swift declaration
static func distanceSquared<U, V>(_ pointA: U, _ pointB: V) -> Float where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Returns the distance squared between two points in `n` dimensional space. Single-precision. - Parameter pointA: First point in `n` dimensional space, where `n` is the collection count. - Parameter pointB: Second point in `n` dimensional space, where `n` is the collection count. - Returns: The distance squared between `pointA` and `pointB`.

static · iOS 13.0+

powerToDecibels

TypeScript
static powerToDecibelsZeroReference(power: Array<number>, zeroReference: number): Array<number>
Swift declaration
static func powerToDecibels<U>(_ power: U, zeroReference: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Converts power to decibels, double-precision. - Parameter power: Source vector. - Parameter zeroReference: Zero reference. - Returns: `power` converted to decibels.

static · iOS 13.0+

powerToDecibels

TypeScript
static powerToDecibelsZeroReference11877(power: Array<number>, zeroReference: number): Array<number>
Swift declaration
static func powerToDecibels<U>(_ power: U, zeroReference: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Converts power to decibels, single-precision. - Parameter power: Source vector. - Parameter zeroReference: Zero reference. - Returns: `power` converted to decibels.

static · iOS 13.0+

sumOfMagnitudes

TypeScript
static sumOfMagnitudes(vector: Array<number>): number
Swift declaration
static func sumOfMagnitudes<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector sum of magnitudes; double-precision. - Parameter vector: The input vector. - Returns: The sum of magnitudes in `vector`.

static · iOS 13.0+

sumOfMagnitudes

TypeScript
static sumOfMagnitudes54680(vector: Array<number>): number
Swift declaration
static func sumOfMagnitudes<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector sum of magnitudes; single-precision. - Parameter vector: The input vector. - Returns: The sum of magnitudes in `vector`.

static · iOS 13.0+

maximumMagnitude

TypeScript
static maximumMagnitude(vector: Array<number>): number
Swift declaration
static func maximumMagnitude<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector maximum magnitude; double-precision. - Parameter vector: The input vector. - Returns: The maximum magnitude in `vector`.

static · iOS 13.0+

maximumMagnitude

TypeScript
static maximumMagnitude13204(vector: Array<number>): number
Swift declaration
static func maximumMagnitude<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector maximum magnitude; single-precision. - Parameter vector: The input vector. - Returns: The maximum magnitude in `vector`.

static · iOS 13.0+

negativeAbsolute

TypeScript
static negativeAbsoluteResult(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func negativeAbsolute<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the negative absolute values of `vector`, double-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

negativeAbsolute

TypeScript
static negativeAbsoluteResult19893(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func negativeAbsolute<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the negative absolute values of `vector`, single-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

negativeAbsolute

TypeScript
static negativeAbsolute(vector: Array<number>): Array<number>
Swift declaration
static func negativeAbsolute<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the negative absolute values of `vector`, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

negativeAbsolute

TypeScript
static negativeAbsolute86676(vector: Array<number>): Array<number>
Swift declaration
static func negativeAbsolute<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the negative absolute values of `vector`, single-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

slidingWindowSum

TypeScript
static slidingWindowSumUsingWindowLengthResult(vector: Array<number>, windowLength: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func slidingWindowSum<U, V>(_ vector: U, usingWindowLength windowLength: Int, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Vector sliding window sum; double-precision. - Parameter source: Double-precision input vector. - Parameter windowLength: The number of consecutive elements to sum. - Parameter result: Double-precision output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

slidingWindowSum

TypeScript
static slidingWindowSumUsingWindowLengthResult67659(vector: Array<number>, windowLength: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func slidingWindowSum<U, V>(_ vector: U, usingWindowLength windowLength: Int, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Vector sliding window sum; single-precision. - Parameter source: Single-precision input vector. - Parameter windowLength: The number of consecutive elements to sum. - Parameter result: Single-precision output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

slidingWindowSum

TypeScript
static slidingWindowSumUsingWindowLength(vector: Array<number>, windowLength: number): Array<number>
Swift declaration
static func slidingWindowSum<U>(_ vector: U, usingWindowLength windowLength: Int) -> [Double] where U : AccelerateBuffer, U.Element == Double

Vector sliding window sum; double-precision. - Parameter source: Single-precision input vector. - Parameter windowLength: The number of consecutive elements to sum. - Returns: Single-precision output vector.

static · iOS 13.0+

slidingWindowSum

TypeScript
static slidingWindowSumUsingWindowLength50195(vector: Array<number>, windowLength: number): Array<number>
Swift declaration
static func slidingWindowSum<U>(_ vector: U, usingWindowLength windowLength: Int) -> [Float] where U : AccelerateBuffer, U.Element == Float

Vector sliding window sum; single-precision. - Parameter source: Single-precision input vector. - Parameter windowLength: The number of consecutive elements to sum. - Returns: Single-precision output vector.

static · iOS 13.0+

squareMagnitudes

TypeScript
static squareMagnitudesResult(splitComplex: DSPSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func squareMagnitudes<V>(_ splitComplex: DSPSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Calculates the squared magnitude of each element in `vector`, writing the result to `result`; single-precision. - Parameter splitComplex: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

squareMagnitudes

TypeScript
static squareMagnitudesResult96009(splitComplex: DSPDoubleSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func squareMagnitudes<V>(_ splitComplex: DSPDoubleSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateElementsOfUsingResult(vector: Array<number>, controlVector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(elementsOf vector: T, using controlVector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Vector linear interpolation between neighboring elements; double-precision. This function interpolates between the elements of `vector` using the following: for (n = 0; n < N; ++n) { b = trunc(B[n]); a = B[n] - b; C[n] = A[b] + a * (A[b+1] - A[b]); } Where `A` is the input vector, `B` is the control vector, and `C` is the output vector. - Parameter vector: Input values. - Parameter controlVector: Vector that controls interpolation. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateElementsOfUsingResult54257(vector: Array<number>, controlVector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(elementsOf vector: T, using controlVector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Vector linear interpolation between neighboring elements; single-precision. This function interpolates between the elements of `vector` using the following: for (n = 0; n < N; ++n) { b = trunc(B[n]); a = B[n] - b; C[n] = A[b] + a * (A[b+1] - A[b]); } Where `A` is the input vector, `B` is the control vector, and `C` is the output vector. - Parameter vector: Input values. - Parameter controlVector: Vector that controls interpolation. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateElementsOfUsing(vector: Array<number>, controlVector: Array<number>): Array<number>
Swift declaration
static func linearInterpolate<T, U>(elementsOf vector: T, using controlVector: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Vector linear interpolation between neighboring elements; double-precision. This function interpolates between the elements of `vector` using the following: for (n = 0; n < N; ++n) { b = trunc(B[n]); a = B[n] - b; C[n] = A[b] + a * (A[b+1] - A[b]); } Where `A` is the input vector, `B` is the control vector, and `C` is the output vector. - Parameter vector: Input values. - Parameter controlVector: Vector that controls interpolation. - Returns: Output values.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateElementsOfUsing92165(vector: Array<number>, controlVector: Array<number>): Array<number>
Swift declaration
static func linearInterpolate<T, U>(elementsOf vector: T, using controlVector: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Vector linear interpolation between neighboring elements; single-precision. This function interpolates between the elements of `vector` using the following: for (n = 0; n < N; ++n) { b = trunc(B[n]); a = B[n] - b; C[n] = A[b] + a * (A[b+1] - A[b]); } Where `A` is the input vector, `B` is the control vector, and `C` is the output vector. - Parameter vector: Input values. - Parameter controlVector: Vector that controls interpolation. - Returns: Output values.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateLookupTableWithOffsetsScaleBaseOffsetResult(lookupTable: Array<number>, offsets: Array<number>, scale: number, baseOffset: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(lookupTable: T, withOffsets offsets: U, scale: Double = 1, baseOffset: Double = 0, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Generates a double-precision vector by table lookup interpolation. - Parameter lookupTable: The lookup table. - Parameter offsets: The offsets into the lookup table. - Parameter scale: The scale factor. - Parameter baseOffset: The base offset. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateLookupTableWithOffsetsScaleBaseOffsetResult71830(lookupTable: Array<number>, offsets: Array<number>, scale: number, baseOffset: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(lookupTable: T, withOffsets offsets: U, scale: Float = 1, baseOffset: Float = 0, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Generates a single-precision vector by table lookup interpolation. - Parameter lookupTable: The lookup table. - Parameter offsets: The offsets into the lookup table. - Parameter scale: The scale factor. - Parameter baseOffset: The base offset. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateLookupTableWithOffsetsScaleBaseOffset(lookupTable: Array<number>, offsets: Array<number>, scale?: number, baseOffset?: number): Array<number>
Swift declaration
static func linearInterpolate<T, U>(lookupTable: T, withOffsets offsets: U, scale: Double = 1, baseOffset: Double = 0) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns a double-precision vector generating by table lookup interpolation. - Parameter lookupTable: The lookup table. - Parameter offsets: The offsets into the lookup table. - Parameter scale: The scale factor. - Parameter baseOffset: The base offset. - Returns: An array containing the result with a length of `offsets.count`.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateLookupTableWithOffsetsScaleBaseOffset9140(lookupTable: Array<number>, offsets: Array<number>, scale?: number, baseOffset?: number): Array<number>
Swift declaration
static func linearInterpolate<T, U>(lookupTable: T, withOffsets offsets: U, scale: Float = 1, baseOffset: Float = 0) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns a single-precision vector generating by table lookup interpolation. - Parameter lookupTable: The lookup table. - Parameter offsets: The offsets into the lookup table. - Parameter scale: The scale factor. - Parameter baseOffset: The base offset. - Returns: An array containing the result with a length of `offsets.count`.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateValuesAtIndicesResult(values: Array<number>, indices: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(values: T, atIndices indices: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Fills a double-precision vector by extrapolation and interpolation. - Parameter values: The values to interpolate, for example, intensities, magnitudes, or some other measurable quantities. - Parameter indices: The monotonically increasing indices to `result` for the corresponding element in `values`. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateValuesAtIndicesResult98994(values: Array<number>, indices: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(values: T, atIndices indices: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Fills a single-precision vector by extrapolation and interpolation. - Parameter values: The values to interpolate, for example, intensities, magnitudes, or some other measurable quantities. - Parameter indices: The monotonically increasing indices to `result` for the corresponding element in `values`. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateValuesAtIndices(values: Array<number>, indices: Array<number>): Array<number>
Swift declaration
static func linearInterpolate<T, U>(values: T, atIndices indices: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns a double-precision vector generating by extrapolation and interpolation. - Parameter values: The values to interpolate, for example, intensities, magnitudes, or some other measurable quantities. - Parameter indices: The monotonically increasing indices to the result for the corresponding element in `values`. - Returns: An array containing the extrapolation and interpolation result with a length of `max(indices) + 1`.

static · iOS 14.0+

linearInterpolate

TypeScript
static linearInterpolateValuesAtIndices26736(values: Array<number>, indices: Array<number>): Array<number>
Swift declaration
static func linearInterpolate<T, U>(values: T, atIndices indices: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns a single-precision vector generating by extrapolation and interpolation. - Parameter values: The values to interpolate, for example, intensities, magnitudes, or some other measurable quantities. - Parameter indices: The monotonically increasing indices to the result for the corresponding element in `values`. - Returns: An array containing the extrapolation and interpolation result with a length of `max(indices) + 1`.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateUsingResult(vectorA: Array<number>, vectorB: Array<number>, interpolationConstant: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(_ vectorA: T, _ vectorB: U, using interpolationConstant: Double, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Vector linear interpolation between vectors; double-precision. - Parameter vectorA: The `A` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter vectorB: The `B` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter interpolationConstant: The `C` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter result: The `D` in `D[n] = A[n] + C * (B[n] - A[n])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateUsingResult87784(vectorA: Array<number>, vectorB: Array<number>, interpolationConstant: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func linearInterpolate<T, U, V>(_ vectorA: T, _ vectorB: U, using interpolationConstant: Float, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Vector linear interpolation between vectors; single-precision. - Parameter vectorA: The `A` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter vectorB: The `B` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter interpolationConstant: The `C` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter result: The `D` in `D[n] = A[n] + C * (B[n] - A[n])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateUsing(vectorA: Array<number>, vectorB: Array<number>, interpolationConstant: number): Array<number>
Swift declaration
static func linearInterpolate<T, U>(_ vectorA: T, _ vectorB: U, using interpolationConstant: Double) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Vector linear interpolation between vectors; double-precision. - Parameter vectorA: The `A` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter vectorB: The `B` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter interpolationConstant: The `C` in `D[n] = A[n] + C * (B[n] - A[n])`. - Returns: The `D` in `D[n] = A[n] + C * (B[n] - A[n])`.

static · iOS 13.0+

linearInterpolate

TypeScript
static linearInterpolateUsing19851(vectorA: Array<number>, vectorB: Array<number>, interpolationConstant: number): Array<number>
Swift declaration
static func linearInterpolate<T, U>(_ vectorA: T, _ vectorB: U, using interpolationConstant: Float) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Vector linear interpolation between vectors; single-precision. - Parameter vectorA: The `A` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter vectorB: The `B` in `D[n] = A[n] + C * (B[n] - A[n])`. - Parameter interpolationConstant: The `C` in `D[n] = A[n] + C * (B[n] - A[n])`. - Returns: The `D` in `D[n] = A[n] + C * (B[n] - A[n])`.

static · iOS 13.0+

countZeroCrossings

TypeScript
static countZeroCrossings(vector: Array<number>): number
Swift declaration
static func countZeroCrossings<U>(_ vector: U) -> UInt where U : AccelerateBuffer, U.Element == Double

Returns the number of zero crossings in `vector`; double-precision. - Parameter vector: Input values. - Returns: The total number of transitions from positive to negative values and from negative to positive values.

static · iOS 13.0+

countZeroCrossings

TypeScript
static countZeroCrossings74377(vector: Array<number>): number
Swift declaration
static func countZeroCrossings<U>(_ vector: U) -> UInt where U : AccelerateBuffer, U.Element == Float

Returns the number of zero crossings in `vector`; single-precision. - Parameter vector: Input values. - Returns: The total number of transitions from positive to negative values and from negative to positive values.

static · iOS 13.0+

evaluatePolynomial

TypeScript
static evaluatePolynomialUsingCoefficientsWithVariablesResult(coefficients: Array<number>, variables: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func evaluatePolynomial<U, V>(usingCoefficients coefficients: [Double], withVariables variables: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Evaluates a polynomial using specified coefficients and independent variables. Double-precision. - Parameter coefficients: Coefficients. - Parameter variables: Independent variables. - Parameter result: Destination vector. For example, given the coefficients `[10, 20, 30]`, and independent variables `[2, 5]`, the result is calculated as: `result[0] = (10 * 2²) + (20 * 2¹) + (30 * 2⁰) // 110` `result[1] = (10 * 5²) + (20 * 5¹) + (30 * 5⁰) // 380`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

evaluatePolynomial

TypeScript
static evaluatePolynomialUsingCoefficientsWithVariablesResult60986(coefficients: Array<number>, variables: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func evaluatePolynomial<U, V>(usingCoefficients coefficients: [Float], withVariables variables: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Evaluates a polynomial using specified coefficients and independent variables. Single-precision. - Parameter coefficients: Coefficients. - Parameter variables: Independent variables. - Parameter result: Destination vector. For example, given the coefficients `[10, 20, 30]`, and independent variables `[2, 5]`, the result is calculated as: `result[0] = (10 * 2²) + (20 * 2¹) + (30 * 2⁰) // 110` `result[1] = (10 * 5²) + (20 * 5¹) + (30 * 5⁰) // 380`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

evaluatePolynomial

TypeScript
static evaluatePolynomialUsingCoefficientsWithVariables(coefficients: Array<number>, variables: Array<number>): Array<number>
Swift declaration
static func evaluatePolynomial<U>(usingCoefficients coefficients: [Double], withVariables variables: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Evaluates a polynomial using specified coefficients and independent variables. Double-precision. - Parameter coefficients: Coefficients. - Parameter variables: Independent variables. - Returns: The polynomial evaluation result. For example, given the coefficients `[10, 20, 30]`, and independent variables `[2, 5]`, the result is calculated as: `result[0] = (10 * 2²) + (20 * 2¹) + (30 * 2⁰) // 110` `result[1] = (10 * 5²) + (20 * 5¹) + (30 * 5⁰) // 380`

static · iOS 13.0+

evaluatePolynomial

TypeScript
static evaluatePolynomialUsingCoefficientsWithVariables95256(coefficients: Array<number>, variables: Array<number>): Array<number>
Swift declaration
static func evaluatePolynomial<U>(usingCoefficients coefficients: [Float], withVariables variables: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Evaluates a polynomial using specified coefficients and independent variables. Single-precision. - Parameter coefficients: Coefficients. - Parameter variables: Independent variables. - Returns: The polynomial evaluation result. For example, given the coefficients `[10, 20, 30]`, and independent variables `[2, 5]`, the result is calculated as: `result[0] = (10 * 2²) + (20 * 2¹) + (30 * 2⁰) // 110` `result[1] = (10 * 5²) + (20 * 5¹) + (30 * 5⁰) // 380`

static · iOS 13.0+

polarToRectangular

TypeScript
static polarToRectangular(polarCoordinates: Array<number>): Array<number>
Swift declaration
static func polarToRectangular<U>(_ polarCoordinates: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Polar to rectangular conversion, double-precision. - Parameter polarCoordinates: Source vector, represented as consecutive rho, (radius) theta (angle in radians) pairs. - Returns: Rectangular coordinates, represented as consecutive x, y pairs.

static · iOS 13.0+

polarToRectangular

TypeScript
static polarToRectangular27101(polarCoordinates: Array<number>): Array<number>
Swift declaration
static func polarToRectangular<U>(_ polarCoordinates: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Polar to rectangular conversion, single-precision. - Parameter polarCoordinates: Source vector, represented as consecutive rho, (radius) theta (angle in radians) pairs. - Returns: Rectangular coordinates, represented as consecutive x, y pairs.

static · iOS 13.0+

rectangularToPolar

TypeScript
static rectangularToPolar(rectangularCoordinates: Array<number>): Array<number>
Swift declaration
static func rectangularToPolar<U>(_ rectangularCoordinates: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Rectangular to polar conversion, double-precision. - Parameter rectangularCoordinates: Source vector, represented as consecutive x, y pairs. - Returns: Polar coordinates, represented as consecutive rho, (radius) theta (angle in radians) pairs.

static · iOS 13.0+

rectangularToPolar

TypeScript
static rectangularToPolar96989(rectangularCoordinates: Array<number>): Array<number>
Swift declaration
static func rectangularToPolar<U>(_ rectangularCoordinates: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Rectangular to polar conversion, single-precision. - Parameter rectangularCoordinates: Source vector, represented as consecutive x, y pairs. - Returns: Polar coordinates, represented as consecutive rho, (radius) theta (angle in radians) pairs.

static · iOS 13.0+

sumAndSumOfSquares

TypeScript
static sumAndSumOfSquares(vector: Array<number>): { "elementsSum": number; "squaresSum": number }
Swift declaration
static func sumAndSumOfSquares<U>(_ vector: U) -> (elementsSum: Double, squaresSum: Double) where U : AccelerateBuffer, U.Element == Double

Returns sum of elements and sum of elements' squares; double-precision. - Parameter vector: The input vector. - Returns: The sum of values and the sum of squares in `vector`.

static · iOS 13.0+

sumAndSumOfSquares

TypeScript
static sumAndSumOfSquares50540(vector: Array<number>): { "elementsSum": number; "squaresSum": number }
Swift declaration
static func sumAndSumOfSquares<U>(_ vector: U) -> (elementsSum: Float, squaresSum: Float) where U : AccelerateBuffer, U.Element == Float

Returns sum of elements and sum of elements' squares; single-precision. - Parameter vector: The input vector. - Returns: The sum of values and the sum of squares in `vector`.

static · iOS 13.0+

amplitudeToDecibels

TypeScript
static amplitudeToDecibelsZeroReference(amplitude: Array<number>, zeroReference: number): Array<number>
Swift declaration
static func amplitudeToDecibels<U>(_ amplitude: U, zeroReference: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Converts amplitude to decibels, double-precision. - Parameter amplitude: Source vector. - Parameter zeroReference: Zero reference. - Returns: `amplitude` converted to decibels.

static · iOS 13.0+

amplitudeToDecibels

TypeScript
static amplitudeToDecibelsZeroReference13845(amplitude: Array<number>, zeroReference: number): Array<number>
Swift declaration
static func amplitudeToDecibels<U>(_ amplitude: U, zeroReference: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Converts amplitude to decibels, single-precision. - Parameter amplitude: Source vector. - Parameter zeroReference: Zero reference. - Returns: `amplitude` converted to decibels.

static · iOS 13.0+

twoPoleTwoZeroFilter

TypeScript
static twoPoleTwoZeroFilterCoefficientsResult(source: Array<number>, coefficients: [number, number, number, number, number], result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func twoPoleTwoZeroFilter<U, V>(_ source: U, coefficients: (Double, Double, Double, Double, Double), result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Performs two-pole two-zero recursive filtering; double-precision. - Parameter source: single-precision input vector. - Parameter coefficients: Filter coefficients. - Parameter result: single-precision output vector. This function performs the following calculation: for (n = 2; n < N+2; ++n) C[n] = + A[n-0]*B[0] + A[n-1]*B[1] + A[n-2]*B[2] - C[n-1]*B[3] - C[n-2]*B[4]; Where `A` is the input vector, `B` is the filter coefficients, and `C` is the output vector. Note that outputs start with C[2].

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

twoPoleTwoZeroFilter

TypeScript
static twoPoleTwoZeroFilterCoefficientsResult9469(source: Array<number>, coefficients: [number, number, number, number, number], result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func twoPoleTwoZeroFilter<U, V>(_ source: U, coefficients: (Float, Float, Float, Float, Float), result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Performs two-pole two-zero recursive filtering; single-precision. - Parameter source: Single-precision input vector. - Parameter coefficients: Filter coefficients. - Parameter result: Single-precision output vector. This function performs the following calculation: for (n = 2; n < N+2; ++n) C[n] = + A[n-0]*B[0] + A[n-1]*B[1] + A[n-2]*B[2] - C[n-1]*B[3] - C[n-2]*B[4]; Where `A` is the input vector, `B` is the filter coefficients, and `C` is the output vector. Note that outputs start with C[2].

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

twoPoleTwoZeroFilter

TypeScript
static twoPoleTwoZeroFilterCoefficients(source: Array<number>, coefficients: [number, number, number, number, number]): Array<number>
Swift declaration
static func twoPoleTwoZeroFilter<U>(_ source: U, coefficients: (Double, Double, Double, Double, Double)) -> [Double] where U : AccelerateBuffer, U.Element == Double

Performs two-pole two-zero recursive filtering; double-precision. - Parameter source: Double-precision input vector. - Parameter coefficients: Filter coefficients. - Returns: Double-precision output vector. This function performs the following calculation: for (n = 2; n < N+2; ++n) C[n] = + A[n-0]*B[0] + A[n-1]*B[1] + A[n-2]*B[2] - C[n-1]*B[3] - C[n-2]*B[4]; Where `A` is the input vector, `B` is the filter coefficients, and `C` is the output vector. Note that outputs start with C[2].

static · iOS 13.0+

twoPoleTwoZeroFilter

TypeScript
static twoPoleTwoZeroFilterCoefficients56562(source: Array<number>, coefficients: [number, number, number, number, number]): Array<number>
Swift declaration
static func twoPoleTwoZeroFilter<U>(_ source: U, coefficients: (Float, Float, Float, Float, Float)) -> [Float] where U : AccelerateBuffer, U.Element == Float

Performs two-pole two-zero recursive filtering; single-precision. - Parameter source: Single-precision input vector. - Parameter coefficients: Filter coefficients. - Returns: Single-precision output vector. This function performs the following calculation: for (n = 2; n < N+2; ++n) C[n] = + A[n-0]*B[0] + A[n-1]*B[1] + A[n-2]*B[2] - C[n-1]*B[3] - C[n-2]*B[4]; Where `A` is the input vector, `B` is the filter coefficients, and `C` is the output vector. Note that outputs start with C[2].

static · iOS 13.0+

indexOfMaximumMagnitude

TypeScript
static indexOfMaximumMagnitude(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMaximumMagnitude<U>(_ vector: U) -> (UInt, Double) where U : AccelerateBuffer, U.Element == Double

Returns vector maximum magnitude with index; double-precision. - Parameter vector: The input vector. - Returns: A tuple containing the maximum magnitude and its index.

static · iOS 13.0+

indexOfMaximumMagnitude

TypeScript
static indexOfMaximumMagnitude63040(vector: Array<number>): [number, number]
Swift declaration
static func indexOfMaximumMagnitude<U>(_ vector: U) -> (UInt, Float) where U : AccelerateBuffer, U.Element == Float

Returns vector maximum magnitude with index; single-precision. - Parameter vector: The input vector. - Returns: A tuple containing the maximum magnitude and its index.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplicationResult(multiplicationAB: { "a": Array<number>; "b": number }, multiplicationCD: { "c": Array<number>; "d": number }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication multiplicationAB: (a: T, b: Double), multiplication multiplicationCD: (c: U, d: Double), result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of two elementwise vector-scalar products, double-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter result: the `e` in `e[i] = (a[i] * b) + (c[i] * d)`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplicationResult72902(multiplicationAB: { "a": Array<number>; "b": number }, multiplicationCD: { "c": Array<number>; "d": number }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication multiplicationAB: (a: T, b: Float), multiplication multiplicationCD: (c: U, d: Float), result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of two elementwise vector-scalar products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter result: the `e` in `e[i] = (a[i] * b) + (c[i] * d)`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplicationResult41801(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<R, S, T, U, V>(multiplication multiplicationAB: (a: R, b: S), multiplication multiplicationCD: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of two elementwise vector-vector products, double-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter result: the `e` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplicationResult25291(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<R, S, T, U, V>(multiplication multiplicationAB: (a: R, b: S), multiplication multiplicationCD: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of two elementwise vector-vector products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter result: the `e` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplication(multiplicationAB: { "a": Array<number>; "b": number }, multiplicationCD: { "c": Array<number>; "d": number }): Array<number>
Swift declaration
static func add<T, U>(multiplication multiplicationAB: (a: T, b: Double), multiplication multiplicationCD: (c: U, d: Double)) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise sum of two elementwise vector-scalar products, double-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b) + (c[i] * d)`. - Returns: the `e` in `e[i] = (a[i] * b) + (c[i] * d)`.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplication87597(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func add<R, S, T, U>(multiplication multiplicationAB: (a: R, b: S), multiplication multiplicationCD: (c: T, d: U)) -> [Double] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise sum of two elementwise vector-vector products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Returns: the `e` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplication52620(multiplicationAB: { "a": Array<number>; "b": number }, multiplicationCD: { "c": Array<number>; "d": number }): Array<number>
Swift declaration
static func add<T, U>(multiplication multiplicationAB: (a: T, b: Float), multiplication multiplicationCD: (c: U, d: Float)) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise sum of two elementwise vector-scalar products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b) + (c[i] * d)`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b) + (c[i] * d)`. - Returns: the `e` in `e[i] = (a[i] * b) + (c[i] * d)`.

static · iOS 13.0+

add

TypeScript
static addMultiplicationMultiplication67119(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func add<R, S, T, U>(multiplication multiplicationAB: (a: R, b: S), multiplication multiplicationCD: (c: T, d: U)) -> [Float] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise sum of two elementwise vector-vector products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`. - Returns: the `e` in `e[i] = (a[i] * b[i]) + (c[i] * d[i])`.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult(multiplication: { "a": Array<number>; "b": number }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<U, V>(multiplication: (a: U, b: Double), _ scalar: Double, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of an elementwise vector-scalar product and aa scalar value, double-precision. - Parameter multiplication: the `a` and `b` in `d[n] = a[n]*b + c`. - Parameter scalar: the `c`in `d[n] = a[n]*b + c`. - Parameter result: the `e` in `d[n] = a[n]*b + c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult27886(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication: (a: T, b: Double), _ vector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of `vector` and the product of the vector and scalar in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b) + c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b) + c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult33852(multiplication: { "a": Array<number>; "b": number }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<U, V>(multiplication: (a: U, b: Float), _ scalar: Float, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of an elementwise vector-scalar product and aa scalar value, single-precision. - Parameter multiplication: the `a` and `b` in `d[n] = a[n]*b + c`. - Parameter scalar: the `c` in `d[n] = a[n]*b + c`. - Parameter result: the `e` in `d[n] = a[n]*b + c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult2786(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication: (a: T, b: Float), _ vector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of `vector` and the product of the vector and scalar in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b) + c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b) + c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult38574(multiplication: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication: (a: T, b: U), _ scalar: Double, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of `scalar` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = a[i]*b[i] + c`. - Parameter scalar: the `c` in `d[i] = a[i]*b[i] + c`. - Parameter result: the `d` in `d[i] = a[i]*b[i] + c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult74290(multiplication: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(multiplication: (a: T, b: U), _ scalar: Float, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of `scalar` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = a[i]*b[i] + c`. - Parameter scalar: the `c` in `d[i] = a[i]*b[i] + c`. - Parameter result: the `d` in `d[i] = a[i]*b[i] + c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult61463(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<S, T, U, V>(multiplication: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of `vector` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b[i]) + c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplicationResult53907(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<S, T, U, V>(multiplication: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of `vector` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b[i]) + c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addMultiplication(multiplication: { "a": Array<number>; "b": number }, scalar: number): Array<number>
Swift declaration
static func add<U>(multiplication: (a: U, b: Double), _ scalar: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elementwise sum of an elementwise vector-scalar product and aa scalar value, double-precision. - Parameter multiplication: the `a` and `b` in `d[n] = a[n]*b + c`. - Parameter scalar: the `c` in `d[n] = a[n]*b + c`. - Returns: the `e` in `d[n] = a[n]*b + c`.

static · iOS 13.0+

add

TypeScript
static addMultiplication40910(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>): Array<number>
Swift declaration
static func add<T, U>(multiplication: (a: T, b: Double), _ vector: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise sum of `vector` and the product of the vector and scalar in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b) + c[i]`. - Returns: the `d` in `d[i] = (a[i] * b) + c[i]`.

static · iOS 13.0+

add

TypeScript
static addMultiplication16574(multiplication: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func add<T, U>(multiplication: (a: T, b: U), _ scalar: Double) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise sum of `scalar` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = a[i]*b[i] + c`. - Parameter scalar: the `c` in `d[i] = a[i]*b[i] + c`. - Returns: the `d` in `d[i] = a[i]*b[i] + c`.

static · iOS 13.0+

add

TypeScript
static addMultiplication44397(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func add<S, T, U>(multiplication: (a: S, b: T), _ vector: U) -> [Double] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise sum of `vector` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) + c[i]`. - Returns: the `d` in `d[i] = (a[i] * b[i]) + c[i]`.

static · iOS 13.0+

add

TypeScript
static addMultiplication40257(multiplication: { "a": Array<number>; "b": number }, scalar: number): Array<number>
Swift declaration
static func add<U>(multiplication: (a: U, b: Float), _ scalar: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elementwise sum of an elementwise vector-scalar product and aa scalar value, single-precision. - Parameter multiplication: the `a` and `b` in `d[n] = a[n]*b + c`. - Parameter scalar: the `c` in `d[n] = a[n]*b + c`. - Returns: the `e` in `d[n] = a[n]*b + c`.

static · iOS 13.0+

add

TypeScript
static addMultiplication3618(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>): Array<number>
Swift declaration
static func add<T, U>(multiplication: (a: T, b: Float), _ vector: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise sum of `vector` and the product of the vector and scalar in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b) + c[i]`. - Returns: the `d` in `d[i] = (a[i] * b) + c[i]`.

static · iOS 13.0+

add

TypeScript
static addMultiplication95746(multiplication: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func add<T, U>(multiplication: (a: T, b: U), _ scalar: Float) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise sum of `scalar` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = a[i]*b[i] + c`. - Parameter scalar: the `c` in `d[i] = a[i]*b[i] + c`. - Returns: the `d` in `d[i] = a[i]*b[i] + c`.

static · iOS 13.0+

add

TypeScript
static addMultiplication8613(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func add<S, T, U>(multiplication: (a: S, b: T), _ vector: U) -> [Float] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise sum of `vector` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) + c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) + c[i]`. - Returns: the `d` in `d[i] = (a[i] * b[i]) + c[i]`.

static · iOS 13.0+

add

TypeScript
static addToCountResult(splitComplexA: DSPSplitComplex, splitComplexB: DSPSplitComplex, count: number, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func add(_ splitComplexA: DSPSplitComplex, to splitComplexB: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)

Populates `result` with the elementwise sum of `splitComplexA` and `splitComplexB`, single-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] + b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] + b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] + b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addToCountResult98580(splitComplexA: DSPDoubleSplitComplex, splitComplexB: DSPDoubleSplitComplex, count: number, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func add(_ splitComplexA: DSPDoubleSplitComplex, to splitComplexB: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)

Populates `result` with the elementwise sum of `splitComplexA` and `splitComplexB`, double-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] + b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] + b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] + b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addResult(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<U, V>(_ scalar: Double, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of `vector` and `scalar`, double-precision. - Parameter scalar: the `b` in `c[i] = a[i] + b`. - Parameter vector: the `a` in `c[i] = a[i] + b`. - Parameter result: The `c` in `c[i] = a[i] + b`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addResult23071(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<U, V>(_ scalar: Float, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of `vector` and `scalar`, single-precision. - Parameter scalar: the `b` in `c[i] = a[i] + b`. - Parameter vector: the `a` in `c[i] = a[i] + b`. - Parameter result: The `c` in `c[i] = a[i] + b`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addResult65151(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise sum of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] + b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] + b[i]`. - Parameter result: The `c` in `c[i] = a[i] + b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static addResult98761(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func add<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise sum of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] + b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] + b[i]`. - Parameter result: The `c` in `c[i] = a[i] + b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

add

TypeScript
static add(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func add<U>(_ scalar: Double, _ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elementwise sum of `vector` and `scalar`, double-precision. - Parameter scalar: the `b` in `c[i] = a[i] + b`. - Parameter vector: the `a` in `c[i] = a[i] + b`. - Returns: The `c` in `c[i] = a[i] + b`.

static · iOS 13.0+

add

TypeScript
static add7514(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func add<T, U>(_ vectorA: T, _ vectorB: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise sum of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] + b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] + b[i]`. - Returns: The `c` in `c[i] = a[i] + b[i]`.

static · iOS 13.0+

add

TypeScript
static add44205(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func add<U>(_ scalar: Float, _ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elementwise sum of `vector` and `scalar`, single-precision. - Parameter scalar: the `b` in `c[i] = a[i] + b`. - Parameter vector: the `a` in `c[i] = a[i] + b`. - Returns: The `c` in `c[i] = a[i] + b`.

static · iOS 13.0+

add

TypeScript
static add86428(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func add<T, U>(_ vectorA: T, _ vectorB: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise sum of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] + b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] + b[i]`. - Returns: The `c` in `c[i] = a[i] + b[i]`.

static · iOS 13.0+

dot

TypeScript
static dot(vectorA: Array<number>, vectorB: Array<number>): number
Swift declaration
static func dot<T, U>(_ vectorA: T, _ vectorB: U) -> Double where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the dot or scalar product of vectors A and B; double-precision. - Parameter vectorA: Double-precision real input vector A. - Parameter vectorB: Double-precision real input vector B. - Returns: The dot product of vectors A and B.

static · iOS 13.0+

dot

TypeScript
static dot83314(vectorA: Array<number>, vectorB: Array<number>): number
Swift declaration
static func dot<T, U>(_ vectorA: T, _ vectorB: U) -> Float where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the dot or scalar product of vectors A and B; single-precision. - Parameter vectorA: Single-precision real input vector A. - Parameter vectorB: Single-precision real input vector B. - Returns: The dot product of vectors A and B.

static · iOS 13.0+

sum

TypeScript
static sum(vector: Array<number>): number
Swift declaration
static func sum<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector sum; double-precision. - Parameter vector: The input vector. - Returns: The sum of values in `vector`.

static · iOS 13.0+

sum

TypeScript
static sum3769(vector: Array<number>): number
Swift declaration
static func sum<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector sum; single-precision. - Parameter vector: The input vector. - Returns: The sum of values in `vector`.

static · iOS 13.0+

clip

TypeScript
static clipToResult(vector: Array<number>, bounds: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func clip<U, V>(_ vector: U, to bounds: ClosedRange<Double>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elements of `vector` clipped to the specified range. Double-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Parameter result: The clipped result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

clip

TypeScript
static clipToResult60697(vector: Array<number>, bounds: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func clip<U, V>(_ vector: U, to bounds: ClosedRange<Float>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elements of `vector` clipped to the specified range. Single-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Parameter result: The clipped result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

clip

TypeScript
static clipTo(vector: Array<number>, bounds: SDKHandle): Array<number>
Swift declaration
static func clip<U>(_ vector: U, to bounds: ClosedRange<Double>) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elements of `vector` clipped to the specified range. Double-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result.

static · iOS 13.0+

clip

TypeScript
static clipTo27165(vector: Array<number>, bounds: SDKHandle): Array<number>
Swift declaration
static func clip<U>(_ vector: U, to bounds: ClosedRange<Float>) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elements of `vector` clipped to the specified range. Single-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result.

static · iOS 13.0+

copy

TypeScript
static copyToCount(source: DSPSplitComplex, destination: DSPSplitComplex, count: number): { $ret: null; $out: { "destination": DSPSplitComplex } }
Swift declaration
static func copy(_ source: DSPSplitComplex, to destination: inout DSPSplitComplex, count: Int)

Copies a complex vector; single-precision. - Parameter source: Single-precision complex input vector. - Parameter destination: Single-precision real output vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

copy

TypeScript
static copyToCount78743(source: DSPDoubleSplitComplex, destination: DSPDoubleSplitComplex, count: number): { $ret: null; $out: { "destination": DSPDoubleSplitComplex } }
Swift declaration
static func copy(_ source: DSPDoubleSplitComplex, to destination: inout DSPDoubleSplitComplex, count: Int)

Copies a complex vector; double-precision. - Parameter source: Double-precision complex input vector. - Parameter destination: Double-precision real output vector.

Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.

static · iOS 13.0+

fill

TypeScript
static fillWith(vector: Array<number>, value: number): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func fill<V>(_ vector: inout V, with value: Double) where V : AccelerateMutableBuffer, V.Element == Double

Fill vector with specified scalar value, double-precision. - Parameter vector: The vector to fill. - Parameter value: The fill value.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

fill

TypeScript
static fillWith76394(vector: Array<number>, value: number): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func fill<V>(_ vector: inout V, with value: Float) where V : AccelerateMutableBuffer, V.Element == Float

Fill vector with specified scalar value, single-precision. - Parameter vector: The vector to fill. - Parameter value: The fill value.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

mean

TypeScript
static mean(vector: Array<number>): number
Swift declaration
static func mean<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns the mean of the supplied double-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

mean

TypeScript
static mean89346(vector: Array<number>): number
Swift declaration
static func mean<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns the mean magnitude of the supplied single-precision vector. - Parameter vector: The input vector.

static · iOS 13.0+

ramp

TypeScript
static rampWithInitialValueMultiplyingByIncrement(initialValue: number, vector: Array<number>, increment: number): { $ret: Array<number>; $out: { "initialValue": number } }
Swift declaration
static func ramp<U>(withInitialValue initialValue: inout Double, multiplyingBy vector: U, increment: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing monotonically incrementing or decrementing values, multiplying by a source vector, double-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplyingBy: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue inside $out.

static · iOS 13.0+

ramp

TypeScript
static rampWithInitialValueMultiplyingByIncrement87080(initialValue: number, vector: Array<number>, increment: number): { $ret: Array<number>; $out: { "initialValue": number } }
Swift declaration
static func ramp<U>(withInitialValue initialValue: inout Float, multiplyingBy vector: U, increment: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing monotonically incrementing or decrementing values, multiplying by a source vector, single-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplyingBy: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue inside $out.

static · iOS 13.0+

ramp

TypeScript
static rampWithInitialValueIncrementCount(initialValue: number, increment: number, count: number): Array<number>
Swift declaration
static func ramp(withInitialValue initialValue: Double, increment: Double, count: Int) -> [Double]

Returns an array containing monotonically incrementing or decrementing values, double-precision. - Parameter initialValue: Specifies the initial value. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 13.0+

ramp

TypeScript
static rampWithInitialValueIncrementCount14868(initialValue: number, increment: number, count: number): Array<number>
Swift declaration
static func ramp(withInitialValue initialValue: Float, increment: Float, count: Int) -> [Float]

Returns an array containing monotonically incrementing or decrementing values, single-precision. - Parameter initialValue: Specifies the initial value. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 13.0+

ramp

TypeScript
static rampInCount(range: SDKHandle, count: number): Array<number>
Swift declaration
static func ramp(in range: ClosedRange<Double>, count: Int) -> [Double]

Returns an array containing monotonically incrementing values within a specified range, double-precision. - Parameter range: Specifies range of the ramp.. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 13.0+

ramp

TypeScript
static rampInCount76083(range: SDKHandle, count: number): Array<number>
Swift declaration
static func ramp(in range: ClosedRange<Float>, count: Int) -> [Float]

Returns an array containing monotonically incrementing values within a specified range, single-precision. - Parameter range: Specifies range of the ramp.. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 18.0+

ramp

TypeScript
static rampFromThroughCount(start: number, end: number, count: number): Array<number>
Swift declaration
static func ramp(from start: Double, through end: Double, count: Int) -> [Double]

Returns an array containing monotonically incrementing or decrementing values within a specified range, double-precision. - Parameter start: The start value to use for the ramp. - Parameter end: The end value to use for the ramp. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 18.0+

ramp

TypeScript
static rampFromThroughCount97256(start: number, end: number, count: number): Array<number>
Swift declaration
static func ramp(from start: Float, through end: Float, count: Int) -> [Float]

Returns an array containing monotonically incrementing or decrementing values within a specified range, single-precision. - Parameter start: The start value to use for the ramp. - Parameter end: The end value to use for the ramp. - Parameter count: The number of elements in the array. - Returns: An array containing the specified ramp.

static · iOS 13.0+

sort

TypeScript
static sortSortOrder(vector: Array<number>, sortOrder: vDSP_SortOrder): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func sort<V>(_ vector: inout V, sortOrder: vDSP.SortOrder) where V : AccelerateMutableBuffer, V.Element == Double

Sorts an array of double-precision values in-place. - Parameter vector: The array to sort. - Parameter sortOrder: The sort direction.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

sort

TypeScript
static sortSortOrder72783(vector: Array<number>, sortOrder: vDSP_SortOrder): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func sort<V>(_ vector: inout V, sortOrder: vDSP.SortOrder) where V : AccelerateMutableBuffer, V.Element == Float

Sorts an array of single-precision values in-place. - Parameter vector: The array to sort. - Parameter sortOrder: The sort direction.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

clear

TypeScript
static clear(vector: Array<number>): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func clear<V>(_ vector: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Fill vector with zeros, double-precision. - Parameter vector: The vector to fill.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

clear

TypeScript
static clear98799(vector: Array<number>): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func clear<V>(_ vector: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Fill vector with zeros, single-precision. - Parameter vector: The vector to fill.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

hypot

TypeScript
static hypotX0X1Y0Y1Result(x0: Array<number>, x1: Array<number>, y0: Array<number>, y1: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func hypot<R, S, T, U, V>(x0: R, x1: S, y0: T, y1: U, result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Calculates the hypotenuse of right-angled triangles with sides that are the differences of corresponding values in x0 and x1, and y0 and y1. Double-precision. - Parameter x0: The `x0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter x1: The `x1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y0: The `y0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y1: The `y1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter result: The `z` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

hypot

TypeScript
static hypotX0X1Y0Y1Result71741(x0: Array<number>, x1: Array<number>, y0: Array<number>, y1: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func hypot<R, S, T, U, V>(x0: R, x1: S, y0: T, y1: U, result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Calculates the hypotenuse of right-angled triangles with sides that are the differences of corresponding values in x0 and x1, and y0 and y1. Single-precision. - Parameter x0: The `x0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter x1: The `x1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y0: The `y0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y1: The `y1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter result: The `z` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

hypot

TypeScript
static hypotX0X1Y0Y1(x0: Array<number>, x1: Array<number>, y0: Array<number>, y1: Array<number>): Array<number>
Swift declaration
static func hypot<R, S, T, U>(x0: R, x1: S, y0: T, y1: U) -> [Double] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double

Returns the hypotenuse of right-angled triangles with sides that are the differences of corresponding values in x0 and x1, and y0 and y1. Double-precision. - Parameter x0: The `x0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter x1: The `x1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y0: The `y0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y1: The `y1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter result: The `z` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`.

static · iOS 13.0+

hypot

TypeScript
static hypotX0X1Y0Y135767(x0: Array<number>, x1: Array<number>, y0: Array<number>, y1: Array<number>): Array<number>
Swift declaration
static func hypot<R, S, T, U>(x0: R, x1: S, y0: T, y1: U) -> [Float] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float

Returns the hypotenuse of right-angled triangles with sides that are the differences of corresponding values in x0 and x1, and y0 and y1. Single-precision. - Parameter x0: The `x0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter x1: The `x1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y0: The `y0` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter y1: The `y1` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`. - Parameter result: The `z` in `z[i] = sqrt( (x0[i] - x1[i])² + (y0[i] - y1[i])² )`.

static · iOS 13.0+

hypot

TypeScript
static hypotResult(x: Array<number>, y: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func hypot<T, U, V>(_ x: T, _ y: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Calculates the hypotenuse of right-angled triangles with sides that are the lengths of corresponding elements in vectors `x` and `y`; double-precision. - Parameter x: The `x` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter y: The `y` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter result: The `z` in `z[i] = sqrt(x[i]² + y[i]²)`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

hypot

TypeScript
static hypotResult71622(x: Array<number>, y: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func hypot<T, U, V>(_ x: T, _ y: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Calculates the hypotenuse of right-angled triangles with sides that are the lengths of corresponding elements in vectors `x` and `y`; single-precision. - Parameter x: The `x` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter y: The `y` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter result: The `z` in `z[i] = sqrt(x[i]² + y[i]²)`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

hypot

TypeScript
static hypot(x: Array<number>, y: Array<number>): Array<number>
Swift declaration
static func hypot<U, V>(_ x: U, _ y: V) -> [Double] where U : AccelerateBuffer, V : AccelerateBuffer, U.Element == Double, V.Element == Double

Returns the hypotenuse of right-angled triangles with sides that are the lengths of corresponding elements in vectors `x` and `y`; double-precision. - Parameter x: The `x` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter y: The `y` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter result: The `z` in `z[i] = sqrt(x[i]² + y[i]²)`.

static · iOS 13.0+

hypot

TypeScript
static hypot18591(x: Array<number>, y: Array<number>): Array<number>
Swift declaration
static func hypot<U, V>(_ x: U, _ y: V) -> [Float] where U : AccelerateBuffer, V : AccelerateBuffer, U.Element == Float, V.Element == Float

Returns the hypotenuse of right-angled triangles with sides that are the lengths of corresponding elements in vectors `x` and `y`; single-precision. - Parameter x: The `x` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter y: The `y` in `z[i] = sqrt(x[i]² + y[i]²)`. - Parameter result: The `z` in `z[i] = sqrt(x[i]² + y[i]²)`.

static · iOS 13.0+

limit

TypeScript
static limitLimitWithOutputConstantResult(vector: Array<number>, limit: number, outputConstant: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func limit<U, V>(_ vector: U, limit: Double, withOutputConstant outputConstant: Double, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Vector test limit; double-precision. Compares values from source vector to `limit`. For inputs greater than or equal to `limit`, `outputConstant` is written to `result`. For inputs less than `limit`, the negated value of `outputConstant` is written to `result`. - Parameter vector: Source vector. - Parameter limit: Limit. - Parameter x: Value written to result. - Parameter result: The clipped result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

limit

TypeScript
static limitLimitWithOutputConstantResult40143(vector: Array<number>, limit: number, outputConstant: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func limit<U, V>(_ vector: U, limit: Float, withOutputConstant outputConstant: Float, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Vector test limit; single-precision. Compares values from source vector to `limit`. For inputs greater than or equal to `limit`, `outputConstant` is written to `result`. For inputs less than `limit`, the negated value of `outputConstant` is written to `result`. - Parameter vector: Source vector. - Parameter limit: Limit. - Parameter x: Value written to result. - Parameter result: The clipped result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

limit

TypeScript
static limitLimitWithOutputConstant(vector: Array<number>, limit: number, outputConstant: number): Array<number>
Swift declaration
static func limit<U>(_ vector: U, limit: Double, withOutputConstant outputConstant: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Vector test limit; double-precision. Compares values from source vector to `limit`. For inputs greater than or equal to `limit`, `outputConstant` is written to `result`. For inputs less than `limit`, the negated value of `outputConstant` is written to `result`. - Parameter vector: Source vector. - Parameter limit: Limit. - Parameter x: Value written to result. - Returns: The clipped result.

static · iOS 13.0+

limit

TypeScript
static limitLimitWithOutputConstant97646(vector: Array<number>, limit: number, outputConstant: number): Array<number>
Swift declaration
static func limit<U>(_ vector: U, limit: Float, withOutputConstant outputConstant: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Vector test limit; single-precision. Compares values from source vector to `limit`. For inputs greater than or equal to `limit`, `outputConstant` is written to `result`. For inputs less than `limit`, the negated value of `outputConstant` is written to `result`. - Parameter vector: Source vector. - Parameter limit: Limit. - Parameter x: Value written to result. - Returns: The clipped result.

static · iOS 13.0+

phase

TypeScript
static phaseResult(splitComplex: DSPSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func phase<V>(_ splitComplex: DSPSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Populates `result` with the elementwise phase values, in radians, of the supplied complex vector; single-precision. - Parameter splitComplex: Single-precision complex input vector. - Parameter result: Single-precision real output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

phase

TypeScript
static phaseResult34224(splitComplex: DSPDoubleSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func phase<V>(_ splitComplex: DSPDoubleSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Populates `result` with the elementwise phase values, in radians, of the supplied complex vector; double-precision. - Parameter splitComplex: Double-precision complex input vector. - Parameter result: Double-precision real output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

trunc

TypeScript
static truncResult(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Truncates to fraction each element in `vector`, writing the result to `result`; double-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

trunc

TypeScript
static truncResult88424(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Truncates to fraction each element in `vector`, writing the result to `result`; single-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

trunc

TypeScript
static trunc(vector: Array<number>): Array<number>
Swift declaration
static func trunc<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing each element in `vector` truncated to fraction, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

trunc

TypeScript
static trunc41310(vector: Array<number>): Array<number>
Swift declaration
static func trunc<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing each element in `vector` truncated to fraction, single-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

divide

TypeScript
static divideByCountResult(splitComplexA: DSPSplitComplex, splitComplexB: DSPSplitComplex, count: number, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func divide(_ splitComplexA: DSPSplitComplex, by splitComplexB: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)

Populates `result` with the elementwise division of `splitComplexA` and `splitComplexB`, single-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] / b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] / b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideByCountResult57157(splitComplexA: DSPDoubleSplitComplex, splitComplexB: DSPDoubleSplitComplex, count: number, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func divide(_ splitComplexA: DSPDoubleSplitComplex, by splitComplexB: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)

Populates `result` with the elementwise division of `splitComplexA` and `splitComplexB`, single-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] / b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] / b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideByResult(splitComplex: DSPSplitComplex, vector: Array<number>, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func divide<U>(_ splitComplex: DSPSplitComplex, by vector: U, result: inout DSPSplitComplex) where U : AccelerateBuffer, U.Element == Float

Populates `result` with the elementwise division of `splitComplex` and `vector`, single-precision. - Parameter splitComplex: the `a` in `c[i] = a[i] / b[i]`. - Parameter vector: the `b` in `c[i] = a[i] / b[i]`. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideByResult49939(splitComplex: DSPDoubleSplitComplex, vector: Array<number>, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func divide<U>(_ splitComplex: DSPDoubleSplitComplex, by vector: U, result: inout DSPDoubleSplitComplex) where U : AccelerateBuffer, U.Element == Double

Populates `result` with the elementwise division of `splitComplex` and `vector`, double-precision. - Parameter splitComplex: the `a` in `c[i] = a[i] / b[i]`. - Parameter vector: the `b` in `c[i] = a[i] / b[i]`. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<U, V>(_ scalar: Double, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elementwise division of `scalar` by `vector`, double-precision. - Parameter scalar: the `a` in `c[i] = a / b[i]`. - Parameter vector: the `b` in `c[i] = a / b[i]`. - Parameter result: The `c` in `c[i] = a / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult11278(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<U, V>(_ scalar: Float, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elementwise division of `scalar` by `vector`, single-precision. - Parameter scalar: the `a` in `c[i] = a / b[i]`. - Parameter vector: the `b` in `c[i] = a / b[i]`. - Parameter result: The `c` in `c[i] = a / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult73482(vector: Array<number>, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<U, V>(_ vector: U, _ scalar: Double, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elementwise division of `vector` by `scalar`, double-precision. - Parameter vector: the `a` in `c[i] = a[i] / b`. - Parameter scalar: the `b` in `c[i] = a[i] / b`. - Parameter result: The `c` in `c[i] = a[i] / b`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult93688(vector: Array<number>, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<U, V>(_ vector: U, _ scalar: Float, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elementwise division of `vector` by `scalar`, single-precision. - Parameter vector: the `a` in `c[i] = a[i] / b`. - Parameter scalar: the `b` in `c[i] = a[i] / b`. - Parameter result: The `c` in `c[i] = a[i] / b`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult22400(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise division of `vectorA` by `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] / b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] / b[i]`. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divideResult46598(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func divide<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise division of `vectorA` by `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] / b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] / b[i]`. - Parameter result: The `c` in `c[i] = a[i] / b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

divide

TypeScript
static divide(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func divide<U>(_ scalar: Double, _ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elementwise division of `scalar` by `vector`, double-precision. - Parameter scalar: the `a` in `c[i] = a / b[i]`. - Parameter vector: the `b` in `c[i] = a / b[i]`. - Returns: The `c` in `c[i] = a / b[i]`.

static · iOS 13.0+

divide

TypeScript
static divide67616(vector: Array<number>, scalar: number): Array<number>
Swift declaration
static func divide<U>(_ vector: U, _ scalar: Double) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elementwise division of `vector` by `scalar`, double-precision. - Parameter vector: the `a` in `c[i] = a[i] / b`. - Parameter scalar: the `b` in `c[i] = a[i] / b`. - Returns: The `c` in `c[i] = a[i] / b`

static · iOS 13.0+

divide

TypeScript
static divide46089(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func divide<T, U>(_ vectorA: T, _ vectorB: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise division of `vectorA` by `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] / b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] / b[i]`. - Returns: The `c` in `c[i] = a[i] / b[i]`.

static · iOS 13.0+

divide

TypeScript
static divide74560(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func divide<U>(_ scalar: Float, _ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elementwise division of `scalar` by `vector`, single-precision. - Parameter scalar: the `a` in `c[i] = a / b[i]`. - Parameter vector: the `b` in `c[i] = a / b[i]`. - Returns: The `c` in `c[i] = a / b[i]`.

static · iOS 13.0+

divide

TypeScript
static divide61590(vector: Array<number>, scalar: number): Array<number>
Swift declaration
static func divide<U>(_ vector: U, _ scalar: Float) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elementwise division of `vector` by `scalar`, single-precision. - Parameter vector: the `a` in `c[i] = a[i] / b`. - Parameter scalar: the `b` in `c[i] = a[i] / b`. - Returns: The `c` in `c[i] = a[i] / b`

static · iOS 13.0+

divide

TypeScript
static divide2943(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func divide<T, U>(_ vectorA: T, _ vectorB: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise division of `vectorA` by `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] / b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] / b[i]`. - Returns: The `c` in `c[i] = a[i] / b[i]`.

static · iOS 14.0+

gather

TypeScript
static gatherIndicesResult(vector: Array<number>, indices: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func gather<T, U, V>(_ vector: T, indices: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == UInt, V.Element == Double

Gathers double-precision vector based on values in an indices vector. - Parameter vector: Source vector: - Parameter indices: One-based indices to copy selected elements of source vector to sequential locations in result. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

gather

TypeScript
static gatherIndicesResult71390(vector: Array<number>, indices: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func gather<T, U, V>(_ vector: T, indices: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == UInt, V.Element == Float

Gathers single-precision vector based on values in an indices vector. - Parameter vector: Source vector: - Parameter indices: One-based indices to copy selected elements of source vector to sequential locations in result. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

gather

TypeScript
static gatherIndices(vector: Array<number>, indices: Array<number>): Array<number>
Swift declaration
static func gather<T, U>(_ vector: T, indices: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == UInt

Returns gathered double-precision vector based on values in an indices vector. - Parameter vector: Source vector: - Parameter indices: One-based indices to copy selected elements of source vector to sequential locations in result. - Returns: Output values.

static · iOS 14.0+

gather

TypeScript
static gatherIndices18298(vector: Array<number>, indices: Array<number>): Array<number>
Swift declaration
static func gather<T, U>(_ vector: T, indices: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == UInt

Returns gathered single-precision vector based on values in an indices vector. - Parameter vector: Source vector: - Parameter indices: One-based indices to copy selected elements of source vector to sequential locations in result. - Returns: Output values.

static · iOS 13.0+

square

TypeScript
static squareResult(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func square<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Calculates the square of each element in `vector`, writing the result to `result`; double-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

square

TypeScript
static squareResult38206(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func square<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Calculates the square of each element in `vector`, writing the result to `result`; single-precision. - Parameter vector: Input values. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

square

TypeScript
static square(vector: Array<number>): Array<number>
Swift declaration
static func square<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the square of each element in `vector`, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

square

TypeScript
static square8756(vector: Array<number>): Array<number>
Swift declaration
static func square<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the square of each element in `vector`, single-precision. - Parameter vector: Input values. - Returns: Output values.

static · iOS 13.0+

window

TypeScript
static window(ofType: "Double" | "Float", sequence: vDSP_WindowSequence, count: number, isHalfWindow: boolean): Array<unknown>
Swift declaration
static func window<T>(ofType: T.Type, usingSequence sequence: vDSP.WindowSequence, count: Int, isHalfWindow: Bool) -> [T] where T : vDSP_FloatingPointGeneratable

Creates an array containing the specified window. - Parameter ofType: Specifies single- or double-precision. - Parameter sequence: Specifies the window sequence. - Parameter count: The number of elements in the array. - Parameter isHalfWindow: When true, creates a window with only the first `(N+1)/2` points. - Returns: An array containing the specified window.

static · iOS 13.0+

convert

TypeScript
static convertPolarCoordinatesToRectangularCoordinates(polarCoordinates: Array<number>, rectangularCoordinates: Array<number>): { $ret: null; $out: { "rectangularCoordinates": Array<number> } }
Swift declaration
static func convert<U, V>(polarCoordinates: U, toRectangularCoordinates rectangularCoordinates: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Polar to rectangular conversion, double-precision. - Parameter polarCoordinates: Source vector, represented as consecutive rho, (radius) theta (angle in radians) pairs. - Parameter rectangularCoordinates: Destination vector, represented as consecutive x, y pairs.

Omit the output parameters from the call. The result contains $ret and $out, with rectangularCoordinates inside $out.

static · iOS 13.0+

convert

TypeScript
static convertPolarCoordinatesToRectangularCoordinates60725(polarCoordinates: Array<number>, rectangularCoordinates: Array<number>): { $ret: null; $out: { "rectangularCoordinates": Array<number> } }
Swift declaration
static func convert<U, V>(polarCoordinates: U, toRectangularCoordinates rectangularCoordinates: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Polar to rectangular conversion, single-precision. - Parameter polarCoordinates: Source vector, represented as consecutive rho, (radius) theta (angle in radians) pairs. - Parameter rectangularCoordinates: Destination vector, represented as consecutive x, y pairs.

Omit the output parameters from the call. The result contains $ret and $out, with rectangularCoordinates inside $out.

static · iOS 13.0+

convert

TypeScript
static convertSplitComplexVectorToInterleavedComplexVector(splitComplexVector: DSPDoubleSplitComplex, interleavedComplexVector: Array<DSPDoubleComplex>): { $ret: null; $out: { "interleavedComplexVector": Array<DSPDoubleComplex> } }
Swift declaration
static func convert(splitComplexVector: DSPDoubleSplitComplex, toInterleavedComplexVector interleavedComplexVector: inout [DSPDoubleComplex])

Converts split complex to interleaved complex; double-precision. - Parameter splitComplexVector: Source vector. - Parameter interleavedComplexVector: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with interleavedComplexVector inside $out.

static · iOS 13.0+

convert

TypeScript
static convertSplitComplexVectorToInterleavedComplexVector19231(splitComplexVector: DSPSplitComplex, interleavedComplexVector: Array<DSPComplex>): { $ret: null; $out: { "interleavedComplexVector": Array<DSPComplex> } }
Swift declaration
static func convert(splitComplexVector: DSPSplitComplex, toInterleavedComplexVector interleavedComplexVector: inout [DSPComplex])

Converts split complex to interleaved complex; single-precision. - Parameter splitComplexVector: Source vector. - Parameter interleavedComplexVector: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with interleavedComplexVector inside $out.

static · iOS 13.0+

convert

TypeScript
static convertRectangularCoordinatesToPolarCoordinates(rectangularCoordinates: Array<number>, polarCoordinates: Array<number>): { $ret: null; $out: { "polarCoordinates": Array<number> } }
Swift declaration
static func convert<U, V>(rectangularCoordinates: U, toPolarCoordinates polarCoordinates: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Rectangular to polar conversion, double-precision. - Parameter rectangularCoordinates: Source vector, represented as consecutive x, y pairs. - Parameter polarCoordinates: Destination vector, represented as consecutive rho, (radius) theta (angle in radians) pairs.

Omit the output parameters from the call. The result contains $ret and $out, with polarCoordinates inside $out.

static · iOS 13.0+

convert

TypeScript
static convertRectangularCoordinatesToPolarCoordinates57775(rectangularCoordinates: Array<number>, polarCoordinates: Array<number>): { $ret: null; $out: { "polarCoordinates": Array<number> } }
Swift declaration
static func convert<U, V>(rectangularCoordinates: U, toPolarCoordinates polarCoordinates: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Rectangular to polar conversion, single-precision. - Parameter rectangularCoordinates: Source vector, represented as consecutive x, y pairs. - Parameter polarCoordinates: Destination vector, represented as consecutive rho, (radius) theta (angle in radians) pairs.

Omit the output parameters from the call. The result contains $ret and $out, with polarCoordinates inside $out.

static · iOS 13.0+

convert

TypeScript
static convertInterleavedComplexVectorToSplitComplexVector(interleavedComplexVector: Array<DSPDoubleComplex>, splitComplexVector: DSPDoubleSplitComplex): { $ret: null; $out: { "splitComplexVector": DSPDoubleSplitComplex } }
Swift declaration
static func convert(interleavedComplexVector: [DSPDoubleComplex], toSplitComplexVector splitComplexVector: inout DSPDoubleSplitComplex)

Converts interleaved complex to split complex; double-precision. - Parameter interleavedComplexVector: Source vector. - Parameter splitComplexVector: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with splitComplexVector inside $out.

static · iOS 13.0+

convert

TypeScript
static convertInterleavedComplexVectorToSplitComplexVector83033(interleavedComplexVector: Array<DSPComplex>, splitComplexVector: DSPSplitComplex): { $ret: null; $out: { "splitComplexVector": DSPSplitComplex } }
Swift declaration
static func convert(interleavedComplexVector: [DSPComplex], toSplitComplexVector splitComplexVector: inout DSPSplitComplex)

Converts interleaved complex to split complex; single-precision. - Parameter interleavedComplexVector: Source vector. - Parameter splitComplexVector: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with splitComplexVector inside $out.

static · iOS 13.0+

convert

TypeScript
static convertPowerToDecibelsZeroReference(power: Array<number>, decibels: Array<number>, zeroReference: number): { $ret: null; $out: { "decibels": Array<number> } }
Swift declaration
static func convert<U, V>(power: U, toDecibels decibels: inout V, zeroReference: Double) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Converts power to decibels, double-precision. - Parameter power: Source vector. - Parameter decibels: Destination vector. - Parameter zeroReference: Zero reference.

Omit the output parameters from the call. The result contains $ret and $out, with decibels inside $out.

static · iOS 13.0+

convert

TypeScript
static convertPowerToDecibelsZeroReference20258(power: Array<number>, decibels: Array<number>, zeroReference: number): { $ret: null; $out: { "decibels": Array<number> } }
Swift declaration
static func convert<U, V>(power: U, toDecibels decibels: inout V, zeroReference: Float) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Converts power to decibels, single-precision. - Parameter power: Source vector. - Parameter decibels: Destination vector. - Parameter zeroReference: Zero reference.

Omit the output parameters from the call. The result contains $ret and $out, with decibels inside $out.

static · iOS 13.0+

convert

TypeScript
static convertAmplitudeToDecibelsZeroReference(amplitude: Array<number>, decibels: Array<number>, zeroReference: number): { $ret: null; $out: { "decibels": Array<number> } }
Swift declaration
static func convert<U, V>(amplitude: U, toDecibels decibels: inout V, zeroReference: Double) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Converts amplitude to decibels, double-precision. - Parameter amplitude: Source vector. - Parameter decibels: Destination vector. - Parameter zeroReference: Zero reference.

Omit the output parameters from the call. The result contains $ret and $out, with decibels inside $out.

static · iOS 13.0+

convert

TypeScript
static convertAmplitudeToDecibelsZeroReference258(amplitude: Array<number>, decibels: Array<number>, zeroReference: number): { $ret: null; $out: { "decibels": Array<number> } }
Swift declaration
static func convert<U, V>(amplitude: U, toDecibels decibels: inout V, zeroReference: Float) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Converts amplitude to decibels, single-precision. - Parameter amplitude: Source vector. - Parameter decibels: Destination vector. - Parameter zeroReference: Zero reference.

Omit the output parameters from the call. The result contains $ret and $out, with decibels inside $out.

static · iOS 13.0+

maximum

TypeScript
static maximumResult(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func maximum<U, V>(_ vectorA: U, _ vectorB: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the greater of the corresponding values in `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter result: the `c` in `c[i] = a[i] > b[i] ? a[i] : b[i]`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

maximum

TypeScript
static maximumResult91045(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func maximum<U, V>(_ vectorA: U, _ vectorB: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the greater of the corresponding values in `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter result: the `c` in `c[i] = a[i] > b[i] ? a[i] : b[i]`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

maximum

TypeScript
static maximum(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func maximum<U>(_ vectorA: U, _ vectorB: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the greater of the corresponding values in `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Returns: the `c` in `c[i] = `c[i] = a[i] > b[i] ? a[i] : b[i]`

static · iOS 13.0+

maximum

TypeScript
static maximum5581(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func maximum<U>(_ vectorA: U, _ vectorB: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the greater of the corresponding values in `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] > b[i] ? a[i] : b[i]` - Returns: the `c` in `c[i] = a[i] > b[i] ? a[i] : b[i]`

static · iOS 13.0+

maximum

TypeScript
static maximum31714(vector: Array<number>): number
Swift declaration
static func maximum<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector maximum value; single-precision. - Parameter vector: The input vector. - Returns: The maximum value in `vector`.

static · iOS 13.0+

maximum

TypeScript
static maximum43850(vector: Array<number>): number
Swift declaration
static func maximum<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector maximum value; single-precision. - Parameter vector: The input vector. - Returns: The maximum value in `vector`.

static · iOS 13.0+

minimum

TypeScript
static minimumResult(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func minimum<U, V>(_ vectorA: U, _ vectorB: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the lesser of the corresponding values in `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter result: the `c` in `c[i] = a[i] < b[i] ? a[i] : b[i]`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

minimum

TypeScript
static minimumResult14555(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func minimum<U, V>(_ vectorA: U, _ vectorB: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the lesser of the corresponding values in `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter result: the `c` in `c[i] = a[i] < b[i] ? a[i] : b[i]`

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

minimum

TypeScript
static minimum(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func minimum<U>(_ vectorA: U, _ vectorB: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the lesser of the corresponding values in `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Returns: the `c` in `c[i] = a[i] < b[i] ? a[i] : b[i]`

static · iOS 13.0+

minimum

TypeScript
static minimum86535(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func minimum<U>(_ vectorA: U, _ vectorB: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the lesser of the corresponding values in `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Parameter vectorB: the `b` in `c[i] = a[i] < b[i] ? a[i] : b[i]` - Returns: the `c` in `c[i] = a[i] < b[i] ? a[i] : b[i]`

static · iOS 13.0+

minimum

TypeScript
static minimum5444(vector: Array<number>): number
Swift declaration
static func minimum<U>(_ vector: U) -> Double where U : AccelerateBuffer, U.Element == Double

Returns vector minimum value; single-precision. - Parameter vector: The input vector. - Returns: The minimum value in `vector`.

static · iOS 13.0+

minimum

TypeScript
static minimum43324(vector: Array<number>): number
Swift declaration
static func minimum<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

Returns vector minimum value; single-precision. - Parameter vector: The input vector. - Returns: The minimum value in `vector`.

static · iOS 13.0+

reverse

TypeScript
static reverse(vector: Array<number>): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func reverse<V>(_ vector: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Reverses an array of double-precision values in-place. - Parameter vector: The array to reverse.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

reverse

TypeScript
static reverse32368(vector: Array<number>): { $ret: null; $out: { "vector": Array<number> } }
Swift declaration
static func reverse<V>(_ vector: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Reverses an array of single-precision values in-place. - Parameter vector: The array to reverse.

Omit the output parameters from the call. The result contains $ret and $out, with vector inside $out.

static · iOS 13.0+

absolute

TypeScript
static absoluteResult(vector: DSPSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func absolute<V>(_ vector: DSPSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Populates `result` with the absolute values of `vector`, single-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

absolute

TypeScript
static absoluteResult8587(vector: DSPDoubleSplitComplex, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func absolute<V>(_ vector: DSPDoubleSplitComplex, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Populates `result` with the absolute values of `vector`, double-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

absolute

TypeScript
static absoluteResult22002(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func absolute<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the absolute values of `vector`, double-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

absolute

TypeScript
static absoluteResult83346(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func absolute<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the absolute values of `vector`, single-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

absolute

TypeScript
static absolute(vector: Array<number>): Array<number>
Swift declaration
static func absolute<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the absolute values of `vector`, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

absolute

TypeScript
static absolute26840(vector: Array<number>): Array<number>
Swift declaration
static func absolute<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the absolute values of `vector`, single-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 14.0+

compress

TypeScript
static compressGatingVectorNonZeroGatingCount(vector: Array<number>, gatingVector: Array<number>, nonZeroGatingCount?: (number) | null): Array<number>
Swift declaration
static func compress<T, U>(_ vector: T, gatingVector: U, nonZeroGatingCount: Int?) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Compresses double-precision vector based on nonzero values in a gating vector. - Parameter vector: Source vector: - Parameter gatingVector: Gating vector; for nonzero elements, corresponding elements of source vector are sequentially copied to output result. - Parameter nonZeroGatingCount: The number of nonzero elements in `gatingVector`; set to `nil` to have vDSP calculate this value for you. - Returns: Output values.

static · iOS 14.0+

compress

TypeScript
static compressGatingVectorNonZeroGatingCount507(vector: Array<number>, gatingVector: Array<number>, nonZeroGatingCount?: (number) | null): Array<number>
Swift declaration
static func compress<T, U>(_ vector: T, gatingVector: U, nonZeroGatingCount: Int?) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Compresses single-precision vector based on nonzero values in a gating vector. - Parameter vector: Source vector: - Parameter gatingVector: Gating vector; for nonzero elements, corresponding elements of source vector are sequentially copied to output result. - Parameter nonZeroGatingCount: The number of nonzero elements in `gatingVector`; set to `nil` to have vDSP calculate this value for you. - Returns: Output values.

static · iOS 14.0+

compress

TypeScript
static compressGatingVectorResult(vector: Array<number>, gatingVector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func compress<T, U, V>(_ vector: T, gatingVector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Compresses double-precision vector based on nonzero values in a gating vector. - Parameter vector: Source vector: - Parameter gatingVector: Gating vector; for nonzero elements, corresponding elements of source vector are sequentially copied to output result. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 14.0+

compress

TypeScript
static compressGatingVectorResult52775(vector: Array<number>, gatingVector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func compress<T, U, V>(_ vector: T, gatingVector: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Compresses single-precision vector based on nonzero values in a gating vector. - Parameter vector: Source vector: - Parameter gatingVector: Gating vector; for nonzero elements, corresponding elements of source vector are sequentially copied to output result. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveWithKernelResult(vector: Array<number>, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, withKernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

One-dimensional convolution, double-precision. - Parameter vector: The vector to convolve. - Parameter kernel: Double-precision convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveWithKernelResult41159(vector: Array<number>, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, withKernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

One-dimensional convolution, single-precision. - Parameter vector: The vector to convolve. - Parameter kernel: Single-precision convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveWithKernel(vector: Array<number>, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, withKernel kernel: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns one-dimensional convolution, double-precision. - Parameter vector: The vector to convolve. - Parameter kernel: Double-precision convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveWithKernel174(vector: Array<number>, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, withKernel kernel: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns one-dimensional convolution, single-precision. - Parameter vector: The vector to convolve. - Parameter kernel: Single-precision convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWithKernelKernelRowCountKernelColumnCountResult(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, kernelRowCount: number, kernelColumnCount: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Two-dimensional convolution with arbitrarily sized kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Double-precision convolution kernel. - Parameter kernelRowCount: The number of rows in the kernel. - Parameter kernelColumnCount: The number of columns in the kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWithKernelKernelRowCountKernelColumnCountResult4656(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, kernelRowCount: number, kernelColumnCount: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Two-dimensional convolution with arbitrarily sized kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision convolution kernel. - Parameter kernelRowCount: The number of rows in the kernel. - Parameter kernelColumnCount: The number of columns in the kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWithKernelKernelRowCountKernelColumnCount(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, kernelRowCount: number, kernelColumnCount: number): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns two-dimensional convolution with arbitrarily sized kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision convolution kernel. - Parameter kernelRowCount: The number of rows in the kernel. - Parameter kernelColumnCount: The number of columns in the kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWithKernelKernelRowCountKernelColumnCount41721(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, kernelRowCount: number, kernelColumnCount: number): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, withKernel kernel: U, kernelRowCount: Int, kernelColumnCount: Int) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns two-dimensional convolution with arbitrarily sized kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision convolution kernel. - Parameter kernelRowCount: The number of rows in the kernel. - Parameter kernelColumnCount: The number of columns in the kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith3x3KernelResult(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, with3x3Kernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Two-dimensional convolution with a 3 x 3 kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Double-precision 3x3 convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith3x3KernelResult28271(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, with3x3Kernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Two-dimensional convolution with a 3 x 3 kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision 3x3 convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith3x3Kernel(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, with3x3Kernel kernel: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns two-dimensional convolution with a 3 x 3 kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Double-precision 3x3 convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith3x3Kernel93723(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, with3x3Kernel kernel: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns two-dimensional convolution with a 3 x 3 kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision 3x3 convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith5x5KernelResult(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, with5x5Kernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Two-dimensional convolution with a 5 x 5 kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Double-precision 5x5 convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith5x5KernelResult45631(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func convolve<T, U, V>(_ vector: T, rowCount: Int, columnCount: Int, with5x5Kernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Two-dimensional convolution with a 5 x 5 kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision 5x5 convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith5x5Kernel(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, with5x5Kernel kernel: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns two-dimensional convolution with a 5 x 5 kernel; double-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Double-precision 3x3 convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

convolve

TypeScript
static convolveRowCountColumnCountWith5x5Kernel47595(vector: Array<number>, rowCount: number, columnCount: number, kernel: Array<number>): Array<number>
Swift declaration
static func convolve<T, U>(_ vector: T, rowCount: Int, columnCount: Int, with5x5Kernel kernel: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns two-dimensional convolution with a 5 x 5 kernel; single-precision. - Parameter vector: The vector to convolve. - Parameter rowCount: The number of rows in the input vector. - Parameter columnCount: The number of columns in the input vector. - Parameter kernel: Single-precision 5x5 convolution kernel. - Returns: Convolution result.

static · iOS 13.0+

formRamp

TypeScript
static formRampWithInitialValueMultiplyingByIncrementResult(initialValue: number, vector: Array<number>, increment: number, result: Array<number>): { $ret: null; $out: { "initialValue": number; "result": Array<number> } }
Swift declaration
static func formRamp<U, V>(withInitialValue initialValue: inout Double, multiplyingBy vector: U, increment: Double, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Fills a supplied array with monotonically incrementing or decrementing values, multiplying by a source vector, double-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplyingBy: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue, result inside $out.

static · iOS 13.0+

formRamp

TypeScript
static formRampWithInitialValueMultiplyingByIncrementResult9405(initialValue: number, vector: Array<number>, increment: number, result: Array<number>): { $ret: null; $out: { "initialValue": number; "result": Array<number> } }
Swift declaration
static func formRamp<U, V>(withInitialValue initialValue: inout Float, multiplyingBy vector: U, increment: Float, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Fills a supplied array with monotonically incrementing or decrementing values, multiplying by a source vector, single-precision. - Parameter initialValue: Specifies the initial value. Modified on return to hold the next value (including accumulated errors) so that the ramp function can be continued smoothly. - Parameter multiplyingBy: Input values multiplied by the ramp function. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with initialValue, result inside $out.

static · iOS 13.0+

formRamp

TypeScript
static formRampWithInitialValueIncrementResult(initialValue: number, increment: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(withInitialValue initialValue: Double, increment: Double, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Fills a supplied array with monotonically incrementing or decrementing values, double-precision. - Parameter initialValue: Specifies the initial value. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

formRamp

TypeScript
static formRampWithInitialValueIncrementResult18532(initialValue: number, increment: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(withInitialValue initialValue: Float, increment: Float, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Fills a supplied array with monotonically incrementing or decrementing values, single-precision. - Parameter initialValue: Specifies the initial value. - Parameter increment: The increment (or decrement if negative) between consecutive elements. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

formRamp

TypeScript
static formRampInResult(range: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(in range: ClosedRange<Double>, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Fills a supplied array with monotonically incrementing values within a specified range, double-precision. - Parameter range: Specifies range of the ramp. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

formRamp

TypeScript
static formRampInResult63421(range: SDKHandle, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(in range: ClosedRange<Float>, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Fills a supplied array with monotonically incrementing values within a specified range, single-precision. - Parameter range: Specifies range of the ramp. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 18.0+

formRamp

TypeScript
static formRampFromThroughResult(start: number, end: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(from start: Double, through end: Double, result: inout V) where V : AccelerateMutableBuffer, V.Element == Double

Fills a supplied array with monotonically incrementing or decrementing values within a specified range, double-precision. - Parameter start: The start value to use for the ramp. - Parameter end: The end value to use for the ramp. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 18.0+

formRamp

TypeScript
static formRampFromThroughResult76504(start: number, end: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func formRamp<V>(from start: Float, through end: Float, result: inout V) where V : AccelerateMutableBuffer, V.Element == Float

Fills a supplied array with monotonically incrementing or decrementing values within a specified range, single-precision. - Parameter start: The start value to use for the ramp. - Parameter end: The end value to use for the ramp. - Parameter result: Output values.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionSubtractionResult(subtractionAB: { "a": Array<number>; "b": Array<number> }, subtractionCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<R, S, T, U, V>(subtraction subtractionAB: (a: R, b: S), subtraction subtractionCD: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of two elementwise vector-vector differences, double-precision. - Parameter subtractionAB: the `a` and `b` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter subtractionCD: the `c` and `d` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter result: the `e` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionSubtractionResult79904(subtractionAB: { "a": Array<number>; "b": Array<number> }, subtractionCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<R, S, T, U, V>(subtraction subtractionAB: (a: R, b: S), subtraction subtractionCD: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of two elementwise vector-vector differences, single-precision. - Parameter subtractionAB: the `a` and `b` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter subtractionCD: the `c` and `d` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter result: the `e` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionSubtraction(subtractionAB: { "a": Array<number>; "b": Array<number> }, subtractionCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<R, S, T, U>(subtraction subtractionAB: (a: R, b: S), subtraction subtractionCD: (c: T, d: U)) -> [Double] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise product of two elementwise vector-vector differences, double-precision. - Parameter subtractionAB: the `a` and `b` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter subtractionCD: the `c` and `d` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Returns: the `e` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionSubtraction55590(subtractionAB: { "a": Array<number>; "b": Array<number> }, subtractionCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<R, S, T, U>(subtraction subtractionAB: (a: R, b: S), subtraction subtractionCD: (c: T, d: U)) -> [Float] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise product of two elementwise vector-vector differences, single-precision. - Parameter subtractionAB: the `a` and `b` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Parameter subtractionCD: the `c` and `d` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`. - Returns: the `e` in `e[i] = (a[i] - b[i]) * (c[i] - d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionResult(subtraction: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(subtraction: (a: T, b: U), _ scalar: Double, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of the difference of the vectors in `subtraction` and `scalar`, double-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] - b[i]) * c`. - Parameter result: The `d` in `d[i] = `(a[i] - b[i]) * c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionResult74167(subtraction: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(subtraction: (a: T, b: U), _ scalar: Float, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of the difference of the vectors in `subtraction` and `scalar`, single-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] - b[i]) * c`. - Parameter result: The `d` in `d[i] = `(a[i] - b[i]) * c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionResult89752(subtraction: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(subtraction: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of the difference of the vectors in `subtraction` and `vector`, double-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = `(a[i] - b[i]) * c[i]`. - Parameter result: The `d` in `d[i] = `(a[i] - b[i]) * c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtractionResult91952(subtraction: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(subtraction: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of the difference of the vectors in `subtraction` and `vector`, single-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = `(a[i] - b[i]) * c[i]`. - Parameter result: The `d` in `d[i] = `(a[i] - b[i]) * c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtraction(subtraction: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func multiply<T, U>(subtraction: (a: T, b: U), _ scalar: Double) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise product of the difference of the vectors in `subtraction` and `scalar`, double-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] - b[i]) * c`. - Returns: The `d` in `d[i] = `(a[i] - b[i]) * c`.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtraction66212(subtraction: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func multiply<S, T, U>(subtraction: (a: S, b: T), _ vector: U) -> [Double] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise product of the difference of the vectors in `subtraction` and `vector`, double-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = `(a[i] - b[i]) * c[i]`. - Returns: The `d` in `d[i] = `(a[i] - b[i]) * c[i]`.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtraction28753(subtraction: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func multiply<T, U>(subtraction: (a: T, b: U), _ scalar: Float) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise product of the difference of the vectors in `subtraction` and `scalar`, single-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] - b[i]) * c`. - Returns: The `d` in `d[i] = `(a[i] - b[i]) * c`.

static · iOS 13.0+

multiply

TypeScript
static multiplySubtraction31588(subtraction: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func multiply<S, T, U>(subtraction: (a: S, b: T), _ vector: U) -> [Float] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise product of the difference of the vectors in `subtraction` and `vector`, single-precision. - Parameter subtraction: the `a` and `b` in `d[i] = (a[i] - b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = `(a[i] - b[i]) * c[i]`. - Returns: The `d` in `d[i] = `(a[i] - b[i]) * c[i]`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionSubtractionResult(addition: { "a": Array<number>; "b": Array<number> }, subtraction: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<R, S, T, U, V>(addition: (a: R, b: S), subtraction: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of an elementwise vector-vector sum and an elementwise vector-vector sum, double-precision. - Parameter addition: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter subtraction: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter result: the `e` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionSubtractionResult72748(addition: { "a": Array<number>; "b": Array<number> }, subtraction: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<R, S, T, U, V>(addition: (a: R, b: S), subtraction: (c: T, d: U), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of an elementwise vector-vector sum and an elementwise vector-vector sum, single-precision. - Parameter addition: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter subtraction: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter result: the `e` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionSubtraction(addition: { "a": Array<number>; "b": Array<number> }, subtraction: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<R, S, T, U>(addition: (a: R, b: S), subtraction: (c: T, d: U)) -> [Double] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise product of an elementwise vector-vector sum and an elementwise vector-vector sum, double-precision. - Parameter addition: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter subtraction: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Returns: the `e` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionSubtraction13032(addition: { "a": Array<number>; "b": Array<number> }, subtraction: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<R, S, T, U>(addition: (a: R, b: S), subtraction: (c: T, d: U)) -> [Float] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise product of an elementwise vector-vector sum and an elementwise vector-vector sum, single-precision. - Parameter addition: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Parameter subtraction: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`. - Returns: the `e` in `e[i] = (a[i] + b[i]) * (c[i] - d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionAdditionResult(additionAB: { "a": Array<number>; "b": Array<number> }, additionCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(addition additionAB: (a: S, b: T), addition additionCD: (c: U, d: U), result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of two elementwise vector-vector sums, double-precision. - Parameter additionAB: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter additionCD: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter result: the `e` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionAdditionResult11485(additionAB: { "a": Array<number>; "b": Array<number> }, additionCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(addition additionAB: (a: S, b: T), addition additionCD: (c: U, d: U), result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of two elementwise vector-vector sums, single-precision. - Parameter additionAB: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter additionCD: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter result: the `e` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionAddition(additionAB: { "a": Array<number>; "b": Array<number> }, additionCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<S, T, U>(addition additionAB: (a: S, b: T), addition additionCD: (c: U, d: U)) -> [Double] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise product of two elementwise vector-vector sums, double-precision. - Parameter additionAB: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter additionCD: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Returns: the `e` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionAddition74431(additionAB: { "a": Array<number>; "b": Array<number> }, additionCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func multiply<S, T, U>(addition additionAB: (a: S, b: T), addition additionCD: (c: U, d: U)) -> [Float] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise product of two elementwise vector-vector sums, single-precision. - Parameter additionAB: the `a` and `b` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Parameter additionCD: the `c` and `d` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`. - Returns: the `e` in `e[i] = (a[i] + b[i]) * (c[i] + d[i])`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionResult(addition: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(addition: (a: T, b: U), _ scalar: Double, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of the sum of the vectors in `addition` and `scalar`, double-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] + b[i]) * c`. - Parameter result: The `d` in `d[i] = `(a[i] + b[i]) * c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionResult61211(addition: { "a": Array<number>; "b": Array<number> }, scalar: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(addition: (a: T, b: U), _ scalar: Float, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of the sum of the vectors in `addition` and `scalar`, single-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] + b[i]) * c`. - Parameter result: The `d` in `d[i] = `(a[i] + b[i]) * c`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionResult8708(addition: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(addition: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of the sum of the vectors in `addition` and `vector`, double-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter result: The `d` in `d[i] = (a[i] + b[i]) * c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAdditionResult45132(addition: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<S, T, U, V>(addition: (a: S, b: T), _ vector: U, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of the sum of the vectors in `addition` and `vector`, single-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter result: The `d` in `d[i] = (a[i] + b[i]) * c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyAddition(addition: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func multiply<T, U>(addition: (a: T, b: U), _ scalar: Double) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise product of the sum of the vectors in `addition` and `scalar`, double-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] + b[i]) * c`. - Returns: The `d` in `d[i] = `(a[i] + b[i]) * c`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAddition23376(addition: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func multiply<S, T, U>(addition: (a: S, b: T), _ vector: U) -> [Double] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise product of the sum of the vectors in `addition` and `vector`, double-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] + b[i]) * c[i]`. - Returns: The `d` in `d[i] = (a[i] + b[i]) * c[i]`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAddition77765(addition: { "a": Array<number>; "b": Array<number> }, scalar: number): Array<number>
Swift declaration
static func multiply<T, U>(addition: (a: T, b: U), _ scalar: Float) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise product of the sum of the vectors in `addition` and `scalar`, single-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c`. - Parameter scalar: the `c` in `d[i] = `(a[i] + b[i]) * c`. - Returns: The `d` in `d[i] = `(a[i] + b[i]) * c`.

static · iOS 13.0+

multiply

TypeScript
static multiplyAddition61168(addition: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func multiply<S, T, U>(addition: (a: S, b: T), _ vector: U) -> [Float] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise product of the sum of the vectors in `addition` and `vector`, single-precision. - Parameter addition: the `a` and `b` in `d[i] = (a[i] + b[i]) * c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] + b[i]) * c[i]`. - Returns: The `d` in `d[i] = (a[i] + b[i]) * c[i]`.

static · iOS 13.0+

multiply

TypeScript
static multiplyByCountUseConjugateResult(splitComplexA: DSPSplitComplex, splitComplexB: DSPSplitComplex, count: number, useConjugate: boolean, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func multiply(_ splitComplexA: DSPSplitComplex, by splitComplexB: DSPSplitComplex, count: Int, useConjugate: Bool, result: inout DSPSplitComplex)

Populates `result` with the elementwise product of `splitComplexA` and `splitComplexB`, optionally conjugating one of them; single-precision - Parameter splitComplexA: The `a` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`. - Parameter splitComplexB: The `b` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`. - Parameter count: The number of elements to process. - Parameter useConjugate: Specifies whether to multiply the complex conjugates of `splitComplexA`. - Parameter result: The `c` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyByCountUseConjugateResult57601(splitComplexA: DSPDoubleSplitComplex, splitComplexB: DSPDoubleSplitComplex, count: number, useConjugate: boolean, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func multiply(_ splitComplexA: DSPDoubleSplitComplex, by splitComplexB: DSPDoubleSplitComplex, count: Int, useConjugate: Bool, result: inout DSPDoubleSplitComplex)

Populates `result` with the elementwise product of `splitComplexA` and `splitComplexB`, optionally conjugating one of them; double-precision - Parameter splitComplexA: The `a` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`. - Parameter splitComplexB: The `b` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`. - Parameter count: The number of elements to process. - Parameter useConjugate: Specifies whether to multiply the complex conjugates of `splitComplexA`. - Parameter result: The `c` in `c[i] = a[i] * b[i]` or `c[i] = conj(a[i]) * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyByResult(splitComplex: DSPSplitComplex, vector: Array<number>, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func multiply<U>(_ splitComplex: DSPSplitComplex, by vector: U, result: inout DSPSplitComplex) where U : AccelerateBuffer, U.Element == Float

Populates `result` with the elementwise product of `splitComplex` and `vector`, single-precision. - Parameter splitComplex: the `a` in `c[i] = a[i] * b[i]`. - Parameter vector: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyByResult42594(splitComplex: DSPDoubleSplitComplex, vector: Array<number>, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func multiply<U>(_ splitComplex: DSPDoubleSplitComplex, by vector: U, result: inout DSPDoubleSplitComplex) where U : AccelerateBuffer, U.Element == Double

Populates `result` with the elementwise product of `splitComplex` and `vector`, double-precision. - Parameter splitComplex: the `a` in `c[i] = a[i] * b[i]`. - Parameter vector: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyResult(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<U, V>(_ scalar: Double, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of `vector` and `scalar`, double-precision. - Parameter vector: the `a` in `c[i] = a[i] * b`. - Parameter scalar: the `b` in `c[i] = a[i] * b`. - Parameter result: The `c` in `c[i] = a[i] * b`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyResult51151(scalar: number, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<U, V>(_ scalar: Float, _ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of `vector` and `scalar single-precision. - Parameter vector: the `a` in `c[i] = a[i] * b`. - Parameter scalar: the `b` in `c[i] = a[i] * b`. - Parameter result: The `c` in `c[i] = a[i] * b`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyResult70575(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise product of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] * b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiplyResult66073(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func multiply<T, U, V>(_ vectorA: T, _ vectorB: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise product of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] * b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

multiply

TypeScript
static multiply(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func multiply<U>(_ scalar: Double, _ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elementwise product of `vector` and `scalar double-precision. - Parameter vector: the `a` in `c[i] = a[i] * b`. - Parameter scalar: the `b` in `c[i] = a[i] * b`. - Returns: The `c` in `c[i] = a[i] * b`.

static · iOS 13.0+

multiply

TypeScript
static multiply61002(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func multiply<T, U>(_ vectorA: T, _ vectorB: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise product of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] * b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

static · iOS 13.0+

multiply

TypeScript
static multiply8221(scalar: number, vector: Array<number>): Array<number>
Swift declaration
static func multiply<U>(_ scalar: Float, _ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elementwise product of `vector` and `scalar single-precision. - Parameter vector: the `a` in `c[i] = a[i] * b`. - Parameter scalar: the `b` in `c[i] = a[i] * b`. - Returns: The `c` in `c[i] = a[i] * b`.

static · iOS 13.0+

multiply

TypeScript
static multiply35948(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func multiply<T, U>(_ vectorA: T, _ vectorB: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise product of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] * b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] * b[i]`. - Parameter result: The `c` in `c[i] = a[i] * b[i]`.

static · iOS 13.0+

negative

TypeScript
static negativeResult(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func negative<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with the negative values of `vector`, double-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

negative

TypeScript
static negativeResult99220(vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func negative<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with the negative values of `vector`, single-precision. - Parameter vector: The input vector. - Parameter result: The output vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

negative

TypeScript
static negative(vector: Array<number>): Array<number>
Swift declaration
static func negative<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns an array containing the negative values of `vector`, double-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

negative

TypeScript
static negative32298(vector: Array<number>): Array<number>
Swift declaration
static func negative<U>(_ vector: U) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns an array containing the negative values of `vector`, single-precision. - Parameter vector: The input vector. - Returns: The output vector.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationMultiplicationResult(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<R, S, T, U, V>(multiplication multiplicationAB: (a: T, b: U), multiplication multiplicationCD: (c: R, d: S), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise difference of two elementwise vector-vector products, double-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter result: the `e` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationMultiplicationResult54845(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<R, S, T, U, V>(multiplication multiplicationAB: (a: T, b: U), multiplication multiplicationCD: (c: R, d: S), result: inout V) where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise difference of two elementwise vector-vector products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter result: the `e` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationMultiplication(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func subtract<R, S, T, U>(multiplication multiplicationAB: (a: T, b: U), multiplication multiplicationCD: (c: R, d: S)) -> [Double] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Double, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise difference of two elementwise vector-vector products, double-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Returns: the `e` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationMultiplication64157(multiplicationAB: { "a": Array<number>; "b": Array<number> }, multiplicationCD: { "c": Array<number>; "d": Array<number> }): Array<number>
Swift declaration
static func subtract<R, S, T, U>(multiplication multiplicationAB: (a: T, b: U), multiplication multiplicationCD: (c: R, d: S)) -> [Float] where R : AccelerateBuffer, S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, R.Element == Float, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise difference of two elementwise vector-vector products, single-precision. - Parameter multiplicationAB: the `a` and `b` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Parameter multiplicationCD: the `c` and `d` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`. - Returns: the `e` in `e[i] = (a[i] * b[i]) - (c[i] * d[i])`.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationResult(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<T, U, V>(multiplication: (a: U, b: Double), _ vector: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise difference of `vector` and the product of the vector and scalar in `multiplication`, double-precision. - Parameter vector: the `c` in `D[n] = A[n]*B - C[n]`. - Parameter multiplication: the `a` and `b` in `D[n] = A[n]*B - C[n]`. - Parameter result: the `d` in `D[n] = A[n]*B - C[n]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationResult34886(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<T, U, V>(multiplication: (a: U, b: Float), _ vector: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise difference of `vector` and the product of the vector and scalar in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `D[n] = A[n]*B - C[n]`. - Parameter vector: the `c` in `D[n] = A[n]*B - C[n]`. - Parameter result: the `d` in `D[n] = A[n]*B - C[n]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationResult84233(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<S, T, U, V>(multiplication: (a: T, b: U), _ vector: S, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Double, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise difference of `vector` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b[i]) - c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplicationResult79373(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<S, T, U, V>(multiplication: (a: T, b: U), _ vector: S, result: inout V) where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, S.Element == Float, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise difference of `vector` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter result: the `d` in `d[i] = (a[i] * b[i]) - c[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplication(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>): Array<number>
Swift declaration
static func subtract<T, U>(multiplication: (a: U, b: Double), _ vector: T) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise difference of `vector` and the product of the vector and scalar in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `D[n] = A[n]*B - C[n]`. - Parameter vector: the `c` in `D[n] = A[n]*B - C[n]`. - Returns: the `d` in `D[n] = A[n]*B - C[n]`.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplication18047(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func subtract<S, T, U>(multiplication: (a: T, b: U), _ vector: S) -> [Double] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Double, T.Element == Double, U.Element == Double

Returns the elementwise difference of `vector` and the product of the two vectors in `multiplication`, double-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) - c[i]`. - Returns: the `d` in `d[i] = (a[i] * b[i]) - c[i]`.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplication83698(multiplication: { "a": Array<number>; "b": number }, vector: Array<number>): Array<number>
Swift declaration
static func subtract<T, U>(multiplication: (a: U, b: Float), _ vector: T) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise difference of `vector` and the product of the vector and scalar in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `D[n] = A[n]*B - C[n]`. - Parameter vector: the `c` in `D[n] = A[n]*B - C[n]`. - Returns: the `d` in `D[n] = A[n]*B - C[n]`.

static · iOS 13.0+

subtract

TypeScript
static subtractMultiplication1659(multiplication: { "a": Array<number>; "b": Array<number> }, vector: Array<number>): Array<number>
Swift declaration
static func subtract<S, T, U>(multiplication: (a: T, b: U), _ vector: S) -> [Float] where S : AccelerateBuffer, T : AccelerateBuffer, U : AccelerateBuffer, S.Element == Float, T.Element == Float, U.Element == Float

Returns the elementwise difference of `vector` and the product of the two vectors in `multiplication`, single-precision. - Parameter multiplication: the `a` and `b` in `d[i] = (a[i] * b[i]) - c[i]`. - Parameter vector: the `c` in `d[i] = (a[i] * b[i]) - c[i]`. - Returns: the `d` in `d[i] = (a[i] * b[i]) - c[i]`.

static · iOS 13.0+

subtract

TypeScript
static subtractFromCountResult(splitComplexB: DSPSplitComplex, splitComplexA: DSPSplitComplex, count: number, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func subtract(_ splitComplexB: DSPSplitComplex, from splitComplexA: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)

Populates `result` with the elementwise difference of `splitComplexA` and `splitComplexB`, single-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] - b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] - b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] - b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractFromCountResult18621(splitComplexB: DSPDoubleSplitComplex, splitComplexA: DSPDoubleSplitComplex, count: number, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func subtract(_ splitComplexB: DSPDoubleSplitComplex, from splitComplexA: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)

Populates `result` with the elementwise difference of `splitComplexA` and `splitComplexB`, double-precision. - Parameter splitComplexA: the `a` in `c[i] = a[i] - b[i]`. - Parameter splitComplexB: the `b` in `c[i] = a[i] - b[i]`. - Parameter count: The number of elements to process. - Parameter result: The `c` in `c[i] = a[i] - b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractResult(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<T, U, V>(_ vectorA: U, _ vectorB: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

Populates `result` with the elementwise difference of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] - b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] - b[i]`. - Parameter result: The `c` in `c[i] = a[i] - b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtractResult59511(vectorA: Array<number>, vectorB: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func subtract<T, U, V>(_ vectorA: U, _ vectorB: T, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

Populates `result` with the elementwise difference of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] - b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] - b[i]`. - Parameter result: The `c` in `c[i] = a[i] - b[i]`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

subtract

TypeScript
static subtract(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func subtract<T, U>(_ vectorA: U, _ vectorB: T) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns the elementwise difference of `vectorA` and `vectorB`, double-precision. - Parameter vectorA: the `a` in `c[i] = a[i] - b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] - b[i]`. - Returns: The `c` in `c[i] = a[i] - b[i]`.

static · iOS 13.0+

subtract

TypeScript
static subtract96186(vectorA: Array<number>, vectorB: Array<number>): Array<number>
Swift declaration
static func subtract<T, U>(_ vectorA: U, _ vectorB: T) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns the elementwise difference of `vectorA` and `vectorB`, single-precision. - Parameter vectorA: the `a` in `c[i] = a[i] - b[i]`. - Parameter vectorB: the `b` in `c[i] = a[i] - b[i]`. - Returns: The `c` in `c[i] = a[i] - b[i]`.

static · iOS 13.0+

conjugate

TypeScript
static conjugateCountResult(splitComplex: DSPSplitComplex, count: number, result: DSPSplitComplex): { $ret: null; $out: { "result": DSPSplitComplex } }
Swift declaration
static func conjugate(_ splitComplex: DSPSplitComplex, count: Int, result: inout DSPSplitComplex)

Populates `result` with the conjugate of `splitComplex`; single-precision. - Parameter splitComplex: the `A` in `C[n] = conj(A[n])`. - Parameter result: The `C` in `C[n] = conj(A[n])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

conjugate

TypeScript
static conjugateCountResult75397(splitComplex: DSPDoubleSplitComplex, count: number, result: DSPDoubleSplitComplex): { $ret: null; $out: { "result": DSPDoubleSplitComplex } }
Swift declaration
static func conjugate(_ splitComplex: DSPDoubleSplitComplex, count: Int, result: inout DSPDoubleSplitComplex)

Populates `result` with the conjugate of `splitComplex`; double-precision. - Parameter splitComplex: the `A` in `C[n] = conj(A[n])`. - Parameter result: The `C` in `C[n] = conj(A[n])`.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

correlate

TypeScript
static correlateWithKernelResult(vector: Array<number>, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func correlate<T, U, V>(_ vector: T, withKernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double

One-dimensional correlation, double-precision. - Parameter vector: The vector to correlate. - Parameter kernel: Single-precision convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

correlate

TypeScript
static correlateWithKernelResult95723(vector: Array<number>, kernel: Array<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func correlate<T, U, V>(_ vector: T, withKernel kernel: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float

One-dimensional correlation, single-precision. - Parameter vector: The vector to correlate. - Parameter kernel: Single-precision convolution kernel. - Parameter result: Destination vector.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

correlate

TypeScript
static correlateWithKernel(vector: Array<number>, kernel: Array<number>): Array<number>
Swift declaration
static func correlate<T, U>(_ vector: T, withKernel kernel: U) -> [Double] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Double, U.Element == Double

Returns one-dimensional correlation, double-precision. - Parameter vector: The vector to correlate. - Parameter kernel: Single-precision convolution kernel. - Returns: Correlation result.

static · iOS 13.0+

correlate

TypeScript
static correlateWithKernel25762(vector: Array<number>, kernel: Array<number>): Array<number>
Swift declaration
static func correlate<T, U>(_ vector: T, withKernel kernel: U) -> [Float] where T : AccelerateBuffer, U : AccelerateBuffer, T.Element == Float, U.Element == Float

Returns one-dimensional correlation, single-precision. - Parameter vector: The vector to correlate. - Parameter kernel: Single-precision convolution kernel. - Returns: Correlation result.

static · iOS 13.0+

integrate

TypeScript
static integrateUsingStepSizeResult(vector: Array<number>, rule: vDSP_IntegrationRule, stepSize: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func integrate<U, V>(_ vector: U, using rule: vDSP.IntegrationRule, stepSize: Double = 1, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Integrates source vector using specified rule, double-precision. - Parameter vector: The vector to integrate. - Parameter rule: The integration rule. - Parameter stepSize: The integration step size (weighting factor for running sum). - Parameter result: The destination vector to receive the result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

integrate

TypeScript
static integrateUsingStepSizeResult67702(vector: Array<number>, rule: vDSP_IntegrationRule, stepSize: number, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func integrate<U, V>(_ vector: U, using rule: vDSP.IntegrationRule, stepSize: Float = 1, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Integrates source vector using specified rule, single-precision. - Parameter vector: The vector to integrate. - Parameter rule: The integration rule. - Parameter stepSize: The integration step size (weighting factor for running sum). - Parameter result: The destination vector to receive the result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

integrate

TypeScript
static integrateUsingStepSize(vector: Array<number>, rule: vDSP_IntegrationRule, stepSize?: number): Array<number>
Swift declaration
static func integrate<U>(_ vector: U, using rule: vDSP.IntegrationRule, stepSize: Double = 1) -> [Double] where U : AccelerateBuffer, U.Element == Double

Integrates source vector using specified rule, double-precision. - Parameter vector: The vector to integrate. - Parameter rule: The integration rule. - Parameter stepSize: The integration step size (weighting factor for running sum). - Returns: The integration result.

static · iOS 13.0+

integrate

TypeScript
static integrateUsingStepSize16726(vector: Array<number>, rule: vDSP_IntegrationRule, stepSize?: number): Array<number>
Swift declaration
static func integrate<U>(_ vector: U, using rule: vDSP.IntegrationRule, stepSize: Float = 1) -> [Float] where U : AccelerateBuffer, U.Element == Float

Integrates source vector using specified rule, single-precision. - Parameter vector: The vector to integrate. - Parameter rule: The integration rule. - Parameter stepSize: The integration step size (weighting factor for running sum). - Returns: The integration result.

static · iOS 13.0+

threshold

TypeScript
static thresholdToWithResult(vector: Array<number>, lowerBound: number, rule: vDSP_ThresholdRule<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func threshold<U, V>(_ vector: U, to lowerBound: Double, with rule: vDSP.ThresholdRule<Double>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double

Populates `result` with with the corresponding value in `vector` after applying a specified thresholding rule. Double-precision. This function supports the following rules: * `clampToThreshold` - Returns `lowerBound` if input is less than `lowerBound`; otherwise returns input value. * `zeroFill` - Returns `0` if input is less than `lowerBound`; otherwise returns input value. * `signedConstant(x)` - returns `-x` if input is less than `lowerBound`; otherwise `+x`. - Parameter vector: Source vector. - Parameter lowerBound: Low clipping threshold. - Parameter rule: The thresholding rule. - Parameter result: The threshold result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

threshold

TypeScript
static thresholdToWithResult13956(vector: Array<number>, lowerBound: number, rule: vDSP_ThresholdRule<number>, result: Array<number>): { $ret: null; $out: { "result": Array<number> } }
Swift declaration
static func threshold<U, V>(_ vector: U, to lowerBound: Float, with rule: vDSP.ThresholdRule<Float>, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float

Populates `result` with with the corresponding value in `vector` after applying a specified thresholding rule. Single-precision. This function supports the following rules: * `clampToThreshold` - Returns `lowerBound` if input is less than `lowerBound`; otherwise returns input value. * `zeroFill` - Returns `0` if input is less than `lowerBound`; otherwise returns input value. * `signedConstant(x)` - returns `-x` if input is less than `lowerBound`; otherwise `+x`. - Parameter vector: Source vector. - Parameter lowerBound: Low clipping threshold. - Parameter rule: The thresholding rule. - Parameter result: The threshold result.

Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.

static · iOS 13.0+

threshold

TypeScript
static thresholdToWith(vector: Array<number>, lowerBound: number, rule: vDSP_ThresholdRule<number>): Array<number>
Swift declaration
static func threshold<U>(_ vector: U, to lowerBound: Double, with rule: vDSP.ThresholdRule<Double>) -> [Double] where U : AccelerateBuffer, U.Element == Double

Returns the elements of `vector` after applying a specified thresholding rule. Double-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result.

static · iOS 13.0+

threshold

TypeScript
static thresholdToWith35972(vector: Array<number>, lowerBound: number, rule: vDSP_ThresholdRule<number>): Array<number>
Swift declaration
static func threshold<U>(_ vector: U, to lowerBound: Float, with rule: vDSP.ThresholdRule<Float>) -> [Float] where U : AccelerateBuffer, U.Element == Float

Returns the elements of `vector` after applying a specified thresholding rule. Single-precision. - Parameter vector: Source vector. - Parameter bounds: Clipping threshold. - Returns: The clipped result.

Skipped declarations

14 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.integerToFloatingPoint(_:floatingPointType:)

Passing a Swift type itself is not supported.

vDSP.floatingPointToInteger(_:integerType:rounding:)

Passing a Swift type itself is not supported.

vDSP.floatingPointToInteger(_:integerType:rounding:)

Passing a Swift type itself is not supported.

vDSP.normalize(_:)

This protocol needs associated types that cannot yet cross the bridge.

vDSP.normalize(_:result:)

This protocol needs associated types that cannot yet cross the bridge.

vDSP.standardDeviation(_:)

This parameter hides a concrete Swift type.

vDSP.normalize(_:)

This protocol needs associated types that cannot yet cross the bridge.

vDSP.normalize(_:result:)

This protocol needs associated types that cannot yet cross the bridge.

vDSP.standardDeviation(_:)

This parameter hides a concrete Swift type.

All Accelerate types →