libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd utility.h


From: Georg Klein
Subject: [libcvd-members] libcvd/cvd utility.h
Date: Tue, 21 Oct 2008 15:04:59 +0000

CVSROOT:        /sources/libcvd
Module name:    libcvd
Changes by:     Georg Klein <georgklein>        08/10/21 15:04:59

Modified files:
        cvd            : utility.h 

Log message:
        Fix gaussian convolution for images of vectors. 
        I suspect that instead of `float' it should actually be another template
        parameter `class C' but that might end up breaking the SSE-optimised
        double,double,float version?

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/utility.h?cvsroot=libcvd&r1=1.7&r2=1.8

Patches:
Index: utility.h
===================================================================
RCS file: /sources/libcvd/libcvd/cvd/utility.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- utility.h   12 Jun 2008 13:04:13 -0000      1.7
+++ utility.h   21 Oct 2008 15:04:59 -0000      1.8
@@ -107,7 +107,7 @@
   /// Compute pointwise (a_i + b_i) * c and add to out_i
   /// This is accelerated using SIMD for some platforms and data types 
(alignment is checked at runtime)
   /// Do not specify template parameters explicitly so that overloading can 
choose the right implementation
-  template <class A, class B> inline void add_multiple_of_sum(const A* a, 
const A* b, const A& c,  B* out, size_t count)
+  template <class A, class B> inline void add_multiple_of_sum(const A* a, 
const A* b, const float& c,  B* out, size_t count)
   {
       while (count--)
          *(out++) += (*(a++) + *(b++)) * c;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]