quaternionic | Interpret numpy arrays as quaternionic arrays | Animation library

 by   moble Python Version: 1.0.10 License: MIT

kandi X-RAY | quaternionic Summary

kandi X-RAY | quaternionic Summary

quaternionic is a Python library typically used in User Interface, Animation, Numpy applications. quaternionic has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However quaternionic build file is not available. You can install using 'pip install quaternionic' or download it from GitHub, PyPI.

This module subclasses numpy's array type, interpreting the array as an array of quaternions, and accelerating the algebra using numba. This enables natural manipulations, like multiplying quaternions as a*b, while also working with standard numpy functions, as in np.log(q). There is also basic initial support for symbolic manipulation of quaternions by creating quaternionic arrays with sympy symbols as elements, though this is a work in progress. This package has evolved from the quaternion package, which adds a quaternion dtype directly to numpy. In some ways, that is a 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 because it is compiled by numba. Moreover, because the core code is written in pure python, it is reusable for purposes other than the core purpose of this package, which is to provide the numeric array type.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              quaternionic has a low active ecosystem.
              It has 30 star(s) with 5 fork(s). There are 3 watchers for this library.
              There were 3 major release(s) in the last 12 months.
              There are 2 open issues and 8 have been closed. On average issues are closed in 101 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of quaternionic is 1.0.10

            kandi-Quality Quality

              quaternionic has no bugs reported.

            kandi-Security Security

              quaternionic has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              quaternionic is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              quaternionic releases are available to install and integrate.
              Deployable package is available in PyPI.
              quaternionic has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed quaternionic and discovered the below as its top functions. This is intended to give you an instant insight into quaternionic implemented functionality, and help decide if they suit your requirements.
            • Create a numpy array of quaternions
            • Define the properties for a quaternion
            • Convert Jacobian to euler phases
            • From euler phonon phonon phi_phases
            • Unflips a rotation matrix
            • Multiply two quaternions
            • Copy module functions from module to obj
            • Wrapper function for pyguvecize
            • Create a metric for the Quaternions
            • Convert to euler phonon phases
            • Convert the euler phonon phases into a function
            • Iterate over all functions in module
            • Parse a pre - release message
            Get all kandi verified functions for this library.

            quaternionic Key Features

            No Key Features are available at this moment for quaternionic.

            quaternionic Examples and Code Snippets

            No Code Snippets are available at this moment for quaternionic.

            Community Discussions

            Trending Discussions on quaternionic

            QUESTION

            Quaternion division and hyperbolic tangent tanh
            Asked 2019-Apr-19 at 16:51

            Quaternion multiplication is well-defined, and is known to me as "Hamilton product":

            ...

            ANSWER

            Answered 2019-Apr-19 at 16:45
            1. Division

            Dividing a quaternion named p by a quaternion named q is nothing more than multiplying p by the reciprocal of q.

            This is equivalent to multiplying p by the conjugation of q (which by definition equals a – bi – cj – dk) and dividing the product by a scalar equalling q norm squared:

            From here it`s obvious where that denominator part comes from:

            Now let`s rearrange the terms in vec3 sums for better readability:

            Source https://stackoverflow.com/questions/55762540

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install quaternionic

            Because this package is pure python code, installation is very simple. In particular, with a reasonably modern installation, you can just run. These will download and install the package. (Using python -m pip instead of just pip or pip3 helps avoid problems that new python users frequently run into; the reason is explained by a veteran python core contributor here.). You can also install the package from source if you have pip version 10.0 or greater by running python -m pip install . — or if you have poetry by running poetry install — from the top-level directory. Note that only python 3.8 or greater is supported. (I have also tried to support PyPy3, although I cannot test this as scipy does not currently install. Pull requests are welcome.) In any case, I strongly recommend installing by way of an environment manager — especially conda, though other managers like virtualenv or pipenv should also work. For development work, the best current option is poetry. From the top-level directory, you can run poetry run <some command> to run the command in an isolated environment.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install quaternionic

          • CLONE
          • HTTPS

            https://github.com/moble/quaternionic.git

          • CLI

            gh repo clone moble/quaternionic

          • sshUrl

            git@github.com:moble/quaternionic.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link