static func reciprocal<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the reciprocal 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 func reciprocal<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the reciprocal 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 func nearestInteger<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the nearest integer to 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 func nearestInteger<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the nearest integer to 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 func truncatingRemainder<T, U, V>(dividends: T, divisors: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
Calculates the remainder of the elements in `dividends` divided by the the elements
in `divisors` using truncating division; single-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Parameter result: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is the integer formed by rounding `a/b` towards zero, so `abs(r) < abs(b)` and `r` has the same sign as `a`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func truncatingRemainder<T, U, V>(dividends: T, divisors: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
Calculates the remainder of the elements in `dividends` divided by the the elements
in `divisors` using truncating division; single-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Parameter result: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is the integer formed by rounding `a/b` towards zero, so `abs(r) < abs(b)` and `r` has the same sign as `a`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func truncatingRemainder<U, V>(dividends: U, divisors: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Returns the remainder of the elements in `dividends` divided by the the elements in `divisors` using truncating division; double-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Returns: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is the integer formed by rounding `a/b` towards zero, so `abs(r) < abs(b)` and `r` has the same sign as `a`.
static func truncatingRemainder<U, V>(dividends: U, divisors: V) -> [Float] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Returns the remainder of the elements in `dividends` divided by the the elements in `divisors` using truncating division; single-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Returns: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is the integer formed by rounding `a/b` towards zero, so `abs(r) < abs(b)` and `r` has the same sign as `a`.
static func cos<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the cosine 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 func cos<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the cosine 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+
cos
TypeScript
static cos(vector: Array<number>): Array<number>
Swift declaration
static func cos<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the cosine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func exp<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates e raised to the power 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 func exp<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates e raised to the power 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+
exp
TypeScript
static exp(vector: Array<number>): Array<number>
Swift declaration
static func exp<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns e raised to the power of each element in `vector`, single-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func log<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the natural logarithm 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 func log<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the natural logarithm 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 14.0+
log
TypeScript
static log(vector: Array<number>): Array<number>
Swift declaration
static func log<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the natural logarithm of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func pow<T, U, V>(bases: T, exponents: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
Calculates each element in `bases` rasied to the power of the corresponding element in `exponents`, writing the result to `result`, double-precision.
- Parameter bases: Input base values.
- Parameter exponents: Input exponents.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func pow<T, U, V>(bases: T, exponents: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
Calculates each element in `bases` rasied to the power of the corresponding element in `exponents`, writing the result to `result`, single-precision.
- Parameter bases: Input base values.
- Parameter exponents: Input exponents.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func pow<U, V>(bases: U, exponents: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Returns each element in `bases` rasied to the power of the corresponding element in `exponents`, double-precision.
- Parameter bases: Input base values.
- Parameter exponents: Input exponents.
- Returns: Output values.
static func pow<U, V>(bases: U, exponents: V) -> [Float] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Returns each element in `bases` rasied to the power of the corresponding element in `exponents`, single-precision.
- Parameter bases: Input base values.
- Parameter exponents: Input exponents.
- Returns: Output values.
static func sin<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the sine 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 func sin<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the sine 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+
sin
TypeScript
static sin(vector: Array<number>): Array<number>
Swift declaration
static func sin<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the sine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func tan<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the tangent 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 func tan<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the tangent 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+
tan
TypeScript
static tan(vector: Array<number>): Array<number>
Swift declaration
static func tan<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the tangent of each element in `vector`, single-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func acos<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the arccosine 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 func acos<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the arccosine 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+
acos
TypeScript
static acos(vector: Array<number>): Array<number>
Swift declaration
static func acos<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the arccosine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func asin<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the arcsine 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 func asin<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the arcsine 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+
asin
TypeScript
static asin(vector: Array<number>): Array<number>
Swift declaration
static func asin<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the arcsine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func atan<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the arctangent 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 func atan<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the arctangent 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+
atan
TypeScript
static atan(vector: Array<number>): Array<number>
Swift declaration
static func atan<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the arctangent of each element in `vector`, single-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func ceil<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the ceiling 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 func ceil<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the ceiling 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+
ceil
TypeScript
static ceil(vector: Array<number>): Array<number>
Swift declaration
static func ceil<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the ceiling of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func cosh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the hyperbolic cosine 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 func cosh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the hyperbolic cosine 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+
cosh
TypeScript
static cosh(vector: Array<number>): Array<number>
Swift declaration
static func cosh<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the hyperbolic cosine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func exp2<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates 2 raised to the power of each element minus one 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 func exp2<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates 2 raised to the power of each element minus one 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+
exp2
TypeScript
static exp2(vector: Array<number>): Array<number>
Swift declaration
static func exp2<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns 2 raised to the power of each element minus one in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func log2<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the base two logarithm 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 func log2<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the base two logarithm 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+
log2
TypeScript
static log2(vector: Array<number>): Array<number>
Swift declaration
static func log2<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the base two logarithm of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func logb<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the unbiased exponent of each element in `vector`, writing the result to `result`, double-precision.
- Parameter _ vector: Input values.
- Parameter result: Output values.
This function calculates `floor(log2(vector))`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func logb<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the unbiased exponent of each element in `vector`, writing the result to `result`, single-precision.
- Parameter _ vector: Input values.
- Parameter result: Output values.
This function calculates `floor(log2(vector))`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static · iOS 13.0+
logb
TypeScript
static logb(vector: Array<number>): Array<number>
Swift declaration
static func logb<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the unbiased exponent of each element in `vector`, single-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func sinh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the hyperbolic sine 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 func sinh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the hyperbolic sine 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+
sinh
TypeScript
static sinh(vector: Array<number>): Array<number>
Swift declaration
static func sinh<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the hyperbolic sine of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func sqrt<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the square root 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 func sqrt<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the square root 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+
sqrt
TypeScript
static sqrt(vector: Array<number>): Array<number>
Swift declaration
static func sqrt<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the square root of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func tanh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the hyperbolic tangent 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 func tanh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the hyperbolic tangent 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+
tanh
TypeScript
static tanh(vector: Array<number>): Array<number>
Swift declaration
static func tanh<U>(_ vector: U) -> [Double] where U : AccelerateBuffer, U.Element == Double
Returns the hyperbolic tangent of each element in `vector`, double-precision.
- Parameter _ vector: Input values.
- Returns: Output values.
static func acosh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the inverse hyperbolic cosine 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 func acosh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the inverse hyperbolic cosine 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 func asinh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the inverse hyperbolic sine 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 func asinh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the inverse hyperbolic sine 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 func atan2<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 arctangent of each pair of elements in two arrays of double-precision values.
- Parameter x: The input array, _x_.
- Parameter y: The input array, _y_.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func atan2<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 arctangent of each pair of elements in two arrays of single-precision values.
- Parameter x: The input array, _x_.
- Parameter y: The input array, _y_.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func atan2<U, V>(x: U, y: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Returns the arctangent of each pair of elements in two arrays of double-precision values.
- Parameter x: The input array, _x_.
- Parameter y: The input array, _y_.
- Returns: Output values.
static func atan2<U, V>(x: U, y: V) -> [Float] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Returns the arctangent of each pair of elements in two arrays of single-precision values.
- Parameter x: The input array, _x_.
- Parameter y: The input array, _y_.
- Returns: Output values.
static func atanh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the inverse hyperbolic tangent 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 func atanh<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the inverse hyperbolic tangent 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 func cosPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the cosine of pi multiplied by 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 func cosPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the cosine of pi multiplied by 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 func expm1<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates e raised to the power of each element minus one 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 func expm1<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates e raised to the power of each element minus one 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 func floor<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the floor 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 func floor<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the floor 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 func log10<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the ten logarithm 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 func log10<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the base ten logarithm 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 func log1p<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates `log(1+x)` 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 func log1p<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates `log(1+x)` 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 func rsqrt<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the reciprocal square root 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 func rsqrt<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the reciprocal square root 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 func sinPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the sine of pi multiplied by 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 func sinPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the sine of pi multiplied by 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 func tanPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the tangent of pi multiplied by 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 func tanPi<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the tangent of pi multiplied by 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 func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Calculates the integer truncation 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 func trunc<U, V>(_ vector: U, result: inout V) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Calculates the integer truncation 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 func sincos<T, U, V>(_ vector: T, sinResult: inout U, cosResult: inout V) where T : AccelerateBuffer, U : AccelerateMutableBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
Calculates the sine and cosine of each element in `vector`, writing the results to `sinresult` and `cosresult` respectively, double-precision.
- Parameter vector: Input values.
- Parameter sinresult: Output sine values.
- Parameter cosresult: Output cosine values.
Omit the output parameters from the call. The result contains $ret and $out, with sinResult, cosResult inside $out.
static func sincos<T, U, V>(_ vector: T, sinResult: inout U, cosResult: inout V) where T : AccelerateBuffer, U : AccelerateMutableBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
Calculates the sine and cosine of each element in `vector`, writing the results to `sinresult` and `cosresult` respectively, single-precision.
- Parameter vector: Input values.
- Parameter sinresult: Output sine values.
- Parameter cosresult: Output cosine values.
Omit the output parameters from the call. The result contains $ret and $out, with sinResult, cosResult inside $out.
static func copysign<T, U, V>(magnitudes: T, signs: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
Copies the sign of each element in `signs` to the corresponding element in `magnitudes`, writing the result to `result`, double-precision.
- Parameter magnitudes: Input magnitudes.
- Parameter signs: Input signs.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func copysign<T, U, V>(magnitudes: T, signs: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
Copies the sign of each element in `signs` to the corresponding element in `magnitudes`, writing the result to `result`, single-precision.
- Parameter magnitudes: Input magnitudes.
- Parameter signs: Input signs.
- Parameter result: Output values.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func copysign<U, V>(magnitudes: U, signs: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Returns the sign of each element in `signs` to the corresponding element in `magnitudes`, double-precision.
- Parameter magnitudes: Input magnitudes.
- Parameter signs: Input signs.
- Returns: Output values.
static func copysign<U, V>(magnitudes: U, signs: V) -> [Float] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Returns the sign of each element in `signs` to the corresponding element in `magnitudes`, single-precision.
- Parameter magnitudes: Input magnitudes.
- Parameter signs: Input signs.
- Returns: Output values.
static func remainder<T, U, V>(dividends: T, divisors: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Double, U.Element == Double, V.Element == Double
Calculates the remainder after dividing each element in `dividends` by the corresponding element in `divisors`, double-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Parameter result: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is `a/b` rounded to the nearest integer, so `abs(r) <= abs(b/2)`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func remainder<T, U, V>(dividends: T, divisors: U, result: inout V) where T : AccelerateBuffer, U : AccelerateBuffer, V : AccelerateMutableBuffer, T.Element == Float, U.Element == Float, V.Element == Float
Calculates the remainder after dividing each element in `dividends` by the corresponding element in `divisors`, single-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Parameter result: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is `a/b` rounded to the nearest integer, so `abs(r) <= abs(b/2)`.
Omit the output parameters from the call. The result contains $ret and $out, with result inside $out.
static func remainder<U, V>(dividends: U, divisors: V) -> [Double] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == Double
Returns the remainder after dividing each element in `dividends` by the corresponding element in `divisors`, double-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Returns: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is `a/b` rounded to the nearest integer, so `abs(r) <= abs(b/2)`.
static func remainder<U, V>(dividends: U, divisors: V) -> [Float] where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Float
Returns the remainder after dividing each element in `dividends` by the corresponding element in `divisors`, single-precision.
- Parameter dividends: Input dividends.
- Parameter divisors: Input divisors.
- Returns: Output values.
For each corresponding `a` from `dividends` and `b` from `divisors`, the result `r` satisfies:
a = bq + r
where q is `a/b` rounded to the nearest integer, so `abs(r) <= abs(b/2)`.