gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
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日 15:02:31 +0000

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