{ "info": { "author": "Jonas I. Liechti", "author_email": "jon.liechti@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "VecPy: Some Linear Algebra Basics in Python\n===========================================\n\n.. image:: https://img.shields.io/pypi/v/requests.svg\n :target: https://pypi.python.org/pypi/vecpy\n\n.. image:: https://img.shields.io/pypi/dm/requests.svg\n :target: https://pypi.python.org/pypi/vecpy\n\nA quick one:\n\n.. code-block:: python\n\n >>> from vecpy import Vector as Vec\n >>> v = Vec(0, 2)\n >>> w = Vec([1, 3])\n >>> v + 2 \n >>> v + w \n\nFeatures\n--------\n\n- Basic operations ( dot-product, projection, rescaling, etc.)\n\n\nInstallation\n------------\n\nTo install VecPy, simply:\n\n.. code-block:: bash\n\n $ pip install vecpy\n\n\nDocumentation\n-------------\n\nThis is a simple package allowing to complete very basic linear algebra tasks.\n\nIt is best explained by example:\n\n.. code-block:: python\n\n >>> v = Vec(0, 2)\n >>> w = Vec(1, 3)\n\n\nYou can do basic rescaling of a vector:\n\n.. code-block:: python\n\n >>> v_twice = v ^ 2\n >>> print v_twice.length == 2 * v.length\n >>> v_unit = v ^ 0\n >>> print v_unit.length\n \nAdding scalar and other vectors:\n\n.. code-block:: python\n\n >>> v + 2\n >>> v + w\n ...\n\n\nMultiplication and dot-product\n\n.. code-block:: python\n\n >>> v * 3\n >>> v.dot(w)\n\nA vector has several properties:\n\n.. code-block:: python\n\n >>> v.length\n >>> v.dim\n \nYou can specify which norm to use (default is the Euclidean)\n\n.. code-block:: python\n\n >>> v.norm(1)\n >>> v.norm('inf')\n >>> v.norm(2) == v.length\n ...\n \nYou can project one vector on another:\n\n.. code-block:: python\n\n >>> w_proj_v = v.proj(w)\n >>> ratio = v.proj(w, get_scale=True)\n\nIteration is supported as well:\n\n.. code-block:: python\n\n >>> print [xi for xi in v]\n\nString representations:\n\n.. code-block:: python\n\n >>> print str(v)\n >>> print '{:[x, y, z]}'.format(v)", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/j-i-l/VecPy/tarball/0.1.5", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/j-i-l/VecPy", "keywords": "vector,linear algebra,projection", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "vecpy", "package_url": "https://pypi.org/project/vecpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vecpy/", "project_urls": { "Download": "https://github.com/j-i-l/VecPy/tarball/0.1.5", "Homepage": "https://github.com/j-i-l/VecPy" }, "release_url": "https://pypi.org/project/vecpy/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Simple Vector package to help with basic linear algebra.", "version": "0.1.6" }, "last_serial": 1617379, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e083d8e7b1179d6efdfa75f9897210ea", "sha256": "ad1818a17363e15de2db2ceda9164886ffa393c930355d2bea30deaa108076e8" }, "downloads": -1, "filename": "vecpy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e083d8e7b1179d6efdfa75f9897210ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3581, "upload_time": "2015-07-02T21:58:32", "url": "https://files.pythonhosted.org/packages/10/00/89e8b1fe8199052c12f78d3974e3c333c8ba5e33442feb8828f9a1ae228d/vecpy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5c28e10b9b7425bd501591bdbff7889a", "sha256": "1e2774f97ceebb836b8d99441205e85d5da0bf50136fd514ccc1ec4e3637437e" }, "downloads": -1, "filename": "vecpy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "5c28e10b9b7425bd501591bdbff7889a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4260, "upload_time": "2015-07-02T22:54:16", "url": "https://files.pythonhosted.org/packages/2f/b0/4573720bd86e5121be5154af8a926847437bdafdc67c55e92190971daada/vecpy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0260cf584131bcbe12ecbf3a5f4f1766", "sha256": "280190b7768321346a88b76ea512d56f65a2c9f4f3b54019391991399d546e91" }, "downloads": -1, "filename": "vecpy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0260cf584131bcbe12ecbf3a5f4f1766", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4245, "upload_time": "2015-07-02T22:57:34", "url": "https://files.pythonhosted.org/packages/38/16/1e98a5387d8fd92168aa69a74df9046cc6b5e82ee049fb920b5562144ff7/vecpy-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "578aa3ebbfc290d79feecaf82fb36892", "sha256": "62742f2d25c3808d934119df5a3c5cd0d96cb8a0db6ff120ca7f318963f969c2" }, "downloads": -1, "filename": "vecpy-0.1.3.tar.gz", "has_sig": false, "md5_digest": "578aa3ebbfc290d79feecaf82fb36892", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4112, "upload_time": "2015-07-02T23:31:06", "url": "https://files.pythonhosted.org/packages/d4/e9/f431c791f3346c69e850c3a9d5fb7954ed05b010312b659bcda56712f531/vecpy-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c3876159da6c0576997144384ad766d1", "sha256": "56bb90d5d35f6f8ce75981a7f66926f0b7d54d7de3c084d8309f35c5f6cefe7a" }, "downloads": -1, "filename": "vecpy-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c3876159da6c0576997144384ad766d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4102, "upload_time": "2015-07-02T23:37:25", "url": "https://files.pythonhosted.org/packages/f4/88/634690cf0bdae8d0b3d451e2907ac1de4e0640bd90085ed00060d7fea5b5/vecpy-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "9cdc9a93b3cd6704fb797310cb5fdd8b", "sha256": "8e5f3a5256969774e78550d149599600bb94f2e249b4449f0cc6ca62c312a4dd" }, "downloads": -1, "filename": "vecpy-0.1.5.tar.gz", "has_sig": false, "md5_digest": "9cdc9a93b3cd6704fb797310cb5fdd8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4024, "upload_time": "2015-07-02T23:45:14", "url": "https://files.pythonhosted.org/packages/87/ee/7d16c0dc046f701f071c7d96582ff0144bb2913a283979394bfd094f2a48/vecpy-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "e5534cf3a8c1b171c472144246919f8e", "sha256": "02c3f0d2a4310182210eac32cfc92e6cb5c830755939fcbf57332484d57d1159" }, "downloads": -1, "filename": "vecpy-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e5534cf3a8c1b171c472144246919f8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4030, "upload_time": "2015-07-03T00:36:50", "url": "https://files.pythonhosted.org/packages/dc/a3/f7baf7b936aa2aa7626b7ae780bb19defe9916fe0e5eb16af0f1a10e1476/vecpy-0.1.6.tar.gz" } ], "0.1.post2": [ { "comment_text": "", "digests": { "md5": "75189fb0af632e5372222fdc0ad2bc8c", "sha256": "8dc21434266a3cb624f375a94684799f6c59822a2d365f93bd155fb2f4c26366" }, "downloads": -1, "filename": "vecpy-0.1.post2.tar.gz", "has_sig": false, "md5_digest": "75189fb0af632e5372222fdc0ad2bc8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4240, "upload_time": "2015-07-02T23:03:42", "url": "https://files.pythonhosted.org/packages/a8/76/5bcaa859c281c912932f0e50e7dcde71b25233de1bd64ff1a6fbbf4a2feb/vecpy-0.1.post2.tar.gz" } ], "0.1.post4": [ { "comment_text": "", "digests": { "md5": "c70915cc99a33d9c6b147badc24f7b80", "sha256": "215589d91d1f05f064cb95a2ced376c9f87255f4387947e47b1c9cbe2a496bf0" }, "downloads": -1, "filename": "vecpy-0.1.post4.tar.gz", "has_sig": false, "md5_digest": "c70915cc99a33d9c6b147badc24f7b80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4036, "upload_time": "2015-07-02T23:43:12", "url": "https://files.pythonhosted.org/packages/45/26/613e70a659b4b971c5e82379118b5250a737b645f7b8a5746474302cf312/vecpy-0.1.post4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e5534cf3a8c1b171c472144246919f8e", "sha256": "02c3f0d2a4310182210eac32cfc92e6cb5c830755939fcbf57332484d57d1159" }, "downloads": -1, "filename": "vecpy-0.1.6.tar.gz", "has_sig": false, "md5_digest": "e5534cf3a8c1b171c472144246919f8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4030, "upload_time": "2015-07-03T00:36:50", "url": "https://files.pythonhosted.org/packages/dc/a3/f7baf7b936aa2aa7626b7ae780bb19defe9916fe0e5eb16af0f1a10e1476/vecpy-0.1.6.tar.gz" } ] }