Skip to main content

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
    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).

Metadata

Release files for xprec 1.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xprec 1.4.7
File Size Uploaded
xprec-1.4.7.tar.gz 35.1 kB Details

Release files / xprec-1.4.7.tar.gz

Download URL xprec-1.4.7.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6d1549274352cb3892f78d88480647c91d7cc06dd6e5e11abfa58da34f6eeed4
BLAKE2b-256 checksum
How to use checksums
8e900b89bfb6f3977534d63204443d2c32219b189af69ad61b724bf32abc5eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

1.4.7 This release

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.11

1 release file

1.3.10

1 release file

1.3.9

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.16

1 release file

1.2.15

1 release file

1.2.14

1 release file

1.2.13

1 release file

1.2.12

1 release file

1.2.11

1 release file

1.2.10

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.1

1 release file

1.1.1

27 release files

1.1

1 release file

1.0.1

1 release file

1.0

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page