1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2015 - Scilab Enterprises - Vincent COUVERT
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- Non-regression test for bug 13829 -->
10 // <-- Bugzilla URL -->
11 // http://bugzilla.scilab.org/show_bug.cgi?id=13829
13 // <-- Short Description -->
14 // mean and sum functions returned wrong results for hypermatrices.
16 a = matrix(1:24, 1:4);
18 ref = matrix([40 44 48 52 56 60], 1:3);
19 assert_checkequal(s, ref);
24 assert_checkequal(m, ref);