Fix slowdown in VEGAS introduced by previous commits. - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorLesley De Cruz <lesley.decruz+git@gmail.com>2012年11月15日 21:35:23 +0100
committerLesley De Cruz <lesley.decruz+git@gmail.com>2012年11月15日 21:35:23 +0100
commit25f7d93f34aa58bf6c83b174a3cc61b4ae483bfd (patch)
treed87d05ded36f1fc00ebf49688ac89a361d398aa9
parent8dd3ec8d3e5b19aab99207ef3440d32bbf89c126 (diff)
downloadgsl-shell-25f7d93f34aa58bf6c83b174a3cc61b4ae483bfd.tar.gz
Fix slowdown in VEGAS introduced by previous commits.
Diffstat
-rw-r--r--templates/vegas-defs.lua.in 6
1 files changed, 3 insertions, 3 deletions
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
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月20日 11:54:13 +0000

AltStyle によって変換されたページ (->オリジナル) /