arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1901.04289cs.MScs.NAmath.NA
收藏

更快的任意精度点积与矩阵乘法

Faster arbitrary-precision dot product and matrix multiplication

Fredrik Johansson

AI总结:

本文提出任意精度浮点和球算术下的点积与矩阵乘法算法,基于GMP分支数组实现低开销点积,并利用缩放整数矩阵块加速大型矩阵乘法,在Arb中实现后显著提升了多项式运算与线性代数的速度。

摘要:

我们提出了在任意精度浮点和球算术下的实数与复数点积及矩阵乘法算法。在GMP分支数组层级上实现了低开销点积;在最高几百位精度下,其速度约为MPFR和Arb中先前代码的两倍。在128位以内,速度提升3-4倍,浮点求值每项开销20-30个周期,球求值每项40-50个周期。通过缩放整数矩阵块,我们更高效地处理了大型矩阵乘法。新方法在Arb中实现,显著加速了多项式运算和线性代数。

英文摘要:

We present algorithms for real and complex dot product and matrix multiplication in arbitrary-precision floating-point and ball arithmetic. A low-overhead dot product is implemented on the level of GMP limb arrays; it is about twice as fast as previous code in MPFR and Arb at precision up to several hundred bits. Up to 128 bits, it is 3-4 times as fast, costing 20-30 cycles per term for floating-point evaluation and 40-50 cycles per term for balls. We handle large matrix multiplications even more efficiently via blocks of scaled integer matrices. The new methods are implemented in Arb and significantly speed up polynomial operations and linear algebra.

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

↑