Skip to content
Snippets Groups Projects
Commit ada8ace1 authored by Eric Wait's avatar Eric Wait
Browse files

Sum array returns size_t for int types

parent d0f551ff
No related branches found
No related tags found
No related merge requests found
......@@ -700,39 +700,39 @@ double* cReduceImage(const double* imageIn, Vec<size_t> dims, Vec<size_t> reduct
}
double cSumArray(const unsigned char* imageIn, size_t n, int device/*=0*/)
size_t cSumArray(const unsigned char* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<size_t>(imageIn,n,device);
}
double cSumArray(const unsigned short* imageIn, size_t n, int device/*=0*/)
size_t cSumArray(const unsigned short* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<size_t>(imageIn,n,device);
}
double cSumArray(const short* imageIn, size_t n, int device/*=0*/)
size_t cSumArray(const short* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<size_t>(imageIn,n,device);
}
double cSumArray(const unsigned int* imageIn, size_t n, int device/*=0*/)
size_t cSumArray(const unsigned int* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<size_t>(imageIn,n,device);
}
double cSumArray(const int* imageIn, size_t n, int device/*=0*/)
size_t cSumArray(const int* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<size_t>(imageIn,n,device);
}
double cSumArray(const float* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<double>(imageIn,n,device);
}
double cSumArray(const double* imageIn, size_t n, int device/*=0*/)
{
return sumArray(imageIn,n,device);
return sumArray<double>(imageIn,n,device);
}
......
......@@ -156,11 +156,11 @@ int* cReduceImage(const int* imageIn, Vec<size_t> dims, Vec<size_t> reductions,
float* cReduceImage(const float* imageIn, Vec<size_t> dims, Vec<size_t> reductions, Vec<size_t>& reducedDims, ReductionMethods method=REDUC_MEAN, float** imageOut=NULL, int device=0);
double* cReduceImage(const double* imageIn, Vec<size_t> dims, Vec<size_t> reductions, Vec<size_t>& reducedDims, ReductionMethods method=REDUC_MEAN, double** imageOut=NULL, int device=0);
double cSumArray(const unsigned char* imageIn, size_t n, int device=0);
double cSumArray(const unsigned short* imageIn, size_t n, int device=0);
double cSumArray(const short* imageIn, size_t n, int device=0);
double cSumArray(const unsigned int* imageIn, size_t n, int device=0);
double cSumArray(const int* imageIn, size_t n, int device=0);
size_t cSumArray(const unsigned char* imageIn, size_t n, int device=0);
size_t cSumArray(const unsigned short* imageIn, size_t n, int device=0);
size_t cSumArray(const short* imageIn, size_t n, int device=0);
size_t cSumArray(const unsigned int* imageIn, size_t n, int device=0);
size_t cSumArray(const int* imageIn, size_t n, int device=0);
double cSumArray(const float* imageIn, size_t n, int device=0);
double cSumArray(const double* imageIn, size_t n, int device=0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment