author | Lesley De Cruz <lesley.decruz+git@gmail.com> | 2012年11月15日 21:35:23 +0100 |
---|---|---|
committer | Lesley De Cruz <lesley.decruz+git@gmail.com> | 2012年11月15日 21:35:23 +0100 |
commit | 25f7d93f34aa58bf6c83b174a3cc61b4ae483bfd (patch) | |
tree | d87d05ded36f1fc00ebf49688ac89a361d398aa9 | |
parent | 8dd3ec8d3e5b19aab99207ef3440d32bbf89c126 (diff) | |
download | gsl-shell-25f7d93f34aa58bf6c83b174a3cc61b4ae483bfd.tar.gz |
-rw-r--r-- | templates/vegas-defs.lua.in | 6 |
diff --git a/templates/vegas-defs.lua.in b/templates/vegas-defs.lua.in index afce303a..9bd24b99 100644 --- a/templates/vegas-defs.lua.in +++ b/templates/vegas-defs.lua.in @@ -139,9 +139,9 @@ end -- keep track of the squared function value in each bin -- to later refine the grid local function accumulate_distribution(fsq) -# for i=0, N-1 do - d[$(i)][bin[$(i)]] = d[$(i)][bin[$(i)]] + fsq -# end + for i=0, $(N-1) do + d[i][bin[i]] = d[i][bin[i]] + fsq + end end -- clear the results, but keep the grid |