diff --git a/MANIFEST.in b/MANIFEST.in index eeb4dd5c0f6f9b91c8ceaa68179c33f9a8b31ec7..4ca3ac924c3472e711b3fd26adbba5ea5d45fc61 100755 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,6 @@ include *.rst include VERSION recursive-include doc *.rst *.py *.ipynb -include pomad/tests/*.py +include skpomade/tests/*.py prune doc/build diff --git a/README.rst b/README.rst index 51fc57a947639ab7b6a0440442c14d56730585a6..b5ebb23d0c4174e1469ffd07aacc1316a520cedb 100755 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ -pomad +skpomade ===== -pomad: PrObabilistic MAtrix Decompositions from Halko et al., 2011 +skpomade: PrObabilistic MAtrix DEcompositions from Halko et al., 2011 Python implementation of algorithms from paper *Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix @@ -14,32 +14,32 @@ Install Install the current release with ``pip``:: - pip install pomad + pip install skpomade For additional details, see doc/install.rst. Usage ----- -See the `documentation <http://valentin.emiya.pages.lis-lab.fr/pomad/>`_. +See the `documentation <http://valentin.emiya.pages.lis-lab.fr/skpomade/>`_. Bugs ---- -Please report any bugs that you find through the `pomad GitLab project -<https://gitlab.lis-lab.fr/valentin.emiya/pomad/issues>`_. +Please report any bugs that you find through the `skpomade GitLab project +<https://gitlab.lis-lab.fr/valentin.emiya/skpomade/issues>`_. You can also fork the repository and create a merge request. Source code ----------- -The source code of pomad is available via its `GitLab project -<https://gitlab.lis-lab.fr/valentin.emiya/pomad>`_. +The source code of skpomade is available via its `GitLab project +<https://gitlab.lis-lab.fr/valentin.emiya/skpomade>`_. You can clone the git repository of the project using the command:: - git clone git@gitlab.lis-lab.fr:valentin.emiya/pomad.git + git clone git@gitlab.lis-lab.fr:valentin.emiya/skpomade.git Copyright © 2019-2020 --------------------- diff --git a/VERSION b/VERSION index bc3b4510f0db0ad8f54e8fa248d9f96b96819b2b..2d08e70e49ab5cf35a9566c9b1d919e51a817016 100755 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -pomad:0.1.3 +skpomade:0.1.3 diff --git a/doc/README.md b/doc/README.md index 3e0fe42f7d7aa23f0c62322c7d65714645f27a53..56b1fb8f2c0dec57af16afe39317718d2dbd17c2 100755 --- a/doc/README.md +++ b/doc/README.md @@ -1,12 +1,12 @@ If you only want to get the documentation, note that a pre-built version for the latest release is available -[online](http://valentin.emiya.pages.lis-lab.fr/pomad/). +[online](http://valentin.emiya.pages.lis-lab.fr/skpomade/). Sphinx is used to generate the API and reference documentation. ## Instructions to build the documentation -In addition to installing ``pomad`` and its dependencies, install the +In addition to installing ``skpomade`` and its dependencies, install the Python packages needed to build the documentation by entering ``` diff --git a/doc/_notebooks/pomad.ipynb b/doc/_notebooks/pomad.ipynb index 950b15439c8572bc2cc5a4358eeea204392c8d45..34b55144c04c4fb1f680f4aa34450a6966389e43 100755 --- a/doc/_notebooks/pomad.ipynb +++ b/doc/_notebooks/pomad.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Tutorial for `pomad`: PrObabilistic MAtrix Decompositions" + "# Tutorial for `skpomade`: PrObabilistic MAtrix DEcompositions" ] }, { @@ -52,8 +52,8 @@ }, "outputs": [], "source": [ - "from pomad.utils import build_test_matrix\n", - "from pomad.range_approximation import randomized_range_finder, adaptive_randomized_range_finder" + "from skpomade.utils import build_test_matrix\n", + "from skpomade.range_approximation import randomized_range_finder, adaptive_randomized_range_finder" ] }, { @@ -182,8 +182,17 @@ "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.2" + }, + "pycharm": { + "stem_cell": { + "cell_type": "raw", + "source": [], + "metadata": { + "collapsed": false + } + } } }, "nbformat": 4, "nbformat_minor": 2 -} +} \ No newline at end of file diff --git a/doc/conf.py b/doc/conf.py index addf02bcb697a696b567ecc3206e9c24b78a5a7c..edd5aa36c51d36be48e93bd3841ec0bb3b0f2579 100755 --- a/doc/conf.py +++ b/doc/conf.py @@ -5,12 +5,12 @@ import os from datetime import date -import pomad +import skpomade # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.insert(0, os.path.abspath('../pomad/')) +sys.path.insert(0, os.path.abspath('../skpomade/')) # -- General configuration ------------------------------------------------ @@ -46,7 +46,7 @@ source_encoding = 'utf-8-sig' master_doc = 'index' # General information about the project. -project = 'pomad' +project = 'skpomade' author = 'V. Emiya' copyright = '2019-{}, {}'.format(date.today().year, author) @@ -55,9 +55,9 @@ copyright = '2019-{}, {}'.format(date.today().year, author) # built documents. # # The short X.Y version. -version = pomad.__version__ +version = skpomade.__version__ # The full version, including alpha/beta/rc tags. -release = pomad.__version__.replace('_', '') +release = skpomade.__version__.replace('_', '') # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -193,7 +193,7 @@ html_search_options = {'type': 'default'} html_search_scorer = '' # Output file base name for HTML help builder. -htmlhelp_basename = 'pomaddoc' +htmlhelp_basename = 'skpomadedoc' # -- Options for LaTeX output --------------------------------------------- @@ -215,7 +215,7 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, 'pomad.tex', 'pomad Documentation', author, 'manual'), + (master_doc, 'skpomade.tex', 'skpomade Documentation', author, 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -242,7 +242,7 @@ latex_domain_indices = True # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [(master_doc, 'pomad', 'pomad Documentation', [author], 1)] +man_pages = [(master_doc, 'skpomade', 'skpomade Documentation', [author], 1)] # If true, show URL addresses after external links. man_show_urls = False @@ -253,7 +253,7 @@ man_show_urls = False # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - (master_doc, 'pomad.tex', 'pomad Documentation', author, 'manual'), + (master_doc, 'skpomade.tex', 'skpomade Documentation', author, 'manual'), ] # Documents to append as an appendix to all manuals. diff --git a/doc/copyright.rst b/doc/copyright.rst index f786f661cb3d829f08cf1e4866ba994a228944e8..b59acfedeeda09d2b7672cd2283673a77dda6279 100755 --- a/doc/copyright.rst +++ b/doc/copyright.rst @@ -20,7 +20,7 @@ and Ronan Hamon on other packages. Description ----------- -`pomad` is a Python implementation of algorithms from +`skpomade` is a Python implementation of algorithms from paper *Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -29,7 +29,7 @@ Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/090 Version ------- -* pomad version = 0.1.3 +* skpomade version = 0.1.3 Licence ------- diff --git a/doc/index.rst b/doc/index.rst index 9e42c85078a998c4993d055773df6544f5f09446..1fd54ccb0e2602d32dc060dc621d7b27401cfcda 100755 --- a/doc/index.rst +++ b/doc/index.rst @@ -1,20 +1,20 @@ ########################## -:mod:`pomad` documentation +:mod:`skpomade` documentation ########################## Overview ======== -:mod:`pomad`: stands for PrObabilistic MAtrix Decompositions. +:mod:`skpomade`: stands for PrObabilistic MAtrix DEcompositions. -Package :mod:`pomad` offers a Python implementation of algorithms from +Package :mod:`skpomade` offers a Python implementation of algorithms from paper *Finding Structure with Randomness: Probabilistic Algorithms for Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. -:mod:`pomad`: is mainly composed of two sub-modules: +:mod:`skpomade`: is mainly composed of two sub-modules: -* :mod:`pomad.range_approximation` contains algorithms for Stage A Randomized Schemes for Approximating the Range -* :mod:`pomad.factorization_construction` contains algorithms for Stage B Construction of Standard Factorizations +* :mod:`skpomade.range_approximation` contains algorithms for Stage A Randomized Schemes for Approximating the Range +* :mod:`skpomade.factorization_construction` contains algorithms for Stage B Construction of Standard Factorizations Not all algorithms have been implemented yet. diff --git a/doc/installation.rst b/doc/installation.rst index 24d8496b2ff78418e5289b720ca992c3c7cb5656..5e4a46ce927849d7291e6f499f5b70903f33a299 100755 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -1,13 +1,13 @@ Installation ############ -``pomad`` requires the following packages: +``skpomade`` requires the following packages: * `python >= 3.5 <https://wiki.python.org/moin/BeginnersGuide/Download>`_ * `numpy >= 1.13 <http://www.numpy.org>`_ Make sure your Python environment is properly configured. It is recommended to -install ``pomad`` in a virtual environment. +install ``skpomade`` in a virtual environment. Release version --------------- @@ -18,20 +18,20 @@ manager) installed. If you do not, refer to the `Pip documentation Install the current release with ``pip``:: - pip install pomad + pip install skpomade To upgrade to a newer release use the ``--upgrade`` flag:: - pip install --upgrade pomad + pip install --upgrade skpomade If you do not have permission to install software systemwide, you can install into your user directory using the ``--user`` flag:: - pip install --user pomad + pip install --user skpomade -Alternatively, you can manually download ``pomad`` from its `GitLab project -<https://gitlab.lis-lab.fr/valentin.emiya/pomad>`_ or `PyPI -<https://pypi.python.org/pypi/pomad>`_. To install one of these versions, +Alternatively, you can manually download ``skpomade`` from its `GitLab project +<https://gitlab.lis-lab.fr/valentin.emiya/skpomade>`_ or `PyPI +<https://pypi.python.org/pypi/skpomade>`_. To install one of these versions, unpack it and run the following from the top-level source directory using the Terminal:: @@ -41,17 +41,17 @@ Development version ------------------- If you have `Git <https://git-scm.com/>`_ installed on your system, it is also -possible to install the development version of ``pomad``. +possible to install the development version of ``skpomade``. Before installing the development version, you may need to uninstall the -standard version of ``pomad`` using ``pip``:: +standard version of ``skpomade`` using ``pip``:: - pip uninstall pomad + pip uninstall skpomade Clone the Git repository:: - git clone git@gitlab.lis-lab.fr:valentin.emiya/pomad.git - cd pomad + git clone git@gitlab.lis-lab.fr:valentin.emiya/skpomade.git + cd skpomade You may also need to install required packages:: @@ -61,7 +61,7 @@ Then execute ``pip`` with flag ``-e`` to follow the development branch:: pip install -e . -To update ``pomad`` at any time, in the same directory do:: +To update ``skpomade`` at any time, in the same directory do:: git pull diff --git a/doc/references.rst b/doc/references.rst index e3d591d684ed064ef03d4c5ca521ae95e6d74fb0..94b34d8eb6a25814a5a9fc1b28aaec0896553761 100755 --- a/doc/references.rst +++ b/doc/references.rst @@ -4,26 +4,26 @@ References :Release: |release| :Date: |today| -pomad\.factorization_construction module +skpomade\.factorization_construction module ---------------------------------------- -.. automodule:: pomad.factorization_construction +.. automodule:: skpomade.factorization_construction :members: :undoc-members: :show-inheritance: -pomad\.range_approximation module +skpomade\.range_approximation module --------------------------------- -.. automodule:: pomad.range_approximation +.. automodule:: skpomade.range_approximation :members: :undoc-members: :show-inheritance: -pomad\.utils module +skpomade\.utils module ------------------- -.. automodule:: pomad.utils +.. automodule:: skpomade.utils :members: :undoc-members: :show-inheritance: diff --git a/doc/tutorials.rst b/doc/tutorials.rst index 273e21d8106adde60380afb8aa378f5d475cefb5..debcec75433415a7e5d4c7a16ece3127fd443eb4 100755 --- a/doc/tutorials.rst +++ b/doc/tutorials.rst @@ -4,4 +4,4 @@ Tutorials .. toctree:: :maxdepth: 1 - _notebooks/pomad.ipynb + _notebooks/skpomade.ipynb diff --git a/setup.cfg b/setup.cfg index e793c6e647787d5d3f3d8d375ee260fe38040ac4..709d2abeee683cd347afb6942f883b5d45b8774a 100755 --- a/setup.cfg +++ b/setup.cfg @@ -1,15 +1,15 @@ [tool:pytest] -testpaths = pomad +testpaths = skpomade addopts = --verbose --cov-report=term-missing --cov-report=html - --cov=pomad + --cov=skpomade --doctest-modules [coverage:run] branch = True -source = pomad -include = */pomad/* +source = skpomade +include = */skpomade/* omit = */tests/* [coverage:report] diff --git a/setup.py b/setup.py index 5eb9de6d28ae281064147d46052cdc8841c2ed2e..92f5c84cbdda42c96b8f50c022443f1fc0232677 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -32,7 +32,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -56,8 +56,8 @@ import os from setuptools import setup, find_packages import sys -NAME = 'pomad' -DESCRIPTION = 'PrObabilistic MAtrix Decompositions from Halko et al., 2011' +NAME = 'skpomade' +DESCRIPTION = 'PrObabilistic MAtrix DEcompositions from Halko et al., 2011' LICENSE = 'GNU General Public License v3 (GPLv3)' URL = 'https://gitlab.lis-lab.fr/valentin.emiya/{}'.format(NAME) AUTHOR = 'Valentin Emiya' diff --git a/pomad/__init__.py b/skpomade/__init__.py similarity index 100% rename from pomad/__init__.py rename to skpomade/__init__.py diff --git a/pomad/_dev_range_approximation.py b/skpomade/_dev_range_approximation.py similarity index 98% rename from pomad/_dev_range_approximation.py rename to skpomade/_dev_range_approximation.py index 823971c6299cff26e86b853372f490ebfdd30794..6cd502602b0afb268ecd727528cbd276a355264c 100755 --- a/pomad/_dev_range_approximation.py +++ b/skpomade/_dev_range_approximation.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -303,7 +303,7 @@ def adaptive_randomized_range_finder_mem_alloc(a, tolerance, r=5, # m, n, p_a = 100, 100, 2 # a_mat = build_test_matrix(m, n, p=p_a, rand_state=0) # a_op = aslinearoperator(a_mat) -# from pomad.utils import FourierMultiplierOp +# from skpomade.utils import FourierMultiplierOp # n = 123 # a_op = FourierMultiplierOp(n=n, p=30) # a_mat = a_op @ np.eye(n) diff --git a/pomad/factorization_construction.py b/skpomade/factorization_construction.py similarity index 95% rename from pomad/factorization_construction.py rename to skpomade/factorization_construction.py index e7110337285bce689ad7d5e0a4328a9dd5226af9..3a1e559a3060ad5afef2ae610d2553c07bfb6964 100755 --- a/pomad/factorization_construction.py +++ b/skpomade/factorization_construction.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -115,9 +115,9 @@ def evd_nystrom(a, q_mat): # TODO refactor this code into nb # if __name__ == '__main__': -# from pomad.range_approximation import randomized_range_finder +# from skpomade.range_approximation import randomized_range_finder # import matplotlib.pyplot as plt -# from pomad.utils import FourierMultiplierOp +# from skpomade.utils import FourierMultiplierOp # print('Test evd with operator') # # n = 53 diff --git a/pomad/range_approximation.py b/skpomade/range_approximation.py similarity index 98% rename from pomad/range_approximation.py rename to skpomade/range_approximation.py index b142c36de1969be0a290930f2a4001c4bc70716c..18f54e9f2065cfd68a2b2cff92fcf770eeda323d 100755 --- a/pomad/range_approximation.py +++ b/skpomade/range_approximation.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- diff --git a/pomad/tests/__init__.py b/skpomade/tests/__init__.py similarity index 100% rename from pomad/tests/__init__.py rename to skpomade/tests/__init__.py diff --git a/pomad/tests/test_dev_range_approximation.py b/skpomade/tests/test_dev_range_approximation.py similarity index 92% rename from pomad/tests/test_dev_range_approximation.py rename to skpomade/tests/test_dev_range_approximation.py index 806a51633391c0f17c2574c69f0ed4d3ca90f46e..83c04b63dc285d7df65e6a52969c27bd63e75e91 100755 --- a/pomad/tests/test_dev_range_approximation.py +++ b/skpomade/tests/test_dev_range_approximation.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -51,7 +51,7 @@ # # ######### COPYRIGHT ######### -"""Test of the module :module:`pomad._dev_range_approximation` +"""Test of the module :module:`skpomade._dev_range_approximation` .. moduleauthor:: Valentin Emiya """ @@ -60,10 +60,10 @@ import numpy as np from scipy.sparse.linalg import aslinearoperator, svds -from pomad.range_approximation import adaptive_randomized_range_finder -from pomad.utils import \ +from skpomade.range_approximation import adaptive_randomized_range_finder +from skpomade.utils import \ build_random_psd_matrix, build_test_matrix, FourierMultiplierOp -from pomad._dev_range_approximation import \ +from skpomade._dev_range_approximation import \ adaptive_randomized_range_finder_naive, \ adaptive_randomized_range_finder_nolist, \ adaptive_randomized_range_finder_circy, \ diff --git a/pomad/tests/test_factorization_construction.py b/skpomade/tests/test_factorization_construction.py similarity index 95% rename from pomad/tests/test_factorization_construction.py rename to skpomade/tests/test_factorization_construction.py index ea5bda2229f4853a07dab4d1798059c1ccd41a02..8397bb6b340f845b8ee345a8de7224cdcc93d8d4 100755 --- a/pomad/tests/test_factorization_construction.py +++ b/skpomade/tests/test_factorization_construction.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -51,7 +51,7 @@ # # ######### COPYRIGHT ######### -"""Test of the module :module:`pomad.factorization_construction` +"""Test of the module :module:`skpomade.factorization_construction` .. moduleauthor:: Valentin Emiya """ @@ -59,9 +59,9 @@ import unittest import numpy as np from scipy.sparse.linalg import aslinearoperator, eigs, svds -from pomad.factorization_construction import direct_svd, evd_nystrom -from pomad.range_approximation import randomized_range_finder -from pomad.utils import \ +from skpomade.factorization_construction import direct_svd, evd_nystrom +from skpomade.range_approximation import randomized_range_finder +from skpomade.utils import \ build_random_psd_matrix, build_test_matrix, FourierMultiplierOp diff --git a/pomad/tests/test_range_approximation.py b/skpomade/tests/test_range_approximation.py similarity index 95% rename from pomad/tests/test_range_approximation.py rename to skpomade/tests/test_range_approximation.py index a0ea8621a7c4e03653bb81436010da898b465da9..63f627a07a2ab3bf4af2cbc16fd340d7e2c0ba22 100755 --- a/pomad/tests/test_range_approximation.py +++ b/skpomade/tests/test_range_approximation.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -51,7 +51,7 @@ # # ######### COPYRIGHT ######### -"""Test of the module :module:`pomad.range_approximation` +"""Test of the module :module:`skpomade.range_approximation` .. moduleauthor:: Valentin Emiya """ @@ -60,9 +60,9 @@ import numpy as np from scipy.sparse.linalg import aslinearoperator, svds -from pomad.range_approximation import \ +from skpomade.range_approximation import \ randomized_range_finder, adaptive_randomized_range_finder -from pomad.utils import \ +from skpomade.utils import \ build_random_psd_matrix, build_test_matrix, FourierMultiplierOp diff --git a/pomad/tests/test_utils.py b/skpomade/tests/test_utils.py similarity index 97% rename from pomad/tests/test_utils.py rename to skpomade/tests/test_utils.py index 4cfca2b70f19a2ec6bbc571bb59ecf99d423a3c6..30ed708c6df6db6e3f95c1e280f8ffdd399ffb53 100755 --- a/pomad/tests/test_utils.py +++ b/skpomade/tests/test_utils.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -51,7 +51,7 @@ # # ######### COPYRIGHT ######### -"""Test of the module :module:`pomad.utils` +"""Test of the module :module:`skpomade.utils` .. moduleauthor:: Valentin Emiya """ @@ -59,7 +59,7 @@ import unittest import numpy as np -from pomad.utils import \ +from skpomade.utils import \ build_test_matrix, build_random_psd_matrix, FourierMultiplierOp diff --git a/pomad/utils.py b/skpomade/utils.py similarity index 96% rename from pomad/utils.py rename to skpomade/utils.py index a41698a2505ea50f495d06ccf67dbb0418b3bcab..b1a56d94809923b7b53ad408456d545a578e422a 100755 --- a/pomad/utils.py +++ b/skpomade/utils.py @@ -22,7 +22,7 @@ # Description # ----------- # -# `pomad` is a Python implementation of algorithms from +# `skpomade` is a Python implementation of algorithms from # paper *Finding Structure with Randomness: Probabilistic Algorithms for # Constructing Approximate Matrix Decompositions*, by N. Halko, P. G. # Martinsson and J. A. Tropp, SIAM review, 53 (2), 2011, https://arxiv.org/abs/0909.4061. @@ -31,7 +31,7 @@ # Version # ------- # -# * pomad version = 0.1.3 +# * skpomade version = 0.1.3 # # Licence # ------- @@ -50,7 +50,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # # ######### COPYRIGHT ######### -"""Utils classes and functions for pomad. +"""Utils classes and functions for skpomade. .. moduleauthor:: Valentin Emiya """