toon-members
[Top][All Lists]
Advanced

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

[Toon-members] TooN/optimization downhill_simplex.h


From: Edward Rosten
Subject: [Toon-members] TooN/optimization downhill_simplex.h
Date: Wed, 21 Oct 2009 11:20:38 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Edward Rosten <edrosten>        09/10/21 11:20:38

Modified files:
        optimization   : downhill_simplex.h 

Log message:
        Fix bug reported by Susan Cox.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/optimization/downhill_simplex.h?cvsroot=toon&r1=1.6&r2=1.7

Patches:
Index: downhill_simplex.h
===================================================================
RCS file: /cvsroot/toon/TooN/optimization/downhill_simplex.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- downhill_simplex.h  27 May 2009 10:50:32 -0000      1.6
+++ downhill_simplex.h  21 Oct 2009 11:20:38 -0000      1.7
@@ -161,13 +161,13 @@
                ///Get the index of the best vertex
                int get_best() const 
                {
-                       return min_element(&values[0], &values[0] + 
values.size()) - &values[0];
+                       return std::min_element(&values[0], &values[0] + 
values.size()) - &values[0];
                }
                
                ///Get the index of the worst vertex
                int get_worst() const 
                {
-                       return max_element(&values[0], &values[0] + 
values.size()) - &values[0];
+                       return std::max_element(&values[0], &values[0] + 
values.size()) - &values[0];
                }
 
                ///Perform one iteration of the downhill Simplex algorithm




reply via email to

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