[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load o
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool' |
Date: |
Wed, 28 Mar 2018 19:14:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #1, bug #53507 (project octave):
There aren't that many tests in symbfact.cc. With the version you build that
has -fsanitize enabled, could you just run the tests one by one in a terminal
window and see which one is failing?
%!testif HAVE_CHOLMOD
%! A = sparse (magic (3));
%! [count, h, parent, post, r] = symbfact (A);
%! assert (count, [3; 2; 1]);
%! assert (h, 3);
%! assert (parent, [2; 3; 0]);
%! assert (r, sparse (triu (true (3))));
%!testif HAVE_CHOLMOD
%! ## Test MODE "lower"
%! A = sparse (magic (3));
%! [~, ~, ~, ~, l] = symbfact (A, "sym", "lower");
%! assert (l, sparse (tril (true (3))));
%!testif HAVE_CHOLMOD <*42587>
%! ## singular matrix
%! A = sparse ([1 0 8;0 1 8;8 8 1]);
%! [count, h, parent, post, r] = symbfact (A);
## Test input validation
%!testif HAVE_CHOLMOD
%! fail ("symbfact ()");
%! fail ("symbfact (1,2,3,4)");
%! fail ("symbfact ({1})", "wrong type argument 'cell'");
%! fail ("symbfact (sparse (1), {1})", "TYP must be a string");
%! fail ("symbfact (sparse (1), 'foobar')", 'unrecognized TYP "foobar"');
%! fail ("symbfact (sparse (1), 'sym', {'L'})", "MODE must be a string");
%! fail ('symbfact (sparse (1), "sym", "foobar")', 'unrecognized MODE
"foobar"');
%! fail ("symbfact (sparse ([1, 2; 3, 4; 5, 6]))", "S must be a square
matrix");
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53507>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Dmitri A. Sergatskov, 2018/03/28
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool',
Rik <=
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Dmitri A. Sergatskov, 2018/03/28
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Dmitri A. Sergatskov, 2018/03/28
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Dmitri A. Sergatskov, 2018/03/28
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Rik, 2018/03/29
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Mike Miller, 2018/03/29
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Rik, 2018/03/29
- [Octave-bug-tracker] [bug #53507] Sparse.h:491:57: runtime error: load of value 176, which is not a valid value for type 'bool', Rik, 2018/03/29