从 COO 转换为 CSR 稀疏矩阵格式时对重复值求和
从 COO 格式转换为 CSR 时,如何有效地总结重复值。 fortran 子例程中是否存在类似于 scipy 实现(http://docs.scipy.org/doc/scipy-0.9.0/reference/sparse.html)的东西?我正在使用英特尔的 MKL 辅助例程从 COO 转换为 CSR,但它似乎不适用于重复值。
How would one sum up duplicate values efficently when converting from COO format to CSR. Does something similar to scipy implementation (http://docs.scipy.org/doc/scipy-0.9.0/reference/sparse.html) exist written in a subroutine for fortran? I am using Intel's MKL auxiliary routines for converting from COO to CSR, but it seems that it doesn't work for duplicate values.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我的代码中,我使用我编写的这个子例程:
并且您可以使用这个子例程对索引进行排序:
其中
argsort
是这应该做你想要的。
In my codes I am using this subroutine that I wrote:
and you can use this subroutine to sort the indices:
where
argsort
isThat should do what you wanted.