1function umfpack_report (Control, Info)
2%UMFPACK_REPORT prints optional control settings and statistics
3%
4%   Example:
5%       umfpack_report (Control, Info) ;
6%
7% Prints the current Control settings for umfpack, and the statistical
8% information returned by umfpack in the Info array.  If Control is
9% an empty matrix, then the default control settings are printed.
10%
11% Control and Info are structs.
12%
13% Alternative usages:
14%
15%       umfpack_report ([ ], Info) ;    print the default control parameters
16%                                       and the Info array.
17%       umfpack_report (Control) ;      print the control parameters only.
18%       umfpack_report ;                print the default control parameters
19%
20% See also umfpack, umfpack_make, umfpack_details,
21% umfpack_demo, and umfpack_simple.
22
23% Copyright 1995-2007 by Timothy A. Davis.
24
25%-------------------------------------------------------------------------------
26% get inputs, use defaults if input arguments not present
27%-------------------------------------------------------------------------------
28
29% The contents of Control and Info are defined in umfpack.h
30if (nargin < 1 || isempty (Control))
31    Control = umfpack ;
32end
33fprintf ('\nUMFPACK Control:\n') ;
34disp (Control) ;
35if (nargin > 1 && ~isempty (Info))
36    fprintf ('\nUMFPACK Info:\n') ;
37    disp (Info) ;
38end
39
40