Skip to main content

Python Tensor Toolbox

Project description

Copyright 2022 National Technology & Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the
U.S. Government retains certain rights in this software.

Regression tests Coverage Status pypi package image Ruff Code style: black

pyttb: Python Tensor Toolbox

Welcome to pyttb, a set of Python classes and methods functions for manipulating dense, sparse, and structured tensors, along with algorithms for computing low-rank tensor models.

Tensor Classes:

  • tensor: dense tensors
  • sptensor: sparse tensors
  • ktensor: Kruskal tensors
  • tenmat: matricized tensors
  • ttensor: Tucker tensors

Tensor Algorithms:

  • cp_als, cp_apr: Canonical Polyadic (CP) decompositions
  • tucker_als: Tucker decompostions

Getting Started

For full details see our documentation.

Quick Start

We are on pypi

pip install pyttb

or install from source

pip install .

Contributing

Check out our contributing guide.

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

pyttb-1.8.0.tar.gz (167.8 kB view details)

Uploaded Source

Built Distribution

pyttb-1.8.0-py3-none-any.whl (134.2 kB view details)

Uploaded Python 3

File details

Details for the file pyttb-1.8.0.tar.gz.

File metadata

  • Download URL: pyttb-1.8.0.tar.gz
  • Upload date:
  • Size: 167.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyttb-1.8.0.tar.gz
Algorithm Hash digest
SHA256 faf5ec44826d9b5eef00ae85991a22316a5f63ce6ccbda627ff5e5c239325905
MD5 81f6a6be0968ff19712ad7ab2c496e9f
BLAKE2b-256 b601eb84d3c50ea4dc83f81e9e4202632e782b8d8ea87ef520a1e2028a3afc40

See more details on using hashes here.

File details

Details for the file pyttb-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: pyttb-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 134.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyttb-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e015def127f29cfbd278eabff0bf020829338340d812c8338d34bf8587dbc5e
MD5 3f1a20a6b483ef2277ca25affa6995ac
BLAKE2b-256 2df419b8f36ff08c1807efa4914bfce65b7f61c3b40cfeee4c1a84d85e1ea5e5

See more details on using hashes here.

Supported by

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