• English
  • Deutsch
  • Log In
    or
  • Research Outputs
  • Projects
  • Researchers
  • Institutes
  • Statistics
Repository logo
Fraunhofer-Gesellschaft
  1. Home
  2. Fraunhofer-Gesellschaft
  3. Artikel
  4. Iterator-Based Design of Generic C++ Algorithms for Basic Tensor Operations
 
  • Details
  • Full
Options
07 April 2022
Journal Article
Titel

Iterator-Based Design of Generic C++ Algorithms for Basic Tensor Operations

Abstract
Numerical tensor calculus has recently gained increasing attention in many scientific fields including quantum computing and machine learning which contain basic tensor operations such as the pointwise tensor addition and multiplication of tensors. We present a C++ design of multi-dimensional iterators and iterator-based C++ functions for basic tensor operations using mode-specific iterators only, simplifying the implementation of algorithms with recursion and multiple loops. The proposed C++ functions are designed for dense tensor and subtensor types with any linear storage format, mode and dimensions. We demonstrate our findings with Boost's latest uBlas tensor extension and discuss how other C++ frameworks can utilize our proposal without modifying their code base. Our runtime measurements show that C++ functions with iterators can compute tensor operations at least as fast as their pointer-based counterpart.
Author(s)
Bassoy, Cem Savas
Fraunhofer-Institut für Optronik, Systemtechnik und Bildauswertung IOSB
Zeitschrift
Frontiers in applied mathematics and statistics
DOI
10.3389/fams.2022.806537
File(s)
fams-08-806537.pdf (912.36 KB)
Language
English
google-scholar
Fraunhofer-Institut für Optronik, Systemtechnik und Bildauswertung IOSB
Tags
  • tensor n-rank

  • N-way array

  • multi-dimensional arr...

  • tensor computations

  • multi-dimensional ite...

  • software design and d...

  • Cookie settings
  • Imprint
  • Privacy policy
  • Api
  • Send Feedback
© 2022