How to compute the sum of the values of elements in a vector using cblas functions?
问题 I need to sum all the elements of a matrix in caffe, But as I noticed, the caffe wrapper of the cblas functions ( 'math_functions.hpp' & 'math_functions.cpp' ) is using cblas_sasum function as caffe_cpu_asum that computes the sum of the absolute values of elements in a vector. Since I'm a newbie in cblas, I tried to find a suitable function to get rid of absolute there, but it seems that there is no function with that property in cblas. Any suggestion? 回答1: There is a way to do so using cblas