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

📄 bicg_test.cpp

📁 矩阵运算源码最新版本
💻 CPP
字号:
#include <boost/numeric/mtl/mtl.hpp>#include <boost/numeric/itl/bicgstab.hpp>#include <boost/numeric/itl/itl.hpp>using namespace mtl;using namespace itl;int main(){  // For a more realistic example set size to 1000 or larger  const int size = 100, N = size * size;  compressed2D<double> A(N, N);  matrix::laplacian_setup(A, size, size);  dense_vector<double> x(N, 1.0), b(N);  b = A * x;  x= 0;  noisy_iteration<double> iter(b, N, 1.e-6);  bicgstab(A, x, b, iter);  return 0;}

⌨️ 快捷键说明

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