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.1a0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

quaternionic-0.0.1a0-py3-none-any.whl (11.6 kB view hashes)

Uploaded Python 3

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