Installation¶
TTNumPy requires Python 3.10 or newer. Its only runtime dependencies are NumPy and SciPy.
Install the package and its runtime dependencies from the project root:
python -m pip install .
For development work, install the editable package with the developer extras:
python -m pip install -e '.[dev]'
For documentation-only work, install the docs extras:
python -m pip install -e '.[docs]'
The benchmark suite compares the tensor-train solvers against classical backends and needs PyAMG and PETSc on top of the runtime dependencies:
python -m pip install -e '.[benchmark]'
Building PETSc from source expects BLAS and LAPACK development libraries to be available on the system.
Check the installation¶
python -c "import ttnumpy as tt; print(tt.eye([2, 2]))"