xprec


Namexprec JSON
Version 1.3.11 PyPI version JSON
download
home_pagehttps://github.com/tuwien-cms/xprec
Summaryxprec precision numpy extension
upload_time2023-06-29 13:45:29
maintainer
docs_urlNone
authorMarkus Wallerberger
requires_python>=3
license
keywords double-double
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Library for double-double arithmetic calculation
================================================

Extension module for numpy providing the `ddouble` data type.

Loading this module registers an additional scalar data type `ddouble` with
numpy implementing double-double arithmetic.  You can use use the data type
by passing `dtype=xprec.ddouble` to numpy functions.

The `xprec.linalg` module provides some linear algebra subroutines, in
particular QR, RRQR, SVD and truncated SVD.

Installation
------------

    $ pip install xprec

Quickstart
----------

    import numpy as np
    x = np.linspace(0, np.pi)

    # import double-double precision data type
    from xprec import ddouble
    x = x.astype(ddouble)
    y = x * x + 1
    z = np.sin(x)

    # do some linalg
    import xprec.linalg
    A = np.vander(np.linspace(-1, 1, 80, dtype=ddouble), 150)
    U, s, VT = xprec.linalg.svd(A)

Trouble shooting
---

* icc<br>
You may suffer from a long runtime when xprec is built with icc. If you encounter this problem, please try the following:

```
CFLAGS="-fp-model=precise" pip install xprec
```

Licence
-------
The xprec library is
Copyright (C) 2021 Markus Wallerberger.
Licensed under the MIT license (see LICENSE.txt).

Contains code from the QD library, which is
Copyright (C) 2012 Yozo Hida, Xiaoye S. Li, David H. Bailey.
Released under a modified BSD license (see QD-LICENSE.txt).



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tuwien-cms/xprec",
    "name": "xprec",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "double-double",
    "author": "Markus Wallerberger",
    "author_email": "markus.wallerberger@tuwien.ac.at",
    "download_url": "https://files.pythonhosted.org/packages/f5/fe/bfba3623b40257323f001d3fb0ba8d66a104a56030281f3e21014897afdb/xprec-1.3.11.tar.gz",
    "platform": null,
    "description": "Library for double-double arithmetic calculation\n================================================\n\nExtension module for numpy providing the `ddouble` data type.\n\nLoading this module registers an additional scalar data type `ddouble` with\nnumpy implementing double-double arithmetic.  You can use use the data type\nby passing `dtype=xprec.ddouble` to numpy functions.\n\nThe `xprec.linalg` module provides some linear algebra subroutines, in\nparticular QR, RRQR, SVD and truncated SVD.\n\nInstallation\n------------\n\n    $ pip install xprec\n\nQuickstart\n----------\n\n    import numpy as np\n    x = np.linspace(0, np.pi)\n\n    # import double-double precision data type\n    from xprec import ddouble\n    x = x.astype(ddouble)\n    y = x * x + 1\n    z = np.sin(x)\n\n    # do some linalg\n    import xprec.linalg\n    A = np.vander(np.linspace(-1, 1, 80, dtype=ddouble), 150)\n    U, s, VT = xprec.linalg.svd(A)\n\nTrouble shooting\n---\n\n* icc<br>\nYou may suffer from a long runtime when xprec is built with icc. If you encounter this problem, please try the following:\n\n```\nCFLAGS=\"-fp-model=precise\" pip install xprec\n```\n\nLicence\n-------\nThe xprec library is\nCopyright (C) 2021 Markus Wallerberger.\nLicensed under the MIT license (see LICENSE.txt).\n\nContains code from the QD library, which is\nCopyright (C) 2012 Yozo Hida, Xiaoye S. Li, David H. Bailey.\nReleased under a modified BSD license (see QD-LICENSE.txt).\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "xprec precision numpy extension",
    "version": "1.3.11",
    "project_urls": {
        "Homepage": "https://github.com/tuwien-cms/xprec"
    },
    "split_keywords": [
        "double-double"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5febfba3623b40257323f001d3fb0ba8d66a104a56030281f3e21014897afdb",
                "md5": "81114d5c69afdfb07fc0c8a1c8f64d81",
                "sha256": "ca94299ca7265fee42d0a355e2dd1379a0d57d1d111ceddf27eb932f56719d75"
            },
            "downloads": -1,
            "filename": "xprec-1.3.11.tar.gz",
            "has_sig": false,
            "md5_digest": "81114d5c69afdfb07fc0c8a1c8f64d81",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 34583,
            "upload_time": "2023-06-29T13:45:29",
            "upload_time_iso_8601": "2023-06-29T13:45:29.920265Z",
            "url": "https://files.pythonhosted.org/packages/f5/fe/bfba3623b40257323f001d3fb0ba8d66a104a56030281f3e21014897afdb/xprec-1.3.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-29 13:45:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tuwien-cms",
    "github_project": "xprec",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "xprec"
}
        
Elapsed time: 0.08967s