Polylab:用于多元多项式建模的MATLAB工具箱
Polylab: A MATLAB Toolbox for Multivariate Polynomial Modeling
AI总结:
Polylab是一个用于多元多项式标量和多项式矩阵的MATLAB工具箱,支持CPU和GPU后端的统一符号-数值接口。其核心功能包括多项式构造、代数运算、简化、矩阵运算、微分、雅可比和海森矩阵构造等,版本3.1新增了变量身份和命名处理及自动微分的仿射-正向方向计算。
摘要:
Polylab是一个用于多元多项式标量和多项式矩阵的MATLAB工具箱,具有跨CPU和GPU后端的统一符号-数值接口。该软件暴露了三个对齐的类:MPOLY用于CPU执行,MPOLY_GPU作为遗留的GPU基准,MPOLY_HP作为改进的GPU导向实现。在这些后端中,Polylab支持多项式构造、代数运算、简化、矩阵运算、微分、雅可比和海森矩阵构造、LaTeX导出、CPU侧LaTeX重建、后端转换以及与YALMIP和SOSTOOLS的互操作性。版本3.0和3.1增加了两个实际重要的扩展:显式变量身份和命名用于安全的混合变量表达式处理,以及通过自动微分、MF-logDet-Exact和MF-logDet-Stochastic进行仿射-正向方向计算。该工具箱已在先前的研究应用中成功使用,Polylab版本3.1在成熟的多项式建模核心上新增了一个面向几何的计算层。本文记录了软件的架构和用户接口,按工作流程组织其功能,展示了具有实际输出的代表性的MATLAB会话,并报告了可重复的基准测试。结果表明,MPOLY是轻量交互工作负载的合适默认选择,而MPOLY-HP在减少密集简化和中等至大仿射-正向计算中具有优势;在较大的稀疏领域下,随机log-确定性变体在以近似为导向的参数选择下具有吸引力。
英文摘要:
Polylab is a MATLAB toolbox for multivariate polynomial scalars and polynomial matrices with a unified symbolic-numeric interface across CPU and GPU-oriented backends. The software exposes three aligned classes: MPOLY for CPU execution, MPOLY_GPU as a legacy GPU baseline, and MPOLY_HP as an improved GPU-oriented implementation. Across these backends, Polylab supports polynomial construction, algebraic manipulation, simplification, matrix operations, differentiation, Jacobian and Hessian construction, LaTeX export, CPU-side LaTeX reconstruction, backend conversion, and interoperability with YALMIP and SOSTOOLS. Versions 3.0 and 3.1 add two practically important extensions: explicit variable identity and naming for safe mixed-variable expression handling, and affine-normal direction computation via automatic differentiation, MF-logDet-Exact, and MF-logDet-Stochastic. The toolbox has already been used successfully in prior research applications, and Polylab Version 3.1 adds a new geometry-oriented computational layer on top of a mature polynomial modeling core. This article documents the architecture and user-facing interface of the software, organizes its functionality by workflow, presents representative MATLAB sessions with actual outputs, and reports reproducible benchmarks. The results show that MPOLY is the right default for lightweight interactive workloads, whereas MPOLY-HP becomes advantageous for reduction-heavy simplification and medium-to-large affine-normal computation; the stochastic log-determinant variant becomes attractive in larger sparse regimes under approximation-oriented parameter choices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。