# HG changeset patch # User Richard Zweig # Date 1502563832 25200 # Node ID b590c674e27df1da7b8cac3e7f291d7266e19e67 # Parent 5621aae74d1a7212ef0b661d518d6629501c2d82 Add BIST test for ichol_t (bug #51736). * __ichol__.cc: Add BIST test. Remove empty BIST test used to mark file. diff -r 5621aae74d1a -r b590c674e27d libinterp/corefcn/__ichol__.cc --- a/libinterp/corefcn/__ichol__.cc Sat Aug 12 11:29:36 2017 -0700 +++ b/libinterp/corefcn/__ichol__.cc Sat Aug 12 11:50:32 2017 -0700 @@ -453,6 +453,14 @@ } /* -## No test needed for internal helper function. -%!assert (1) +%!test <51736> +%! k = 4; +%! n = 2^k; +%! Afull = diag (ones (n,1)) / ... +%! 2+triu ([zeros(n,2), [n.^-[1;1;2]*ones(1,n-2);zeros(n-3,n-2)]], 1); +%! A = sparse (Afull + Afull.'); +%! opts.type = "ict"; +%! opts.droptol = 0; +%! L = ichol (A, opts); +%! assert (norm (A - L*L.'), 0, 2*eps); */