Scalar and Tensor Parameters for Importing Tensor Index Notation including Einstein Summation Notation

02/21/2017
by   Satoshi Egi, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/09/2018

Scalar and Tensor Parameters for Importing the Notation in Differential Geometry into Programming

This paper proposes a method for importing tensor index notation, includ...
research
11/03/2017

Automatic Differentiation for Tensor Algebras

Kjolstad et. al. proposed a tensor algebra compiler. It takes expression...
research
02/28/2018

Sparse Tensor Algebra Optimizations with Workspaces

This paper shows how to optimize sparse tensor algebraic expressions by ...
research
07/28/2020

The ITensor Software Library for Tensor Network Calculations

ITensor is a system for programming tensor network calculations with an ...
research
11/28/2017

TLib: A Flexible C++ Tensor Framework for Numerical Tensor Calculus

Numerical tensor calculus comprise basic tensor operations such as the e...
research
07/17/2018

Tensor Methods for Additive Index Models under Discordance and Heterogeneity

Motivated by the sampling problems and heterogeneity issues common in hi...
research
03/29/2023

A Tensor-based Convolutional Neural Network for Small Dataset Classification

Inspired by the ConvNets with structured hidden representations, we prop...

Please sign up or login with your details

Forgot password? Click here to reset