下面的例子来自于:http://qtk.googlecode.com/svn/trunk/test/mkl_fgmres_test/mkl_fgmres_test.cpp 以下是代码 // mkl_fgmres_test.cpp : Defines the entry point for the console application. // #include "stdafx.h" /*--------------------------------------------------------------------------- ...
我一般不用矩阵求逆求解线性方程组,因为耗时太多,为了研究波前算法,搜了一个,修改了一下,放在这里,方便用到的朋友。另外还在后面贴出了全选主元【行列的都包括】的高斯-约当消去回带法的代码。 //------------------------------------------------------------- int MAT_INV ( const int N, double* MAT, doub ...