Skip to main content

Interpret numpy arrays as quaternion arrays with numba acceleration

Project description

Quaternions by way of numpy arrays

This module subclasses numpy's array type, interpreting the array as an array of quaternions, and accelerating the algebra using numba.

This package has evolved from the quaternion package, which adds a quaternion dtype directly to numpy. In many ways, that is a much better approach because dtypes are built in to numpy, making it more robust than this package. However, that approach has its own limitations, including that it is harder to maintain, and requires much of the code to be written in C, which also makes it harder to distribute. This package is written entirely in python code, but should actually have comparable performance.

Similar packages

Packages with similar features available on pypi include

  • numpy-quaternion
  • Quaternion
  • quaternions
  • pyquaternion
  • rowan
  • clifford
  • scipy.spatial.transform.Rotation.as_quat
  • mathutils (a Blender package with python bindings)

Also note that there is some capability to do symbolic manipulations of quaternions in these packages:

  • galgebra
  • sympy.algebras.quaternion

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

quaternionic-0.0.1a1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

quaternionic-0.0.1a1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file quaternionic-0.0.1a1.tar.gz.

File metadata

  • Download URL: quaternionic-0.0.1a1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.3 Darwin/17.7.0

File hashes

Hashes for quaternionic-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 8c8ae9b3a12ab46912c54d3632e546e7e064979bd8f8a3bf2bcaeedfe9f7a90e
MD5 c4d451a83204e7d0ba64154e727df8c2
BLAKE2b-256 03d012ce330e331189f8d259519fc156bb4f04ddc38098320aef7aa04c54ccae

See more details on using hashes here.

File details

Details for the file quaternionic-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: quaternionic-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.3 Darwin/17.7.0

File hashes

Hashes for quaternionic-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a66e05afc98e408073e522cf4f3812e36e9c84a97d1cbe1058c27431caac20f
MD5 c40e33264d3faedb7ea9a22e9fb3567d
BLAKE2b-256 12c9b03a0bb7bf207f404fb1272992d36046d813995fa9d281541518e6115962

See more details on using hashes here.

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