Generic Type Method

# log2(_:)

Returns the base 2 logarithm of each element in a vector of double-precision values.

## See Also

### Array-Oriented Exponential and Logarithmic Functions

`static func exp<U>(U) -> [Double]`

Returns the e, raised to the power of each element in a vector of double-precision values.

`static func exp<U>(U) -> [Float]`

Returns the e, raised to the power of each element in a vector of single-precision values.

`static func exp<U, V>(U, result: inout V)`

Calculates the e, raised to the power of each element in a vector of double-precision values.

`static func exp<U, V>(U, result: inout V)`

Calculates the e, raised to the power of each element in a vector of single-precision values.

`static func exp2<U>(U) -> [Double]`

Returns the 2, raised to the power of each element in a vector of double-precision values.

`static func exp2<U>(U) -> [Float]`

Returns the 2, raised to the power of each element in a vector of single-precision values.

`static func exp2<U, V>(U, result: inout V)`

Calculates the 2, raised to the power of each element in a vector of double-precision values.

`static func exp2<U, V>(U, result: inout V)`

Calculates the 2, raised to the power of each element in a vector of single-precision values.

`static func expm1<U>(U) -> [Double]`

Returns the eˣ-1 for each element in a vector of double-precision values.

`static func expm1<U>(U) -> [Float]`

Returns the eˣ-1 for each element in a vector of single-precision values.

`static func expm1<U, V>(U, result: inout V)`

Calculates the eˣ-1 for each element in a vector of double-precision values.

`static func expm1<U, V>(U, result: inout V)`

Calculates the eˣ-1 for each element in a vector of single-precision values.

`static func log10<U>(U) -> [Double]`

Returns the base 10 logarithm of each element in a vector of double-precision values.

`static func log10<U>(U) -> [Float]`

Returns the base 10 logarithm of each element in a vector of single-precision values.

`static func log10<U, V>(U, result: inout V)`

Calculates the base 10 logarithm of each element in a vector of double-precision values.

`static func log10<U, V>(U, result: inout V)`

Calculates the base 10 logarithm of each element in a vector of single-precision values.

`static func log2<U>(U) -> [Float]`

Returns the base 2 logarithm of each element in a vector of single-precision values.

`static func log2<U, V>(U, result: inout V)`

Calculates the base 2 logarithm of each element in a vector of double-precision values.

`static func log2<U, V>(U, result: inout V)`

Calculates the base 2 logarithm of each element in a vector of single-precision values.

`static func logb<U>(U) -> [Double]`

Returns the unbiased exponent of each element in a vector of double-precision values.

`static func logb<U>(U) -> [Float]`

Returns the unbiased exponent of each element in a vector of double-precision values.

`static func logb<U, V>(U, result: inout V)`

Calculates the unbiased exponent of each element in a vector of double-precision values.

`static func logb<U, V>(U, result: inout V)`

Calculates the unbiased exponent of each element in a vector of single-precision values.

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

Calculates e raised to the power of each element in an array of double-precision values.

`func vvexpf(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates e raised to the power of each element in an array of single-precision values.

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

Calculates 2 raised to the power of each element in an array of double-precision values.

`func vvexp2f(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates 2 raised to the power of each element in an array of single-precision values.

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

Calculates eˣ-1 for each element in an array of double-precision values.

`func vvexpm1f(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates eˣ-1 for each element in an array of single-precision values.

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

Calculates the natural logarithm for each element in an array of double-precision values.

`func vvlogf(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates the natural logarithm for each element in an array of single-precision values.

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

Calculates log(1+x) for each element in an array of double-precision values.

`func vvlog1pf(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates log(1+x) for each element in an array of single-precision values.

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

Calculates the base 2 logarithm of each element in an array of double-precision values.

`func vvlog2f(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates the base 2 logarithm of each element in an array of single-precision values.

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

Calculates the base 10 logarithm of each element in an array of double-precision values.

`func vvlog10f(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates the base 10 logarithm of each element in an array of single-precision values.

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

Calculates the unbiased exponent of each element in an array of double-precision values.

`func vvlogbf(UnsafeMutablePointer<Float>, UnsafePointer<Float>, UnsafePointer<Int32>)`

Calculates the unbiased exponent of each element in an array of single-precision values.