fbpx
维基百科

稀疏矩阵

稀疏矩陣的例子
上述稀疏矩陣僅包含9個非零元素,另外包含26個零元素。其稀疏度為74%,密度為26%。

稀疏矩阵(英語:sparse matrix),在数值分析中,是其元素大部分为零的矩阵。反之,如果大部分元素都非零,则这个矩阵是稠密(dense)的。在科学与工程领域中求解线性模型时经常出现大型的稀疏矩阵。

计算有限元问题时得到的稀疏矩阵。非零元素用黑点表示。

在使用计算机存储和操作稀疏矩阵时,经常需要修改标准算法以利用矩阵的稀疏结构。由于其自身的稀疏特性,通过压缩可以大大节省稀疏矩阵的内存代价。更为重要的是,由于过大的尺寸,标准的算法经常无法操作这些稀疏矩阵。

定义

给定一个N×M的稀疏矩阵A,其第n行的行带宽定义为:

 

整个矩阵的带宽定义为:

 

例子

计算方法

稀疏矩阵的「注入元」是指执行算法是从初始的零值变为非零值的那些元素。为减少内存要求和算术操作的次数,我们经常通过交换某些行或某些列来尽量减少注入元。符号柯列斯基分解英语Symbolic Cholesky decomposition可以用来在做实际的柯列斯基分解之前计算最坏情况下注入元的数目。与此类似,可以用符号QR分解在做实际的QR分解之前计算最坏情况下注入元的数目。

消去树英语elimination tree法是一种用于高斯消元法LU分解中的系统处理如何减少注入元的方法。与此相关的一种称为巢狀解剖英语Nested dissection的方法,可以看成是它的一个特例。

參考文獻

  • Golub, Gene H.; Van Loan, Charles F. Matrix Computations 3rd. Baltimore: Johns Hopkins. 1996. ISBN 978-0-8018-5414-9. 
  • Stoer, Josef; Bulirsch, Roland. Introduction to Numerical Analysis 3rd. Berlin, New York: Springer-Verlag. 2002. ISBN 978-0-387-95452-3. 
  • Tewarson, Reginald P. Sparse Matrices (Part of the Mathematics in Science & Engineering series). Academic Press Inc. May 1973.  (This book, by a professor at the State University of New York at Stony Book, was the first book exclusively dedicated to Sparse Matrices. Graduate courses using this as a textbook were offered at that University in the early 1980s).
  • Bank, Randolph E.; Douglas, Craig C. (PDF). [2019-02-09]. (原始内容 (PDF)存档于2014-12-21). 
  • Pissanetzky, Sergio. Sparse Matrix Technology. Academic Press. 1984. 
  • Snay, Richard A. Reducing the profile of sparse symmetric matrices. Bulletin Géodésique. 1976, 50 (4): 341. doi:10.1007/BF02521587.  Also NOAA Technical Memorandum NOS NGS-4, National Geodetic Survey, Rockville, MD.

延伸閱讀

  • Gibbs, Norman E.; Poole, William G.; Stockmeyer, Paul K. A comparison of several bandwidth and profile reduction algorithms. ACM Transactions on Mathematical Software. 1976, 2 (4): 322–330. doi:10.1145/355705.355707. 
  • Gilbert, John R.; Moler, Cleve; Schreiber, Robert. Sparse matrices in MATLAB: Design and Implementation. SIAM Journal on Matrix Analysis and Applications. 1992, 13 (1): 333–356 [2019-02-09]. CiteSeerX 10.1.1.470.1054 . doi:10.1137/0613024. (原始内容于2008-06-06). 
  • Sparse Matrix Algorithms Research (页面存档备份,存于互联网档案馆) at the University of Florida, containing the UF sparse matrix collection.
  • SMALL project (页面存档备份,存于互联网档案馆) A EU-funded project on sparse models, algorithms and dictionary learning for large-scale data.

