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

11/28/2017
by   Cem Bassoy, et al.
0

Numerical tensor calculus comprise basic tensor operations such as the entrywise addition and contraction of higher-order tensors. We present, TLib, flexible tensor framework with generic tensor functions and tensor classes that assists users to implement generic and flexible tensor algorithms in C++. The number of dimensions, the extents of the dimensions of the tensors and the contraction modes of the tensor operations can be runtime variable. Our framework provides tensor classes that simplify the management of multidimensional data and utilization of tensor operations using object-oriented and generic programming techniques. Additional stream classes help the user to verify and compare of numerical results with MATLAB. Tensor operations are implemented with generic tensor functions and in terms of multidimensional iterator types only, decoupling data storage representation and computation. The user can combine tensor functions with different tensor types and extend the framework without further modification of the classes or functions. We discuss the design and implementation of the framework and demonstrate its usage with examples that have been discussed in the literature.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/01/2016

High-Performance Tensor Contraction without Transposition

Tensor computations--in particular tensor contraction (TC)--are importan...
research
05/29/2018

Automating Personnel Rostering by Learning Constraints Using Tensors

Many problems in operations research require that constraints be specifi...
research
01/22/2021

Tensor-Train Networks for Learning Predictive Modeling of Multidimensional Data

Deep neural networks have attracted the attention of the machine learnin...
research
09/06/2021

OGRe: An Object-Oriented General Relativity Package for Mathematica

We present OGRe, a modern Mathematica package for tensor calculus, desig...
research
10/18/2017

Typesafe Abstractions for Tensor Operations

We propose a typesafe abstraction to tensors (i.e. multidimensional arra...
research
01/29/2022

Reduced Higher Order SVD: ubiquitous rank-reduction method in tensor-based scientific computing

Tensor numerical methods, based on the rank-structured tensor representa...
research
02/21/2017

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

In this paper, we propose a method for importing tensor index notation, ...

Please sign up or login with your details

Forgot password? Click here to reset