{"id":17655136,"url":"https://github.com/ickc/python-numba_quaternion","last_synced_at":"2026-03-10T02:03:57.571Z","repository":{"id":57447245,"uuid":"348892427","full_name":"ickc/python-numba_quaternion","owner":"ickc","description":"Quaternion in any Numba-jit-compiled functions.","archived":false,"fork":false,"pushed_at":"2021-08-26T20:43:19.000Z","size":1126,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-27T05:13:19.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ickc.github.io/python-numba_quaternion/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ickc.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ickc"]}},"created_at":"2021-03-18T00:33:42.000Z","updated_at":"2024-08-16T13:52:08.000Z","dependencies_parsed_at":"2022-09-26T17:30:35.963Z","dependency_job_id":null,"html_url":"https://github.com/ickc/python-numba_quaternion","commit_stats":null,"previous_names":["ickc/numba_quaternion"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ickc/python-numba_quaternion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fpython-numba_quaternion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fpython-numba_quaternion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fpython-numba_quaternion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fpython-numba_quaternion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ickc","download_url":"https://codeload.github.com/ickc/python-numba_quaternion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ickc%2Fpython-numba_quaternion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-23T12:40:54.727Z","updated_at":"2026-03-10T02:03:52.561Z","avatar_url":"https://github.com/ickc.png","language":"Python","funding_links":["https://github.com/sponsors/ickc"],"categories":[],"sub_categories":[],"readme":".. This is auto-generated from `docs/README.md`. Do not edit this file directly.\n\n==================================================================================\nnumba_quaternion—quaternion operations that can be used within Numba-jit functions\n==================================================================================\n\n:Date:   March 29, 2021\n\n.. contents::\n   :depth: 3\n..\n\n+-------------+----------------------------------------------------------------------------------+\n| docs        | |Documentation Status| |image2|                                                  |\n+=============+==================================================================================+\n| tests       | |GitHub Actions| |Coverage Status|                                               |\n|             |                                                                                  |\n|             | |Codacy Code Quality Status| |Scrutinizer Status| |CodeClimate Quality Status|   |\n+-------------+----------------------------------------------------------------------------------+\n| package     | |Supported versions| |Supported implementations| |PyPI Wheel|                    |\n|             |                                                                                  |\n|             | |PyPI Package latest release| |GitHub Releases| |Development Status| |Downloads| |\n|             |                                                                                  |\n|             | |Commits since latest release| |License|                                         |\n+-------------+----------------------------------------------------------------------------------+\n| conda-forge | |Conda Recipe| |Conda Downloads| |Conda Version| |Conda Platforms|               |\n+-------------+----------------------------------------------------------------------------------+\n\nIntroduction\n============\n\nThis package contains some numba-jit-compiled functions that perform Quaternion operations and a convenient class ``Quaternion`` that provide convenient methods wrapping around those functions.\n\n``Quaternion`` behaves like a Numpy array containing quaternion, e.g. respect Numpy broadcast operations, but without really imitating a ``numpy.ndarray`` and implemented a ``dtype``.\n\nThis design allows you to write any jit-compiled functions involving those provided jit-compiled functions, and then write your own class methods that calls those functions as a convenient interface (by class inheritance.)\n\nIf you do not care to use Quaternion in other jit-compiled functions you write, check out packages below instead.\n\nOther Python quaternion projects\n================================\n\nOther Python projects that implements quaternions and I knew and used are:\n\n-  `zonca/quaternionarray \u003chttps://github.com/zonca/quaternionarray\u003e`__: written in pure Python using Numpy. Note that unusually they put the real part in the last column. ``lastcol_quat_to_canonical`` and ``canonical_quat_to_lastcol`` convert between those and the canonical ordering (where real part comes first.)\n-  `hpc4cmb/toast \u003chttps://github.com/hpc4cmb/toast\u003e`__: toast.qarray is a reimplementation of the above quaternionarray package in C++ with the same interface, and following the same convention.\n-  `moble/quaternion \u003chttps://github.com/moble/quaternion\u003e`__: implement Quaternion as a Numpy dtype in C.\n-  `moble/quaternionic \u003chttps://github.com/moble/quaternionic\u003e`__: implement Quaternion as a Numpy dtype using Numba. This package is inspired by my expectation of quaternionic—I expected I could use them in a Numba-jit-compiled function but it doesn’t.\n\n.. |Documentation Status| image:: https://readthedocs.org/projects/python-numba_quaternion/badge/?version=latest\n   :target: https://python-numba_quaternion.readthedocs.io/en/latest/?badge=latest\u0026style=plastic\n.. |image1| image:: https://github.com/ickc/python-numba_quaternion/workflows/GitHub%20Pages/badge.svg\n   :target: https://ickc.github.io/python-numba_quaternion\n.. |GitHub Actions| image:: https://github.com/ickc/python-numba_quaternion/workflows/Python%20package/badge.svg\n.. |Coverage Status| image:: https://codecov.io/gh/ickc/python-numba_quaternion/branch/master/graphs/badge.svg?branch=master\n   :target: https://codecov.io/github/ickc/python-numba_quaternion\n.. |Codacy Code Quality Status| image:: https://img.shields.io/codacy/grade/078ebc537c5747f68c1d4ad3d3594bbf.svg\n   :target: https://www.codacy.com/app/ickc/python-numba_quaternion\n.. |Scrutinizer Status| image:: https://img.shields.io/scrutinizer/quality/g/ickc/python-numba_quaternion/master.svg\n   :target: https://scrutinizer-ci.com/g/ickc/python-numba_quaternion/\n.. |CodeClimate Quality Status| image:: https://codeclimate.com/github/ickc/python-numba_quaternion/badges/gpa.svg\n   :target: https://codeclimate.com/github/ickc/python-numba_quaternion\n.. |Supported versions| image:: https://img.shields.io/pypi/pyversions/numba-quaternion.svg\n   :target: https://pypi.org/project/numba-quaternion\n.. |Supported implementations| image:: https://img.shields.io/pypi/implementation/numba-quaternion.svg\n   :target: https://pypi.org/project/numba-quaternion\n.. |PyPI Wheel| image:: https://img.shields.io/pypi/wheel/numba-quaternion.svg\n   :target: https://pypi.org/project/numba-quaternion\n.. |PyPI Package latest release| image:: https://img.shields.io/pypi/v/numba-quaternion.svg\n   :target: https://pypi.org/project/numba-quaternion\n.. |GitHub Releases| image:: https://img.shields.io/github/tag/ickc/python-numba_quaternion.svg?label=github+release\n   :target: https://github.com/ickc/python-numba_quaternion/releases\n.. |Development Status| image:: https://img.shields.io/pypi/status/numba-quaternion.svg\n   :target: https://pypi.python.org/pypi/numba-quaternion/\n.. |Downloads| image:: https://img.shields.io/pypi/dm/numba-quaternion.svg\n   :target: https://pypi.python.org/pypi/numba-quaternion/\n.. |Commits since latest release| image:: https://img.shields.io/github/commits-since/ickc/python-numba_quaternion/v0.2.0.svg\n   :target: https://github.com/ickc/python-numba_quaternion/compare/v0.2.0...master\n.. |License| image:: https://img.shields.io/pypi/l/numba-quaternion.svg\n.. |Conda Recipe| image:: https://img.shields.io/badge/recipe-numba_quaternion-green.svg\n   :target: https://anaconda.org/conda-forge/numba_quaternion\n.. |Conda Downloads| image:: https://img.shields.io/conda/dn/conda-forge/numba_quaternion.svg\n   :target: https://anaconda.org/conda-forge/numba_quaternion\n.. |Conda Version| image:: https://img.shields.io/conda/vn/conda-forge/numba_quaternion.svg\n   :target: https://anaconda.org/conda-forge/numba_quaternion\n.. |Conda Platforms| image:: https://img.shields.io/conda/pn/conda-forge/numba_quaternion.svg\n   :target: https://anaconda.org/conda-forge/numba_quaternion\n.. |image2| image:: https://github.com/ickc/python-numba_quaternion/workflows/GitHub%20Pages/badge.svg\n   :target: https://ickc.github.io/python-numba_quaternion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickc%2Fpython-numba_quaternion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fickc%2Fpython-numba_quaternion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fickc%2Fpython-numba_quaternion/lists"}