⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 Matrix Iteration Methods. Matlab Implementation.
💻
字号:
============= README file for testing the Iterative Templates ==================Version 1.1 August, 2006.The directory in which this README file is found contains the MATLAB versions of the algorithms discussed in the book ``Templates for the Solution of Linear Systems: Building Blocks for Iterative Methods'', by Richard Barrett, Michael Berry, Tony F. Chan, James Demmel, June Donato, Jack Dongarra, Victor Eijkhout,Roldan Pozo, Charles Romine, and Henk Van der Vorst, SIAM Publication, 1993.  In addition, there are test routines that a user can execute to verify that the routines are working. ================================================================================Test routines have been included with the templates algorithms. The user should run tester.m to make sure that the code has been successfully downloaded and unpacked. Further, tests for individual algorithmsare included in this release for convenience. These test functions arenamed test_<algorithm>.m. In the directory where the tar file has been ``untarred'', start upMATLAB. In MATLAB type "tester".  ( The tests require only a few secondson an old Sparc Ultra4 workstation.) The test functions generate a few small, easy to solve linear systems, whichthen are solved by appropriate algorithms. During execution the following output should print to the screen:test =     1test =     2     :     :test =     6TESTING =                   COMPLETERESULTS =             ALL TESTS PASSEDTwo problems can occur, illustrated below using CG:(i)     cg failed to converge for        test =                 3        error =                13.234This means that the Conjugate Gradient algorithm failed to find theapproximate solution to the set tolerance of eps*1000. After themaximum number of iterations, the normalized residule,called ``error'' is 13.234.(ii) cg failed for initial guess = solutionOne of the tests inputs the exact solution as the initial guess(as computed using MATLABs direct method x = A \ b.) Each algorithmshould recognize this and immediately return. If there is a problem,the following message will print to the screen:     cg failed for initial guess = solutionThese errors will be reported as they occur. Finally, an overallreport for each suspect algorithm will print to screen:     cg failed test (failed to converge)     cg failed test (initial guess = solution error)If an error occurs, the user may be able to track down the source of theproblem by testing the algorithm individually. ================================================================================Files:================================================================================The basic template routines are:1)  cg.m        Conjugate Gradient method2)  bicg.m      Bi-conjugate Gradient method3)  cgs.m       Conjugate Gradient squared method4)  bicgstab.m  Bi-conjugate Gradient stabilized method5)  gmres.m     Generalized Minimal Residual method6)  qmr.m       Quasi-Minimal residual method7)  cheby.m     Chebyshev method8)  jacobi.m    Jacobi method9)  sor.m       Successive Over-Relaxation methodUtility routines:1) rotmat.m: Computes the elements for the Given rotation matrix used by gmres.m.2) split.m: Matrix splitting functionality for jacobi.m and sor.m.Test routines:1) tester.m   main routine2) matgen.m   Driver routine for generating the test matrices.    The test matrices are generated by:       i) lehmer.m    ii) makefish.m   iii) wathen.m   Descriptions of the test matrices are found in these files.3) test_<algorithm>.m: Test functions for individual algorithms.      i) test_bicg.m     ii) test_bicgstab.m    iii) test_cg.m     iv) test_cgs.m      v) test_cheby.m     vi) test_gmres.m    vii) test_jacobi.m   viii) test_qmr.m     ix) test_sor.mTests:1. Poisson problem, on a 4x4 grid, so matrix is dimension 16.2. Wathen matrix: consistent mass matrix, dimension 40.3. Wathen matrix: consistent mass matrix, diagonally scaled, dimension 40.4. Lehmer matrix, dimension 5.5. Lehmer matrix, dimension 10.6. Poisson problem, on a 4x4 grid, so matrix is dimension 16. However,     exact solution is input as initial guess, which should be immediately     detected by algorithm.=== End README.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -