Skip to content
Snippets Groups Projects
Commit e083494f authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Maths: fixed small recursion bug

parent a206b77a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ function square_norm = gtMathsSquareNorm(x) ...@@ -5,7 +5,7 @@ function square_norm = gtMathsSquareNorm(x)
if (iscell(x)) if (iscell(x))
square_norm = 0; square_norm = 0;
for n = 1:numel(x) for n = 1:numel(x)
square_norm = square_norm + gtMathsSquareNorm(x); square_norm = square_norm + gtMathsSquareNorm(x{n});
end end
else else
square_norm = gtMathsSumNDVol(x .* x); square_norm = gtMathsSumNDVol(x .* x);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment