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

lrsarith:一个小型的固定/混合算术C库

lrsarith: a small fixed/hybrid arithmetic C library

David Avis, Charles Jordan

摘要:

我们描述lrsarith这是一个小的固定精度和混合算术C库的整数和有理数,我们开发的lrslib库多面体计算中使用。使用一组通用操作,程序可以用64位或128位(如果可用)固定精度编译,并使用扩展精度库(如GMP或内置MP例程)。一个简单的方案检查溢出,并终止程序,或者在混合模式下,更改为更高精度的算法。在lrslib中实现这些算法只对原始代码做了很小的修改。我们给出了计算结果,使用lrs和mplrs,顶点/面枚举代码lrslib,使用64和128位固定整数算法与和不溢出检查,GMP算法,lrsarith混合算法与GMP和MP,和FLINT混合算法。我们给出了一个小的独立的例子C程序使用lrsarith包在固定精度和混合模式。

英文摘要:

We describe lrsarith which is a small fixed precision and hybrid arithmetic C library for integers and rationals that we developed for use in the lrslib library for polyhedral computation. Using a generic set of operations, a program can be compiled with either 64-bit or 128-bit (if available) fixed precision, with an extended precision library such as GMP or the built-in MP routines. A simple scheme checks for overflow and either terminates the program or, in hybrid mode, changes to a higher precision arithmetic. Implementing these arithmetics in lrslib resulted in only minimal changes to the original code. We give computational results using lrs and mplrs, vertex/facet enumeration codes in lrslib, using 64 and 128 bit fixed integer arithmetic with and without overflow checking, GMP arithmetic, lrsarith hybrid arithmetic with both GMP and MP, and FLINT hybrid arithmetic. We give a small self-contained example C program using the lrsarith package in both fixed precision and hybrid mode.

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

↑