Difference between revisions of "Arnoldi.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:arnoldi.m}} __NOTOC__ Arnoldi procedure for the creation of an orthonormal Krylov basis from repeated action by an operator on a vector. The procedure is numeri...")
 
(See also)
Line 24: Line 24:
  
 
==See also==
 
==See also==
[[Kernel_utilities#Numerical_infrastructure]]
+
[[Kernel_utilities#Numerical_infrastructure|Numerical infrastructure]]
  
  
 
''Version 2.7, authors: [[Ilya Kuprov]]''
 
''Version 2.7, authors: [[Ilya Kuprov]]''

Revision as of 14:54, 19 October 2022

Arnoldi procedure for the creation of an orthonormal Krylov basis from repeated action by an operator on a vector. The procedure is numerically unstable and must be used with caution.

Syntax

    [V,H]=arnoldi(Op,v0,niter)

Arguments

   Op     - function handle taking in a column vector 
            and returning another column vector

   v0     - starting vector of the Arnoldi process

   nsteps - number of iterations to take; the Krylov
            subspace will be nsteps+1 dimensional

Outputs

   V - a matrix containing the orthonormal basis vec-
       tors of the Krylov subspace in columns
   H - extended Hessenberg matrix

See also

Numerical infrastructure


Version 2.7, authors: Ilya Kuprov