arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16799math.AGmath.NT
收藏

在Macaulay2中使用其外部函数接口和FLINT实现p进数

Implementing p-adic numbers in Macaulay2 using its foreign function interface and FLINT

Piedmont University(皮埃蒙特大学);Georgia Institute of Technology(佐治亚理工学院)

Douglas A. Torrance

AI总结:

本文展示如何通过FLINT库和Macaulay2的外部函数接口实现p进数,讨论内存管理、垃圾回收和面向对象设计等实现细节。

摘要:

Macaulay2是一种广泛用于代数几何和交换代数研究的计算机代数平台。通过ForeignFunctions包,可以将Macaulay2调用动态库如FLINT。我们通过引入一个新包,利用此接口通过FLINT实现p进数。我们讨论了内存分配、与Macaulay2垃圾收集器的交互以及面向对象设计决策,这些决策与Macaulay2中现有实数和复数字段的实现相呼应。

英文摘要:

Macaulay2 is a computer algebra platform widely used by researchers in algebraic geometry and commutative algebra. Using the ForeignFunctions package, it is possible to make calls from Macaulay2 to dynamic libraries such as FLINT. We demonstrate this by introducing a new Macaulay2 package implementing p-adic numbers using FLINT via this interface. We discuss implementation details such as memory allocation, interaction with Macaulay2's garbage collector, and object-oriented design decisions that mirror the existing implementations of the real and complex number fields in Macaulay2.

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

↑