/usr/share/octave/site/m/sundialsTB/kinsol/KINGetStats.m is in octave-sundials 2.5.0-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 34 35 36 37 38 39 40 41 42 43 44 | function [si, status] = KINGetStats()
%KINGetStats returns statistics for the main KINSOL solver and the linear
%solver used.
%
% Usage: STATS = KINGetStats
%
%Fields in the structure STATS
%
%o nfe - total number evaluations of the nonlinear system function SYSFUN
%o nni - total number of nonlinear iterations
%o nbcf - total number of beta-condition failures
%o nbops - total number of backtrack operations (step length adjustments)
% performed by the line search algorithm
%o fnorm - scaled norm of the nonlinear system function f(y) evaluated at the
% current iterate: ||fscale*f(y)||_L2
%o step - scaled norm (or length) of the step used during the previous
% iteration: ||uscale*p||_L2
%o LSInfo - structure with linear solver statistics
%
%The structure LSinfo has different fields, depending on the linear solver used.
%
% Fields in LSinfo for the 'Dense' linear solver
%
%o name - 'Dense'
%o njeD - number of Jacobian evaluations
%o nfeD - number of right-hand side function evaluations for difference-quotient
% Jacobian approximation
%
% Fields in LSinfo for the 'GMRES' or 'BiCGStab' linear solver
%
%o name - 'GMRES' or 'BiCGStab'
%o nli - number of linear solver iterations
%o npe - number of preconditioner setups
%o nps - number of preconditioner solve function calls
%o ncfl - number of linear system convergence test failures
%
% Radu Serban <radu@llnl.gov>
% Copyright (c) 2005, The Regents of the University of California.
% $Revision: 1.2 $Date: 2007/12/05 21:58:19 $
mode = 3;
[si, status] = kim(mode);
|