Description
quaternion is a Python module that adds a quaternion data type to NumPy. Once it is installed, quaternions behave like built-in NumPy values, so you can store arrays of them and use the usual array operations on rotations and other quaternion calculations. The code started from work by Martin Ling and was rewritten to run on newer Python versions and to fix bugs, and it greatly expands what you can do with quaternions. The README recommends installing with conda, and also shows pip and a manual build. Because pip compiles the code, you need a working C compiler. The full documentation is on Read the Docs, and most functions have docstrings. The module is aimed at scientists and engineers who work with rotations in Python. A related pure-Python package called quaternionic is mentioned in the README for comparison.…
Highlights
- Quaternion dtype for NumPy arrays
- Installs with conda or pip
- Compiles from source with a C compiler
- Full documentation on Read the Docs
- Aimed at rotation work in science and engineering
Ratings & Reviews
No ratings yet
Be the first to rate Quaternion.
People also visit
Quaternion FAQ
What is the quaternion module?
It is a Python package that adds a quaternion data type to NumPy, so you can work with quaternions in arrays.
How do I install it?
The README recommends conda. You can also use pip with python -m pip, or download the code and build it manually.
What do I need to build it?
A working C compiler, since pip compiles the code during installation.
Where is the documentation?
The full documentation is on Read the Docs, and most functions include docstrings that explain how they work.
What are the best Quaternion alternatives?
Popular alternatives to Quaternion include Math to Code, Liegroups and Kotlin Math. See all Quaternion alternatives


