快速乘法:基于多项式基数2索引集合的二进制补码加法
Fast multiplication by two's complement addition of numbers represented as a set of polynomial radix 2 indexes, stored as an integer list for massively parallel computation
AI总结:
本文提出了一种基于多项式基数2索引集合的快速乘法方法,通过二进制补码加法实现高效并行计算,克服了传统并行乘法的内存共享限制。
摘要:
我们展示了一种基于以整数列表形式存储的多项式基数2索引集合表示的乘法方法。'多项式整数索引乘法'方法是一组在Python代码中实现的算法。我们证明该方法在特定位范围内比数论变换(NTT)和卡鲁萨布方法更快。此外,该方法以Python代码形式实现,用于与多项式基数2整数方法进行比较。我们证明任何整数或实数都可以表示为整数索引的列表,代表一个有限的二进制级数。该数的有限整数索引表示可以存储并跨多个CPU/GPU分布。我们展示了加法和乘法操作可以作为对索引整数表示进行二进制补码加法的操作,并且可以完全分布到给定的CPU/GPU架构上。我们展示了完全分布的算术运算,使得'多项式整数索引乘法'方法克服了当前并行乘法方法的限制。即,计算结果和中间结果需要共享公共核心内存和公共磁盘的需要。
英文摘要:
We demonstrate a multiplication method based on numbers represented as set of polynomial radix 2 indices stored as an integer list. The 'polynomial integer index multiplication' method is a set of algorithms implemented in python code. We demonstrate the method to be faster than both the Number Theoretic Transform (NTT) and Karatsuba for multiplication within a certain bit range. Also implemented in python code for comparison purposes with the polynomial radix 2 integer method. We demonstrate that it is possible to express any integer or real number as a list of integer indices, representing a finite series in base two. The finite series of integer index representation of a number can then be stored and distributed across multiple CPUs / GPUs. We show that operations of addition and multiplication can be applied as two's complement additions operating on the index integer representations and can be fully distributed across a given CPU / GPU architecture. We demonstrate fully distributed arithmetic operations such that the 'polynomial integer index multiplication' method overcomes the current limitation of parallel multiplication methods. Ie, the need to share common core memory and common disk for the calculation of results and intermediate results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。