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

📄 dp1d_fps.cc

📁 Flens库-一个在C++的矩阵运算库
💻 CC
字号:
#include <poisson_solver/flens_impl.h>#include <dirichlet_poisson.h>using namespace flens;using namespace std;typedef DirichletPoisson1D MatType;typedef GridVector1D       VecType;typedef GaussSeidel<MatType, VecType>       Smoother;typedef FastPoissonSolver<MatType, VecType> DS;typedef MultiGrid<MatType, VecType, Restriction, Prolongation, Smoother, DS>  MG;intmain(){    int l = 10;    int rh = (1<<l);    MatType A(rh);    VecType f(rh), r(rh), u(rh), solution(rh);    problem3(f, u, solution);    DS ds(A, f, u);    errorStat(0, A, f, u, solution);    ds.solve();    errorStat(1, A, f, u, solution);}

⌨️ 快捷键说明

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