Computer Science > Mathematical Software
[Submitted on 30 Jul 2016 (this version), latest version 31 Mar 2017 (v2)]
Title:TRIOT: Faster iteration over multidimensional arrays in C++11
View PDFAbstract:Tensor indexing is a fundamental component of numeric algorithms and is used in many programming languages and across many fields. This manuscript proposes a new template-recursive design pattern for implementing faster vectorizing over tensors of different shapes in C++11. The proposed method, "template-recursive iteration over tensors", is comparable to using nested for loops in C and to vectorized code in Fortran, and it outperforms numpy, C-style tuple iteration, C-style integer reindexing, and boost::multi_array, and unlike some of those methods, it can be used when the dimension of the tensor is unknown at compile time.
Submission history
From: Oliver Serang [view email][v1] Sat, 30 Jul 2016 10:40:29 UTC (13 KB)
[v2] Fri, 31 Mar 2017 22:40:34 UTC (732 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
Connected Papers (What is Connected Papers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.