Sign inSign up

daskol/ttpy

By daskol

Updated about 4 years ago

Tensor Train (TT) toolbox in Python

Image
0

1.0K

daskol/ttpy repository overview

Quick reference

Simple Tags

Quick reference (cont.)

What is TTPy?

TTPy is an implementation of the Tensor Train (TT) Toolbox in Python. It contains several important packages for working with the TT-format in Python. It is able to do TT-interpolation, solve linear systems, eigenproblems, solve dynamical problems. Several computational routines are done in Fortran (which can be used separatedly), and are wrapped with the f2py tool.

How to use this image

Create a Dockerfile in your Python app project

FROM daskol/ttpy

COPY requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./your-numerical-problem.py" ]

You can then build and run the Docker image as follows.

$ docker build -t my-numerical-solver.
$ docker run -it --rm --name my-running-solver my-numerical-solver

Run a single Python script

For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a Python script by using the Python Docker image directly.

$ docker run -it --rm --name my-running-solver -v "$PWD":/workspace daskol/ttpy your-numerical-solver.py

License

View license information for TTPy.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

sha256:16e155758

Size

474.6 MB

Last updated

about 4 years ago

docker pull daskol/ttpy