{ "info": { "author": "Stefan Otte", "author_email": "stefan.otte@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "############################################\nnphelper - convenient numpy helper functions\n############################################\n\n|docs| |travis|\n\nThis package contains some convenient helper function for numpy. Nothing\nfancy, but quite useful.\nIt works with python 2.7, 3.4, and 3.5.\n\n\nInstall\n============\n\nSimply install via ``pip``::\n\n pip install nphelper\n\n``nphelper`` only depends on ``numpy``.\n\n\nUsage / Features\n================\n\nCreate block arrays (in matlabs's ``[A A; B B]`` spirit):\n\n.. code:: python\n\n >>> from nphelper import block\n >>> A = np.array([[1, 2, 3]])\n >>> B = np.array([[2, 3, 4]])\n >>> C = np.ones((2, 6))\n >>> block([[A, B], [C]])\n array([[1, 2, 3, 2, 3, 4],\n [[1, 1, 1, 1, 1, 1],\n [[1, 1, 1, 1, 1, 1]])\n\nCompute the cartesian product (similar to ``itertools.product``):\n\n.. code:: python\n\n >>> from nphelper import cartesian_product\n >>> cartesian_product([[1, 2], [3, 4]])\n array([[1, 3],\n [1, 4],\n [2, 3],\n [2, 4]])\n\nEasily multiply many arrays without the cubersome ``dot`` syntax. It's also\nmuch faster than dot because it selects the fastest evaluation order.\n(This is part of numpy 1.10.0.)\n\n.. code:: python\n\n >>> from nphelper import multi_dot\n >>> A = np.random.random((10000, 100))\n >>> B = np.random.random((100, 1000))\n >>> C = np.random.random((1000, 5))\n >>> D = np.random.random((5, 333))\n >>> # Sick of this?\n >>> np.dot(np.dot(np.dot(A, B), C), D) # doctest: +SKIP\n >>> # Or this?\n >>> A.dot(B).dot(C).dot(D) # doctest: +SKIP\n >>> # Use multi_dot\n >>> multi_dot([A, B, C, D]) # doctest: +SKIP\n\n- TODO along, maxalong, minalong, sumalong, meanalong, stdalong, varalong\n\n\nDev\n===\n\nRun the tests\n-------------\n\nRun ``tox`` to run the tests for python 2.7, 3.4, and 3.5::\n\n tox\n\nYou might have to install addiotional dependencies to run the tests::\n\n- ``py.test``,\n- ``nose``,\n- ``python2.7-dev``,\n- ``python3.4-dev``, and\n- ``python3.5-dev``.\n\nBuild the Docs\n--------------\n\n::\n\n cd doc\n make html\n\nYou might have to install addiotional dependencies::\n\n pip install sphinx sphinx_rtd_theme\n\n\n\n.. ============================================================================\n.. Links\n\n.. |docs| image:: https://readthedocs.org/projects/nphelper/badge/?version=latest\n :target: http://nphelper.readthedocs.org/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. |travis| image:: https://travis-ci.org/sotte/nphelper.svg?branch=master\n :target: https://travis-ci.org/sotte/nphelper", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/sotte/nphelper", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sotte/nphelper", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "nphelper", "package_url": "https://pypi.org/project/nphelper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nphelper/", "project_urls": { "Download": "https://github.com/sotte/nphelper", "Homepage": "https://github.com/sotte/nphelper" }, "release_url": "https://pypi.org/project/nphelper/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "nphelper - convenient numpy helper functions", "version": "0.0.5" }, "last_serial": 1888088, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "bbf695c32b99636ed6a0fcf46df9d001", "sha256": "a69b6882cbe0b101e34ffeb04e454edd710294f5eee4c84f2ee4c21640c3dc07" }, "downloads": -1, "filename": "nphelper-0.0.5.tar.gz", "has_sig": false, "md5_digest": "bbf695c32b99636ed6a0fcf46df9d001", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7553, "upload_time": "2016-01-04T19:44:08", "url": "https://files.pythonhosted.org/packages/d4/e7/cf2db92e4de44006734fb442a0dbc7cb4fc217325ec7bb96f06c43ba5480/nphelper-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbf695c32b99636ed6a0fcf46df9d001", "sha256": "a69b6882cbe0b101e34ffeb04e454edd710294f5eee4c84f2ee4c21640c3dc07" }, "downloads": -1, "filename": "nphelper-0.0.5.tar.gz", "has_sig": false, "md5_digest": "bbf695c32b99636ed6a0fcf46df9d001", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7553, "upload_time": "2016-01-04T19:44:08", "url": "https://files.pythonhosted.org/packages/d4/e7/cf2db92e4de44006734fb442a0dbc7cb4fc217325ec7bb96f06c43ba5480/nphelper-0.0.5.tar.gz" } ] }