1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2013 - Scilab Enterprises - Paul Bignier
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- CLI SHELL MODE -->
9 // <-- ENGLISH IMPOSED -->
10 // <-- NO CHECK REF -->
12 // <-- Non-regression test for bug 10271 -->
14 // <-- Bugzilla URL -->
15 // http://bugzilla.scilab.org/10271
17 // <-- Short Description -->
18 // ordmmd now checks the consistency of the third input argument with the
19 // input matrix defined by the two first input arguments.
21 A = ReadHBSparse(SCI+"/modules/umfpack/demos/ex14.rua");
23 [xadj, iadj, val] = sp2adj(A);
24 n = floor(size(A, "r")/2);
26 refMsg = " The provided ""n"" does not correspond to the matrix defined by xadj and iadj";
27 assert_checkerror("[perm, invp, nofsub] = ordmmd(xadj, iadj, n);", refMsg);