GithubHelp home page GithubHelp logo

00mjk / ttpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oseledets/ttpy

0.0 0.0 0.0 702 KB

Python implementation of the TT-Toolbox

License: MIT License

Python 89.92% Fortran 7.34% Makefile 2.57% Batchfile 0.09% Shell 0.08%

ttpy's Introduction

Build Status Coverage Status PyPi Downloads

ttpy

Python implementation of the Tensor Train (TT) -Toolbox. 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.

Installation

Prerequisites

It is recommended that you use Anaconda Python distribution which has MKL library built-in. Anaconda Python is used for the development of ttpy.

Pip install

Install dependencies (numpy and cython)

   conda install numpy cython

Install ttpy

   pip install ttpy

Installing from source code

To install the development version, you need to install from the source. First, clone the repository with all submodules:

   git clone --recursive git://github.com/oseledets/ttpy.git
   python setup.py install

To update to the latest version (with all submodules) run

git pull
git submodule update --init --recursive *

What those packages do

They have the following functionality

  • tt : The main package, with tt.vector and tt.matrix classes, basic arithmetic, norms, scalar products, rounding full -> tt and tt -> full conversion routines, and many others
  • tt.amen : AMEN solver for linear systems (Python wrapper for Fortran code written by S. V. Dolgov and D. V. Savostyanov) it can be also used for fast matrix-by-vector products.
  • tt.eigb : Block eigenvalue solver in the TT-format
  • tt.ksl : Solution of the linear dynamic problems in the TT-format, using the projector-splitting KSL scheme. A Python wrapper for a Fortran code (I. V. Oseledets)
  • tt.cross : Has a working implementation of the black-box cross method.

Documentation and examples

The package provides Sphinx-generated documentation. To build HTML version, just do

cd tt/doc
make html

A few examples are available right now under examples directory

For any questions, please create an issue on Github.

Contributor policy

This project is now following the git flow approach. Namely:

  • branch master is only for stable versions and releases;
  • branch develop is main working branch;
  • contributor should create new branch for certain feature and then merge with develop branch as feature was done;
  • each release on master branch should correspond to package on PyPI;
  • A maintainer checks all the pull request

A pull request should satisfy the following requirements:

  • style and quality description of pull request;
  • new changes should be tested and shouldn't break anything;
  • pull request for one fix or one feature(could be several commits);
  • try to keep the code style of the project;

Current maintainer is Ivan Oseledets.

ttpy's People

Contributors

aiboyko avatar daskol avatar distone avatar isosnovik avatar kharyuk avatar oseledets avatar rakhuba avatar rballester avatar rerrayne avatar saluev avatar uranix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.