包括Einstein求和表示法在内的张量指数表示法的标量和张量参数
Scalar and Tensor Parameters for Importing Tensor Index Notation including Einstein Summation Notation
摘要:
在本文中,我们提出了一种方法,导入张量索引符号,包括爱因斯坦求和符号,函数式编程。该方法引入了标量和张量两种参数,并简化了张量索引规则,不处理仅对笛卡尔坐标系有效的表达式,索引可以自由上下移动。这种表达式的一个例子是“c = A_i B_i”。作为普通函数,当张量参数获得张量作为自变量时,函数将张量自变量视为整体。相反,当标量参数获得张量作为参数时,该函数被应用于张量的每个分量。在本文中,我们表明,引入这两种类型的参数和我们简化的索引规则,使我们能够应用任意的用户定义的功能,张量参数使用索引符号,包括爱因斯坦求和符号,而不需要额外的描述,使每个功能来处理张量。
英文摘要:
In this paper, we propose a method for importing tensor index notation, including Einstein summation notation, into functional programming. This method involves introducing two types of parameters, i.e, scalar and tensor parameters, and simplified tensor index rules that do not handle expressions that are valid only for the Cartesian coordinate system, in which the index can move up and down freely. An example of such an expression is "c = A_i B_i". As an ordinary function, 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. In this paper, we show that introducing these two types of parameters and our simplified index rules enables us to apply arbitrary user-defined functions to tensor arguments using index notation including Einstein summation notation without requiring an additional description to enable each function to handle tensors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。