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:
899a10a
)
whoops!
author
stevenj
<stevenj@alum.mit.edu>
Thu, 6 Sep 2007 17:42:41 +0000
(13:42 -0400)
committer
stevenj
<stevenj@alum.mit.edu>
Thu, 6 Sep 2007 17:42:41 +0000
(13:42 -0400)
darcs-hash:
20070906174241
-c8de0-
234a11916f87017de65a60b562c8f2cfa7dae4af
.gz
util/sobolseq.c
patch
|
blob
|
history
diff --git
a/util/sobolseq.c
b/util/sobolseq.c
index b72d79274d2c3b7c2c634eae0d6f669f5ef8d254..e390ac588faaafebe4ff867d2851ed947465f7fb 100644
(file)
--- a/
util/sobolseq.c
+++ b/
util/sobolseq.c
@@
-100,9
+100,9
@@
static int sobol_gen(soboldata *sd, double *x)
{
unsigned c, b, i, sdim;
- if (
c == 4294967295U) return 0; /* c
== 2^32 - 1 ... we would
- need to switch to a 64-bit version
- to generate more terms. */
+ if (
sd->n == 4294967295U) return 0; /* n
== 2^32 - 1 ... we would
+
need to switch to a 64-bit version
+
to generate more terms. */
c = rightzero32(sd->n++);
sdim = sd->sdim;
for (i = 0; i < sdim; ++i) {