Skip to main content

A package for conformal geometric algebra

Project description

geometricalgebra

badge

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.3.tar.gz (36.4 kB view details)

Uploaded Source

Built Distribution

geometricalgebra-0.1.3-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file geometricalgebra-0.1.3.tar.gz.

File metadata

  • Download URL: geometricalgebra-0.1.3.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for geometricalgebra-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7488dd206fbae146edfca941c673c980bf7ea8a0390f4528db367b193ea5643d
MD5 49b26120314a9c2d3aac65b646e76cb7
BLAKE2b-256 15ee09819b362d30399eb5f02d6a8e42e6c933f8405c712f38d0604da2ea520e

See more details on using hashes here.

File details

Details for the file geometricalgebra-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for geometricalgebra-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2483944d2c878088aabc5a6af7d3b1f209eb54ae6008863c18f13e4cb232058c
MD5 c4c28bb43411071b09dd70c4e6d03bb2
BLAKE2b-256 98881a8ab57e731c3960d4e3852faa91ed8a3bac9ccf56c978fa18d806d30088

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page