File: test_all.m

package info (click to toggle)
suitesparse 1%3A7.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 254,920 kB
  • sloc: ansic: 1,134,743; cpp: 46,133; makefile: 4,875; fortran: 2,087; java: 1,826; sh: 996; ruby: 725; python: 495; asm: 371; sed: 166; awk: 44
file content (33 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function test_all (performance)
%TEST_ALL test the Factorize package (factorize, inverse, and related)
%
% If you have editted the Factorize package, type "clear classes" before
% running any tests.
%
% Example
%   test_all                % run all tests
%   test_all (0) ;          % do not run performance tests
%
% See also factorize, inverse, test_performance, test_accuracy, test_disp,
% test_errors

% Factorize, Copyright (c) 2011-2012, Timothy A Davis. All Rights Reserved.
% SPDX-License-Identifier: BSD-3-clause

if (nargin < 1)
    performance = 1 ;
end

help test_all
reset_rand ;
test_disp ;                 % test disp(F)
test_errors ;               % test error handling for invalid matrices
err1 = test_functions ;     % functionality tests
err2 = test_accuracy ;      % test accuracy on a range of problems
err3 = test_all_svd ;       % test SVD factorization
err4 = test_all_cod ;       % test COD, COD_SPARSE, and RQ factorizations
err = max ([err1 err2 err3 err4]) ;
if (performance)
    err = max (err, test_performance) ;         % performance tests
end
fprintf ('\nAll tests passed, maximum error OK: %g\n', err) ;