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.1a4.tar.gz (17.0 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.1a4-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaternionic-0.0.1a4.tar.gz
  • Upload date:
  • Size: 17.0 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.1a4.tar.gz
Algorithm Hash digest
SHA256 e8c16bc8d608ff75dc6a4a5db4f5e8eac35f8c57a33e0d251e34ce534128e832
MD5 48562b5baf818c3c4c041c36ffcc28cf
BLAKE2b-256 34f7bb2c44b2e8de62be4816107b90fe1ab826cb3e36cdc2352c6a56a2453478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaternionic-0.0.1a4-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.1a4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd1c3e937d19bba75a6dfae703f8db2c05a2fccddd13b3ffc0463e1429eaeac0
MD5 58fc77da1f25b04931bad6ee9803647b
BLAKE2b-256 501f36d3d0065ee0917d2a2bd49793368038954d37240283dddfbe4d17481009

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