BLAS does not provide the horizontal sum operation, as you are looking for, because it is not the operation that linear algebra libraries often need.
Many DSP libraries provide this operation; for example, on OS X and iOS, you must use the feature vDSP_sve( )provided by the Accelerate framework. Unfortunately, the available DSP libraries vary greatly from platform to platform, so we will need to learn more about which platform you are targeting.
source
share