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 // =============================================================================
7 // <-- Non-regression test for bug 13829 -->
9 // <-- Bugzilla URL -->
10 // http://bugzilla.scilab.org/show_bug.cgi?id=13829
12 // <-- Short Description -->
13 // mean and sum functions returned wrong results for hypermatrices.
14 a = matrix(1:24, 1:4);
16 ref = matrix([40 44 48 52 56 60], 1:3);
17 assert_checkequal(s, ref);
21 assert_checkequal(m, ref);