Tensor Toolbox for MATLAB

Tensors (also known as multidimensional arrays or N-way arrays) are used in a variety of applications ranging from chemometrics to network analysis.


The Tensor Toolbox provides the following classes and functions for manipulating dense, sparse, and structured tensors using MATLAB's object-oriented features. This documention is provided via the MATLAB help interface under "Supplemental Software".

How to Cite

Because it helps us to show the relevance of this work, if you use the Tensor Toolbox in your work in any way, please cite the software itself along with at least one publication or preprint. The help and documentation will generally suggest the appropriate reference, but the three primary references are given below. We provide BibTeX source for each suggested citation. Thanks very much for your support.

Consider adding the short hash for the exact version that was used. If you clone the repository, use the command git log --pretty=format:'%h' -n 1. If you download, the long hash is baked into the filename, but you need only use the first 8 characters.

How to Contribute

This is an open-source project hosted on GITLAB at http://gitlab.com/tensors/tensor_toolbox. Visit this website to submit bug reports and suggestions for improvement.


Please email tensortoolbox@sandia.gov with any questions about the toolbox that cannot be resolved via issue reporting. Stories of its usefulness are especially welcome. We will try to respond to every email may not always be successful due to the volume of emails.