arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1106.1347cs.MS
收藏

矩阵乘法的几种方法及其实现

Methods of Matrix Multiplication: An Overview of Several Methods and their Implementation

Ivo Hedtke

摘要:

在这篇概述文章中,我们介绍了几种矩阵相乘的方法以及这些方法在C中的实现。并给出了一个小程序对它们的运行时间和数值稳定性进行了比较。这些方法是:朴素方法、处理数组的朴素方法、具有\textsc{Kahan}技巧的朴素方法、具有循环展开的三种方法、Winograd方法和缩放变体、原始\textsc{Strassen}方法和\textsc{Strassen} - \textsc{Winograd}变体。请注意,这是第一个版本。这些算法没有经过很好的测试,而且实现也没有优化。如果你想加入这个项目,请联系我。

英文摘要:

In this overview article we present several methods for multiplying matrices and the implementation of these methods in C. Also a little test program is given to compare their running time and the numerical stability. The methods are: naive method, naive method working on arrays, naive method with the \textsc{Kahan} trick, three methods with loop unrolling, winograd method and the scaled variant, original \textsc{Strassen} method and the \textsc{Strassen}-\textsc{Winograd} variant. Please note, that this is the FIRST version. The algorithms are not well tested and the implementation is not optimized. If you like to join the project, please contact me.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