11 2012 档案
摘要:为了方便数据处理 通常需要将数据提取用别的软件处理 这就涉及到将程序运行过程中产生的数据存取出来,以下是C++实现其过程View Code #include<iostream>#include <fstream>using namespace std;int main(){ std::ofstream out1; out1.open("F:\\fluid\\test_for_CVIBM\\test1.txt"); std::ofstream out; out.open("F:\\fluid\\test_for_CVIBM\\test2.tx
阅读全文
摘要:总体的目标:求解线性方程组Ax=b求解的方法为 GMRES参考文献:C++和面向对象数值计算 杨道奇著 王晓鸽等译 到作者主页上下载代码 找出GMRES的代码由于作者采用Linux下编译,先改编成能在windows下可使用的包含三个文件 分别为 matvec.h matvec.cpp matvecmain.cppmatvec.h的代码如下:View Code /******************** matvec.h *************************** * This is a template library header file for manipulating an
阅读全文

浙公网安备 33010602011771号