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:
f054d7e
)
bug fix in Gablonsky measure for cdirect
author
stevenj
<stevenj@alum.mit.edu>
Sun, 26 Aug 2007 20:36:25 +0000
(16:36 -0400)
committer
stevenj
<stevenj@alum.mit.edu>
Sun, 26 Aug 2007 20:36:25 +0000
(16:36 -0400)
darcs-hash:
20070826203625
-c8de0-
e0701d1fb83a9aacfcf1101042106fb22b7c85a2
.gz
cdirect/cdirect.c
patch
|
blob
|
history
diff --git
a/cdirect/cdirect.c
b/cdirect/cdirect.c
index 5b697aba7f05cd57d5fe820aefa048a6e1f6c9d5..51e630c9f980dcdcbe358536aba52579fb8ffca0 100644
(file)
--- a/
cdirect/cdirect.c
+++ b/
cdirect/cdirect.c
@@
-59,7
+59,7
@@
static double rect_diameter(int n, const double *w, const params *p)
for (i = 0; i < n; ++i)
if (w[i] > maxw)
maxw = w[i];
- return
w[i]
* 0.5; /* half-width of longest side */
+ return
maxw
* 0.5; /* half-width of longest side */
}
}