arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.12712cs.SC
收藏

快速乘法公式的就地累加

In-place accumulation of fast multiplication formulae

Jean-Guillaume Dumas, Bruno Grenet

AI总结:

本文提出自动设计快速就地累加算法的方法,通过允许临时修改输入并在事后恢复,首次实现了快速多项式乘法和类 Strassen 矩阵乘法的就地累加。

摘要:

本文研究的是结果必须进行线性累加的公式的同时快速且就地的算法:部分输出变量同时也是输入变量,并通过线性依赖关系相关联。典型例子包括多项式或矩阵的就地累加乘法,即 C+=AB。难点在于将就地计算与快速算法相结合:快速算法通常以(可能很大的)额外临时空间为代价,但在累加场景下,输出变量甚至无法用于存储中间值。我们首先针对任意双线性公式(因而也适用于多项式乘法和矩阵乘法)提出一种新颖的快速且就地累加算法的自动设计方法,然后将其扩展到一组函数的任意线性累加。为此,我们将就地模型放宽为允许算法修改其输入,但要求这些输入在之后恢复到初始状态。最终,我们由此推导出前所未有的用于快速多项式乘法和类 Strassen 矩阵乘法的就地累加算法。

英文摘要:

This paper deals with simultaneously fast and in-place algorithms for formulae where the result has to be linearly accumulated: some of the output variables are also input variables, linked by a linear dependency. Fundamental examples include the in-place accumulated multiplication of polynomials or matrices, C+=AB. The difficulty is to combine in-place computations with fast algorithms: those usually come at the expense of (potentially large) extra temporary space, but with accumulation the output variables are not even available to store intermediate values. We first propose a novel automatic design of fast and in-place accumulating algorithms for any bilinear formulae (and thus for polynomial and matrix multiplication) and then extend it to any linear accumulation of a collection of functions. For this, we relax the in-place model to any algorithm allowed to modify its inputs, provided that those are restored to their initial state afterwards. This allows us, in fine, to derive unprecedented in-place accumulating algorithms for fast polynomial multiplications and for Strassen-like matrix multiplications.

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

↑