![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法导论
andyzhshg
Coding
展开
-
满秩矩阵的LU分解-非递归法(Chapter 28)
/***LU分解函数(V2非递归法)*@param A (in)输入矩阵*@param L (out)输出L阵*@param U (out)输出U阵*@param size (in)矩阵的大小*@return 分解成功返回非零值,失败返回零*/int LUDecomposition(double **A, double原创 2008-10-28 02:31:00 · 1023 阅读 · 0 评论 -
INSERT-SORT (Chapter2)
/***INSERT-SORT (Chapter2)*/typedef int type;void InsertSort(type s[], int length){ int i, j; type key; for (i = 1; i { key = s[i]; j = i - 1; while (j >=原创 2008-10-25 23:20:00 · 457 阅读 · 0 评论 -
满秩矩阵的LU 分解-递归法(Chpter28)
/***LU分解函数*@param A (in)输入矩阵*@param L (out)输出L阵*@param U (out)输出U阵*@param size (in)矩阵的大小*@return 分解成功返回非零值,失败返回零*/int LUDecomposition(double **A, double **L, do原创 2008-10-25 23:24:00 · 805 阅读 · 0 评论 -
线性方程组 Ax=b 求解(Chapter28)
/***线性方程组 Ax=b 求解函数*@param A (in)系数矩阵*@param x (out)根列向量,接受输出值*@param b (in)方程右侧常数项*@param size (in)矩阵的大小*@return 求解成功返回非零值,失败返回零*@LUDecomposi原创 2008-10-25 23:27:00 · 1436 阅读 · 0 评论 -
矩阵求逆算法(Chapter28)
/*** 求矩阵A的逆矩阵Ai*@param A 源矩阵*@param Ai 逆矩阵*@param size 矩阵的大小*@return 求解成功返回非零值,失败返回零*/int InverseMatrix(double **Ai, double **A, int size){ int原创 2009-01-08 22:43:00 · 1088 阅读 · 0 评论