Function

vvpowf(_:_:_:_:)

Raises each element in an array to the power of the corresponding element in a second array of single-precision values.

Parameters

`parameter 1`

The output array, z.

`parameter 2`

The exponent input array, y.

`parameter 3`

The base input array, x.

`parameter 4`

The number of elements in the arrays.

Discussion

The following code shows an example of using `vvpowf(_:_:_:_:)`:

The following special values of `x` and `y` produce the given value of `z`:

Array-Oriented Power Functions

`static func pow<U, V>(bases: U, exponents: V) -> [Double]`

Returns each double-precision element in the bases vector, raised to the power of the corresponding element in the exponents vector.

`static func pow<U, V>(bases: U, exponents: V) -> [Float]`

Returns each single-precision element in the bases vector, raised to the power of the corresponding element in the exponents vector.

`static func pow<T, U, V>(bases: T, exponents: U, result: inout V)`

Calculates each double-precision element in the bases vector, raised to the power of the corresponding element in the exponents vector.

`static func pow<T, U, V>(bases: T, exponents: U, result: inout V)`

Calculates each single-precision element in the bases vector, raised to the power of the corresponding element in the exponents vector.

`func vvpow(UnsafeMutablePointer<Double>, UnsafePointer<Double>, UnsafePointer<Double>, UnsafePointer<Int32>)`

Raises each element in an array to the power of the corresponding element in a second array of double-precision values.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.