稀疏矩阵, 稀疏矩陣的例子, displaystyle, left, begin, smallmatrix, smallmatrix, right, 上述稀疏矩陣僅包含9個非零元素, 另外包含26個零元素, 其稀疏度為74, 密度為26, 英語, sparse, matrix, 在数值分析中, 是其元素大部分为零的矩阵, 反之, 如果大部分元素都非零, 则这个矩阵是稠密, dense, 在科学与工程领域中求解线性模型时经常出现大型的, 计算有限元问题时得到的, 非零元素用黑点表示, 在使用计算机存储和操作时, 经常. 稀疏矩陣的例子 11 22 0 0 0 0 0 0 33 44 0 0 0 0 0 0 55 66 77 0 0 0 0 0 0 0 88 0 0 0 0 0 0 0 99 displaystyle left begin smallmatrix 11 amp 22 amp 0 amp 0 amp 0 amp 0 amp 0 0 amp 33 amp 44 amp 0 amp 0 amp 0 amp 0 0 amp 0 amp 55 amp 66 amp 77 amp 0 amp 0 0 amp 0 amp 0 amp 0 amp 0 amp 88 amp 0 0 amp 0 amp 0 amp 0 amp 0 amp 0 amp 99 end smallmatrix right 上述稀疏矩陣僅包含9個非零元素 另外包含26個零元素 其稀疏度為74 密度為26 稀疏矩阵 英語 sparse matrix 在数值分析中 是其元素大部分为零的矩阵 反之 如果大部分元素都非零 则这个矩阵是稠密 dense 的 在科学与工程领域中求解线性模型时经常出现大型的稀疏矩阵 计算有限元问题时得到的稀疏矩阵 非零元素用黑点表示 在使用计算机存储和操作稀疏矩阵时 经常需要修改标准算法以利用矩阵的稀疏结构 由于其自身的稀疏特性 通过压缩可以大大节省稀疏矩阵的内存代价 更为重要的是 由于过大的尺寸 标准的算法经常无法操作这些稀疏矩阵 目录 1 定义 2 例子 3 计算方法 4 參考文獻 5 延伸閱讀定义 编辑给定一个N M的稀疏矩阵A 其第n行的行带宽定义为 b n A m i n 1 m M m a n m 0 displaystyle b n mathbf A mathrm min 1 leq m leq M lbrace m mid a n m neq 0 rbrace 整个矩阵的带宽定义为 B A m a x 1 n N b n A displaystyle B mathbf A mathrm max 1 leq n leq N b n mathbf A 例子 编辑一幅双色图像以位图方式存储 若其中一种颜色的像素远远多于另一种颜色的像素 比如手写签名的扫描图像 就可以将其按稀疏矩阵编码 仅保存其少数像素的行列信息 数值法求解偏微分方程 比如差分法和有限元法 时通常会出现稀疏矩阵 比如最简单的差分法的五点模板 5 point stencil 求解泊松方程或薛定谔方程会出现稀疏矩阵 计算方法 编辑稀疏矩阵的 注入元 是指执行算法是从初始的零值变为非零值的那些元素 为减少内存要求和算术操作的次数 我们经常通过交换某些行或某些列来尽量减少注入元 符号柯列斯基分解 英语 Symbolic Cholesky decomposition 可以用来在做实际的柯列斯基分解之前计算最坏情况下注入元的数目 与此类似 可以用符号QR分解在做实际的QR分解之前计算最坏情况下注入元的数目 消去树 英语 elimination tree 法是一种用于高斯消元法或LU分解中的系统处理如何减少注入元的方法 与此相关的一种称为巢狀解剖 英语 Nested dissection 的方法 可以看成是它的一个特例 參考文獻 编辑Golub Gene H Van Loan Charles F Matrix Computations 3rd Baltimore Johns Hopkins 1996 ISBN 978 0 8018 5414 9 Stoer Josef Bulirsch Roland Introduction to Numerical Analysis 3rd Berlin New York Springer Verlag 2002 ISBN 978 0 387 95452 3 Tewarson Reginald P Sparse Matrices Part of the Mathematics in Science amp Engineering series Academic Press Inc May 1973 This book by a professor at the State University of New York at Stony Book was the first book exclusively dedicated to Sparse Matrices Graduate courses using this as a textbook were offered at that University in the early 1980s Bank Randolph E Douglas Craig C Sparse Matrix Multiplication Package PDF 2019 02 09 原始内容 PDF 存档于2014 12 21 Pissanetzky Sergio Sparse Matrix Technology Academic Press 1984 Snay Richard A Reducing the profile of sparse symmetric matrices Bulletin Geodesique 1976 50 4 341 doi 10 1007 BF02521587 Also NOAA Technical Memorandum NOS NGS 4 National Geodetic Survey Rockville MD 延伸閱讀 编辑Gibbs Norman E Poole William G Stockmeyer Paul K A comparison of several bandwidth and profile reduction algorithms ACM Transactions on Mathematical Software 1976 2 4 322 330 doi 10 1145 355705 355707 Gilbert John R Moler Cleve Schreiber Robert Sparse matrices in MATLAB Design and Implementation SIAM Journal on Matrix Analysis and Applications 1992 13 1 333 356 2019 02 09 CiteSeerX 10 1 1 470 1054 doi 10 1137 0613024 原始内容存档于2008 06 06 Sparse Matrix Algorithms Research 页面存档备份 存于互联网档案馆 at the University of Florida containing the UF sparse matrix collection SMALL project 页面存档备份 存于互联网档案馆 A EU funded project on sparse models algorithms and dictionary learning for large scale data 取自 https zh wikipedia org w index php title 稀疏矩阵 amp oldid 74532420, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。