diff options
Diffstat (limited to 'useful_functions.m')
-rw-r--r-- | useful_functions.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/useful_functions.m b/useful_functions.m index 913b505..b7156cf 100644 --- a/useful_functions.m +++ b/useful_functions.m @@ -2,10 +2,7 @@ function ret=decay_total(g_decay,i) % calculate total decay for particular level taking in account all branches - ret=0; - for k=1:size(g_decay)(1) - ret=ret+g_decay(i,k); - endfor + ret=sum(g_decay(i,:)); endfunction function ret=kron_delta(i,j) |