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.1a3.tar.gz (14.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.1a3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quaternionic-0.0.1a3.tar.gz
  • Upload date:
  • Size: 14.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.1a3.tar.gz
Algorithm Hash digest
SHA256 0d73514f04407c60a60a9d9fcc274d3dcae6fb2aea61d57f6c7a50e966dfae34
MD5 bf386714a90cd59e898baf43949a004a
BLAKE2b-256 b084e86488ec7412581f83da7610cce37a0dc283b0df6e0299a009f5dd33c625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quaternionic-0.0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 15.4 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.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 de9ffd5ee7cc56bca878e476d3cfc22e342eb5662bc293bdeccd49216b5f345c
MD5 26a0ae03e738437c9f1258756ed49fbc
BLAKE2b-256 0db3005dd731320ce939f01bf0e897e9c39f17295224f52a0f25f914ec6b4682

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