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

📄 rnsymvsl.h

📁 ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.
💻 H
字号:
/*   ARPACK++ v1.0 8/1/1997   c++ interface to ARPACK code.   MODULE RNSymVSl.h   Template functions that exemplify how to print information    about the singular value decomposition obtained using the   ARrcNonSymStdEig function.   ARPACK Authors      Richard Lehoucq      Danny Sorensen      Chao Yang      Dept. of Computational & Applied Mathematics      Rice University      Houston, Texas*/#ifndef RNSYMVSL_H#define RNSYMVSL_H#include <math.h>#include "blas1c.h"#include "lapackc.h"#include "matprod.h"#include "arrsnsym.h"template<class FLOAT>void Solution(ARrcNonSymStdEig<FLOAT> &Prob)/*  Prints singular values and singular vectors of nonsymmetric   real matrices on standard "cout" stream.*/{  int  i, nconv;  nconv = Prob.ConvergedEigenvalues();  cout << endl << endl << "Testing ARPACK++ class ARrcNonSymStdEig \n";  cout << "Singular value decomposition problem: (A'*A)*x - lambda*x" << endl;  cout << "Dimension of the system              : " << Prob.GetN()   << endl;  cout << "Number of 'requested' singular values: " << Prob.GetNev() << endl;  cout << "Number of 'converged' singular values: " << nconv         << endl;  cout << "Number of Arnoldi vectors generated  : " << Prob.GetNcv() << endl;  cout << endl;  if (Prob.EigenvaluesFound()) {    // Printing singular values.    cout << "Singular values:" << endl;    for (i=0; i<nconv; i++) {      cout << "  sigma[" << (i+1) << "]: ";      cout << sqrt(Prob.EigenvalueReal(i)) << endl;    }    cout << endl;  }} // Solution#endif // RNSYMVSL_H

⌨️ 快捷键说明

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