摘要: 在上篇博文基础上修改,使之A能动态View Code /* -------------------------------------------------------------------------- *//* UMFPACK Copyright (c) Timothy A. Davis, CISE, *//* Univ. of Florida. All Rights Reserved. See ../Doc/License for License. *//* web: http://www.cise.ufl.edu/r... 阅读全文
posted @ 2013-02-24 13:49 liang_l 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 在UMFPACK的官方文档 UMFPACK Version 5.2.0 User Guide中的5.3节中的例子稀疏矩阵A和右端向量b 为 A=[2 3 0 0 0;3 0 4 0 6 ;0 -1 -3 2 0;0 0 1 0 0;0 4 2 0 1]b=[8.,45.,-3.,3.,19.] 其解为x=[1 2 3 4 5]'这个算例的源代码为View Code 1 #include <stdio.h> 2 #include "umfpack.h" 3 int n = 5 ; 4 int Ap [ ] = {0, 2, 5, 9, 10, ... 阅读全文
posted @ 2013-02-24 00:17 liang_l 阅读(246) 评论(0) 推荐(0) 编辑