arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.03140cs.PL
收藏

将张量指数表示法转换为程序设计语言的符号指数约简和完备规则

Symbolical Index Reduction and Completion Rules for Importing Tensor Index Notation into Programming Languages

Satoshi Egi

摘要:

在数学中,人们发明了许多符号来简洁地表示数学公式。张量指数表示法就是其中之一,在数学物理公式的描述中起着至关重要的作用。本文介绍了一种程序设计语言,它可以通过引入一组与两种类型的参数兼容的张量索引规则来处理符号张量索引,即,标量和张量参数。当张量参数获取张量作为参数时,函数将张量参数视为一个整体。相反,当标量参数获得张量作为参数时,该函数被应用于张量的每个分量。在具有标量和张量参数的语言上,我们可以设计一组索引约简规则,允许用户对任意用户定义的函数使用张量索引表示法,而不需要额外的描述。此外,我们还可以设计索引完成规则,允许用户简洁地定义微分形式的运算符,如楔积,外导数和霍奇星运算符。在我们的建议中,所有这些张量运算符都是用户定义的函数,可以作为高阶函数的参数传递。

英文摘要:

In mathematics, many notations have been invented for the concise representation of mathematical formulae. Tensor index notation is one of such notations and has been playing a crucial role in describing formulae in mathematical physics. This paper shows a programming language that can deal with symbolical tensor indices by introducing a set of tensor index rules that is compatible with two types of parameters, i.e., scalar and tensor parameters. When a tensor parameter obtains a tensor as an argument, the function treats the tensor argument as a whole. In contrast, when a scalar parameter obtains a tensor as an argument, the function is applied to each component of the tensor. On a language with scalar and tensor parameters, we can design a set of index reduction rules that allows users to use tensor index notation for arbitrary user-defined functions without requiring additional description. Furthermore, we can also design index completion rules that allow users to define the operators concisely for differential forms such as the wedge product, exterior derivative, and Hodge star operator. In our proposal, all these tensor operators are user-defined functions and can be passed as arguments of high-order functions.

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

↑