No BSD License
-
...
TFQMR solver for linear systems
-
...
Preconditioned Conjugate-Gradient solver
-
...
Krylov linear equation solver for use in nsola
-
...
Forward difference Bi-CGSTAB solver for use in nsola
-
...
Bi-CGSTAB solver for linear systems
-
...
Forward difference TFQMR solver for use in nsola
-
[l, u] =diffjac(x, f, f0)
compute a forward difference Jacobian f'(x), return lu factors
-
brsol(x,f,tol, parms)
Broyden's Method solver, locally convergent
-
brsola(x,f,tol, parms)
Broyden's Method solver, globally convergent
-
dirder(x,w,f,f0)
Finite difference directional derivative
-
fdgmres(f0, f, xc, params, xi...
GMRES linear equation solver for use in Newton-GMRES solver
-
fish2d(f)
Poisson solver in 2D based on matlab fft
-
gmres(x0, b, atv, params)
GMRES linear equation solver
-
gmresb(x0, b, atv, params)
% GMRES linear equation solver, brute-force approach
-
nsol(x,f,tol,parms)
Newton solver, locally convergent
-
nsola(x,f,tol, parms)
Newton-Krylov solver, globally convergent
-
nsolgm(x,f,tol, parms)
Newton-GMRES locally convergent solver for f(x) = 0
-
parab3p(lambdac, lambdam, ff0...
Apply three-point safeguarded parabolic model for a line search.
-
u=isintv(z)
-
u=sintv(z)
-
vrot=givapp(c,s,vin,k)
Apply a sequence of k Givens rotations, used within gmres codes
-
View all files
|
|
| [l, u] =diffjac(x, f, f0) |
function [l, u] =diffjac(x, f, f0)
% compute a forward difference Jacobian f'(x), return lu factors
%
% uses dirder.m to compute the columns
%
% C. T. Kelley, November 25, 1993
%
% This code comes with no guarantee or warranty of any kind.
%
%
% inputs:
% x, f = point and function
% f0 = f(x), preevaluated
%
n=length(x);
for j=1:n
zz=zeros(n,1);
zz(j)=1;
jac(:,j)=dirder(x,zz,f,f0);
end
[l, u] = lu(jac);
|
|
Contact us at files@mathworks.com