A package for conformal geometric algebra
Project description
geometricalgebra
Library implementing conformal geometric algebra.
The key features are:
- Fast numerical implementation of multivector and its exterior algebra
- The library supports various backends (numpy, tensorflow, jax)
- Full support of autograd works when using jax and tensorflow
- All operation work for single multivector or tensors of multivector. Broadcasting is also supported.
Installation
pip install geometricalgebra
Example
from geometricalgebra import cga3d
a = cga3d.e_0
b = cga3d.e_1.up()
c = cga3d.e_2.up()
circle = a ^ b ^ c
# The radius of a circle going through [0, 0, 0], [1, 0, 0], and [0, 1, 0]
radius = circle.circle_to_center_normal_radius()[2].to_scalar()
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
geometricalgebra-0.1.2.tar.gz
(36.4 kB
view details)
Built Distribution
File details
Details for the file geometricalgebra-0.1.2.tar.gz
.
File metadata
- Download URL: geometricalgebra-0.1.2.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3202bafb1bb60e0ffcd28c840c0c3a839cc6a0d8286c6dfc7e78140b2c30dcf |
|
MD5 | 83efe2202a91f4c67d9e76c3dbb92cc3 |
|
BLAKE2b-256 | 7f843a2faab7f49ab60f6290d39b0e5d1f7fff6fc9782f85dfb683a22a7bdb50 |
File details
Details for the file geometricalgebra-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: geometricalgebra-0.1.2-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ab5269682b79864d9ec4173423bfbdba937ef3a77ab27b414101fd0be9b5da |
|
MD5 | b2d2fab05119ab889fadf327e3b540c5 |
|
BLAKE2b-256 | a70d51660d43d8a50d369ba1da720d178473fe635d18701de2aafffab3d6f943 |