chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d88758
)
whoops!
author
stevenj
<stevenj@alum.mit.edu>
Wed, 29 Aug 2007 05:26:15 +0000
(
01:26
-0400)
committer
stevenj
<stevenj@alum.mit.edu>
Wed, 29 Aug 2007 05:26:15 +0000
(
01:26
-0400)
darcs-hash:
20070829052615
-c8de0-
fa4b9d4c70043d41c0c6f2325ea01012c299bb50
.gz
cdirect/cdirect.c
patch
|
blob
|
history
diff --git
a/cdirect/cdirect.c
b/cdirect/cdirect.c
index 612aea28f0f928df7f6350d9b5c119259a55c060..35e5f01bfeb1337cb81979e908cc5d5be85eee26 100644
(file)
--- a/
cdirect/cdirect.c
+++ b/
cdirect/cdirect.c
@@
-267,7
+267,7
@@
static int convex_hull(rb_tree *t, double **hull)
/* performance hack: most of the points in DIRECT lie along
vertical lines at a few x values, and we can exploit this */
if (nhull && k[0] == hull[nhull - 1][0]) { /* x == previous x */
- if (k[1]
==
hull[nhull - 1][1]) {
+ if (k[1]
>
hull[nhull - 1][1]) {
double kshift[2];
/* because of the round to float in rect_diameter, above,
it shouldn't be possible for two diameters (x values)