quaternionic | Interpret numpy arrays as quaternionic arrays | Animation library
kandi X-RAY | quaternionic Summary
kandi X-RAY | quaternionic Summary
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
Top functions reviewed by kandi - BETA
- 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
quaternionic Key Features
quaternionic Examples and Code Snippets
Community Discussions
Trending Discussions on quaternionic
QUESTION
Quaternion multiplication is well-defined, and is known to me as "Hamilton product":
...ANSWER
Answered 2019-Apr-19 at 16:45Dividing 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:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install quaternionic
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page