Skip to main content

A Python package wrapping the essential mathematical special functions in libm-ext with vectorized support.

Project description

libm-ext

A Python package wrapping the essential mathematical special functions in libm-ext with vectorized support.

License: MIT OR Apache-2.0 PyPI

Trigonometric functions

  • sinpi / sinpif for $\sin(\pi x)$ (double-precision / single-precision)
  • cospi / cospif for $\cos(\pi x)$ (double-precision / single-precision)
  • sincospi / sincospif for $\sin(\pi x)$ and $\cos(\pi x)$ (double-precision / single-precision)

Usage

Scalar functions

from libm_ext import sinpi, cospi, sincospi

sinpi(1.0)
cospi(1.0)
sincospi(1.0)

Vectorized functions with NumPy ndarray

import numpy as np
from libm_ext.vectorized import sinpi, cospi

x = np.random.standard_normal(16000)
sinpi(x)
cospi(x)

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libm_ext-0.0.2.tar.gz (35.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

libm_ext-0.0.2-cp314-cp314t-win_arm64.whl (207.9 kB view details)

Uploaded CPython 3.14tWindows ARM64

libm_ext-0.0.2-cp313-cp313t-win_arm64.whl (207.7 kB view details)

Uploaded CPython 3.13tWindows ARM64

libm_ext-0.0.2-cp311-abi3-win_arm64.whl (210.0 kB view details)

Uploaded CPython 3.11+Windows ARM64

libm_ext-0.0.2-cp311-abi3-win_amd64.whl (219.0 kB view details)

Uploaded CPython 3.11+Windows x86-64

libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl (412.5 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl (397.0 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl (345.2 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl (353.3 kB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file libm_ext-0.0.2.tar.gz.

File metadata

  • Download URL: libm_ext-0.0.2.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libm_ext-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1732d97bd6ca2621b4ca2a9d75f5d9e6b9f1dc4ce8bf8bc478562b62ec96e814
MD5 3787eb2bfb8c281715ff2b00f0cd5ab7
BLAKE2b-256 a8fe0461a478c5e4b111f5141db63446f4f02e55599cb6b630ad9f609708f01b

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2.tar.gz:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp314-cp314t-win_arm64.whl.

File metadata

  • Download URL: libm_ext-0.0.2-cp314-cp314t-win_arm64.whl
  • Upload date:
  • Size: 207.9 kB
  • Tags: CPython 3.14t, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libm_ext-0.0.2-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 19d43fcf9662c473714898d3ae88750430b5b61ad89d4ea396334ea2378c074b
MD5 29400183063cc5028f17340b4152f073
BLAKE2b-256 7f4974938e9e558670e8baa804c419bc073f657b08887ee31df34ea524a8cf4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp314-cp314t-win_arm64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp313-cp313t-win_arm64.whl.

File metadata

  • Download URL: libm_ext-0.0.2-cp313-cp313t-win_arm64.whl
  • Upload date:
  • Size: 207.7 kB
  • Tags: CPython 3.13t, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libm_ext-0.0.2-cp313-cp313t-win_arm64.whl
Algorithm Hash digest
SHA256 8891d93e455a0bfa9e9e1a3bd7a4fd02a26afd76ec69935dc4b7f8ef5cc49d94
MD5 ef7be3f5883b037d8737b69ac43359fd
BLAKE2b-256 ac1556eeb5763243c360f57434cbe3d5462129bbf1d0a0504106536fca58dbe5

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp313-cp313t-win_arm64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-win_arm64.whl.

File metadata

  • Download URL: libm_ext-0.0.2-cp311-abi3-win_arm64.whl
  • Upload date:
  • Size: 210.0 kB
  • Tags: CPython 3.11+, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d76e34aa77819ec9dcda643ab7387c93aa168a35f8e05c1c718bf1be9301be43
MD5 d3894ac41e7be36f1ba0d9e69d063510
BLAKE2b-256 19e7f403989894349a83fac5e6bd7ca61af60882fc847017f89de9d104688ff0

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-win_arm64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: libm_ext-0.0.2-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 219.0 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f13102696dd84d0533cf52c605ecac8a60d464d86c253114521e6a72b97e5fc7
MD5 ec45324c3cee6bd1841320ac3c20a226
BLAKE2b-256 6d91f3961b1eae0752686b3c50d37e6f31572acd3642a85379f5ffc5519bec7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-win_amd64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e6d9db267bdd7d3b264fb8d6f42a9bf887186b2e8a3333f6ed079e0bd5b8a03b
MD5 393fbd1904c2ac911ff755cde32ed929
BLAKE2b-256 cde9eae0e32607357a627cc46530e0e81fc813a97585d16f00c04f53bf7c0a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 59336c76c8a0de3335199417faa3d3ac769271b121fad7ca7635bd7128d1e9ef
MD5 51a1c3345184cf15eee28455e3733e48
BLAKE2b-256 dfe77d4d0316c26e58bab73861d6c8d340dd42cf225ae5ee861e78978c058a4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf279064f27d96ab6a26c4bca4cbf55e1ab379ca52ee251b29856b2c13a00ff8
MD5 4567047cf75ffbb79cf97c3b8a01ef5e
BLAKE2b-256 30fd141b36381ae49db64c982e51d6c904535cb5025e0c68e9261b6ac5a55258

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 385e9eb3d0eed74869d48b0ed0ac85c24614300b2a7f49a3049fec178cb182e9
MD5 a56c9d1e1f45b05feb5cc36ea6f0c944
BLAKE2b-256 02f803e7df92b6110d7e38c163396e24e7a5ac4f9d6d64c87df412cd3f24f9b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for libm_ext-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: publish.yml on tangxiangong/libm-ext

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page