1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2013 - Scilab Enterprises - Sylvestre Ledru
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- Non-regression test for bug 12238 -->
10 // <-- Bugzilla URL -->
11 // http://bugzilla.scilab.org/show_bug.cgi?id=12238
13 // <-- Short Description -->
14 // [d v] = eigs(A) is broken for sparse matrices
15 // =============================================================================
16 A = sparse(rand(10,10));
19 assert_checkalmostequal(val,0,0,30*%eps);