期刊文献+

三角矩阵的存储映射 被引量:1

Storage Mapping of Triangular Matrix
下载PDF
导出
摘要 对三角矩阵的存储映射问题进行了讨论.对于n阶下三角矩阵,若按行主顺序仅将下三角部分各元素依次存储到向量B[1∶n(n+1)/2]中,则可获得矩阵下标集合到向量下标集合的一个一一映射f(i,j)=i(i-1)/2+j,其逆映射为f-1(k)=(p,k-p(p-1)/2).这里i≥j且p=(8k+1-1)/2.对于上三角矩阵,若按列主顺序仅存上三角部分,则可对称地获得类似的一一映射:g(i,j)=f(j,i)=j(j-1)/2+i,g-1(k)=(k-p(p-1)/2,p),其中i j,p同前.一般地,对于对称矩阵,若仅如前地存储下三角部分或上三角部分,则得到一个多对一映射h∶h(i,j)=f(i,j)(若i j)或g(i,j)(若i<j). In this paper, the storage mapping of triangular matrix is discussed. For an nth lower triangular matrix, by storing the lower triangular parts based on the row_major order into a vector B,a one_to_one mapping from the matrix index set to the vector index set can be obtained, that is f(i,j)=i(i-1)/2+j. Its inverse mapping is f-1(k)=(p,k-p(p-1)/2).where i≥j,p=(8k+1-1)/2. Symmetrically, for an nth upper triangular matrix, by storing the upper triangular parts based on the column_major order into the vector B, a similar one_to_one mapping can also be obtained:g(i,j)=f(j,i)=j(j-1)/2+i,g-1(k)=(k-p(p-1)/2,p),where ij.Generally, for an nth symmetric matrix, by storing its upper or lower triangular parts into B as indicated above, a many_to_one mapping can be obtained∶h(i,j)=f(i,j)(if ij) or g(i,j)(if i<j).
作者 程国忠
出处 《四川师范学院学报(自然科学版)》 2002年第4期393-396,共4页 Journal of Sichuan Teachers College(Natural Science)
基金 四川省教育厅资助项目(川教计[2000]141号)
关键词 数据结构 数组 对称矩阵 三角矩阵 存储映射 存储结构 data structure array symmetric matrix triangular matrix storage mapping
  • 相关文献

参考文献2

  • 1黄维通,张铭.从标准Pascal到Delphi4.0[M].北京:北京大学出版社,1999.
  • 2HOROWITZ E, SAHNI S. Fundamentals of Data Structures[M] .Pitmen Publishing Limited, 1976.

同被引文献6

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部