Why does Accelerate appear so out of place in terms of naming style?

Reading a solution given in a book to adding the elements of an input array of doubles, an example is given with Accelerate as

func challenge52c(numbers: [Double]) -> Double {
    var result: Double = 0.0
    vDSP_sveD(numbers, 1, &result, vDSP_Length(numbers.count))
    return result
}

I can understand why Accelerate API's don't adhere to Swift API design guidelines, why is it that they don't seem to use Cocoa guidelines either? Are there other conventions or precedents that I'm missing?

Are there other conventions or precedents that I'm missing?

Yes.

Many Accelerate APIs use conventions from standard libraries that originate from the early days of computing. For example, BLAS started out as a Fortran library in 1979, and thus predates the Mac by 5 years.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

FYI, Apple provides a Swift overlay to most of the vDSP functions, for example sum for vDSP_sveD. The list is available at https://developer.apple.com/documentation/accelerate/vdsp-snv

Why does Accelerate appear so out of place in terms of naming style?
 
 
Q