摘要: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2021-07-27 00:52 Thin-Hair 阅读(32) 评论(0) 推荐(0)
摘要: 最近学习了带状矩阵,尝试压缩 带状矩阵就是所有的非零元素都集中在以主对角线为中心的带状区域中的矩阵,如下: 因此尝试简单的带状矩阵压缩 首先分析带状矩阵,设它的带宽(矩阵中的行最大的非零个数)为M,所以创建M*n大小的矩阵用于储存压缩后的矩阵 使得a[i][j] 可以直接访问A[i][j]的数值 令 阅读全文
posted @ 2020-10-19 00:44 Thin-Hair 阅读(382) 评论(1) 推荐(0)
Language: HTML