Skip to main content

UNKNOWN

Project description

Tensor Toolbox provides functionalities for the decomposition of tensors in tensor-train format [1] and spectral tensor-train format [2].

The toolbox provides the following tools:

  • TT-svd

  • TT-cross

  • TT-vectors

  • TT-matrices

  • Quatics TT-vectors/matrices

  • TT-integration

  • Basic operations in TT format

  • Multi-linear algebra in TT format (Steepest descent, CG and GMRES)

  • STT-construction

  • STT-projection/interpolation

  • STT for single quantities and for fields

Installation

Use the usual pip command:

$ pip install TensorToolbox

The main dependencies of the package are the SpectralToolbox and mpi4py. The remaining dependencies should be resolved smoothly.

Some users might want to install the toolbox without MPI support. This is possible, but not through the pip command:

$ pip install –download=”/pth/to/downloaded/files” TensorToolbox

$ cd /pth/to/downloaded/files

$ tar xzf TensorToolbox-x.x.x.tar.gz

$ cd TensorToolbox-x.x.x

$ python setup.py install –without-mpi4py

Test Installation

You can test whether all the functionalities work by running the unit tests.

>>> import TensorToolbox
>>> TensorToolbox.RunUnitTests(maxprocs=None)

where maxprocs defines the number of processors to be used if MPI support is activated. Be patient. The number of unit tests grows with the number of functionalities implemented in the software.

Examples

Examples can be found inside the package. To find them, download the source:

$ pip install –download=”/pth/to/downloaded/files” TensorToolbox

$ cd /pth/to/downloaded/files

$ tar xzf TensorToolbox-x.x.x.tar.gz

$ cd TensorToolbox-x.x.x

$ cd Examples

References

[1] Oseledets, I. (2011). Tensor-train decomposition. SIAM Journal on Scientific Computing, 33(5), 2295–2317. Retrieved from http://epubs.siam.org/doi/pdf/10.1137/090752286

[2] Bigoni, D. and Marzouk, Y.M. and Engsig-Karup, A.P. (2014) Spectral tensor-train decomposition. (Submitted)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TensorToolbox-0.1.3.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file TensorToolbox-0.1.3.tar.gz.

File metadata

  • Download URL: TensorToolbox-0.1.3.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TensorToolbox-0.1.3.tar.gz
Algorithm Hash digest
SHA256 989e398517142a39e4e26a587cd54f6005ca8c72ab3f546f2a08188fe38e2280
MD5 f00979bfef7878359f0ee47d8a7e738a
BLAKE2b-256 01b3fbb779836b007c4a15e5a68ab4fe5677885db02668ea10d2fa65cb482a79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page