#ifndef HGL_Primary_Mathematics_INCLUDE #define HGL_Primary_Mathematics_INCLUDE namespace hgl { /** * 求一批数的合 */ template const T sum(const T *data,const int count) { T result=0; for(int i=0;i const R sum(const T *data,const int count) { R result=0; for(int i=0;i