Skip to main content

Some convenience functions for Cosmology-related analysis.

Project description

Date:
March 20, 2021

docs

Documentation Status image2

tests

GitHub Actions Coverage Status

Codacy Code Quality Status Scrutinizer Status CodeClimate Quality Status

package

Supported versions Supported implementations PyPI Wheel

PyPI Package latest release GitHub Releases Development Status Downloads

Commits since latest release License

conda-forge

Conda Recipe Conda Downloads Conda Version Conda Platforms

Introduction

This package contains some numba-jit-compiled functions that perform Quaternion operations and a convenient class Quaternion that provide convenient methods wrapping around those functions.

Quaternion behaves like a Numpy array containing quaternion, e.g. respect Numpy broadcast operations, but without really imitating a numpy.ndarray and implemented a dtype.

This design allows you to write any jit-compiled functions involving those provided jit-compiled functions, and then write your own class methods that calls those functions as a convenient interface (by class inheritance.)

If you do not care to use Quaternion in other jit-compiled functions you write, check out packages below instead.

Other Python quaternion projects

Other Python projects that implements quaternions and I knew and used are:

  • zonca/quaternionarray: written in pure Python using Numpy. Note that unusually they put the real part in the last column. lastcol_quat_to_canonical and canonical_quat_to_lastcol convert between those and the canonical ordering (where real part comes first.)

  • hpc4cmb/toast: toast.qarray is a reimplementation of the above quaternionarray package in C++ with the same interface, and following the same convention.

  • moble/quaternion: implement Quaternion as a Numpy dtype in C.

  • moble/quaternionic: implement Quaternion as a Numpy dtype using Numba. This package is inspired by my expectation of quaternionic—I expected I could use them in a Numba-jit-compiled function but it doesn’t.

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

numba_quaternion-0.2.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

numba_quaternion-0.2.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file numba_quaternion-0.2.0.tar.gz.

File metadata

  • Download URL: numba_quaternion-0.2.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for numba_quaternion-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6860810527b186850999aa022240d614f27018cea07d23856d08a6cc22a6b17e
MD5 f8a529c37896237cf990b3e0d522cc2c
BLAKE2b-256 c26d8de4691bdd50b3adf2e886846ca7e34b1e4af2bc33fd834b5ba4a9801519

See more details on using hashes here.

File details

Details for the file numba_quaternion-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: numba_quaternion-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for numba_quaternion-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2374f1f28e0190a3bb53a7c71aa8d5d0aa2a6d63ea961c74ee53c85e44f7631e
MD5 a9dbcbc9ef632112d9f50429c663b39c
BLAKE2b-256 014d3d0cf592e44a2eac542fd5f1bbe9a4380a9e97603cb48ed00067ec8d00ce

See more details on using hashes here.

Supported by

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