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

Uploaded Source

Built Distribution

geometricalgebra-0.1.1-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geometricalgebra-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c02811a7ac11135fa442fd130aba5ec2f4c49940c5dc22e879e8feb6c2a6008d
MD5 bf53ccf100e0a1daf02e68ead42a6104
BLAKE2b-256 25a0c329dc1254bdc250bfc292715279fae0b93690f7211816b7dc719129037a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geometricalgebra-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 958b898a621bd4e550f911363b208c3c8d22dc805adabaf65415d83ae7f0f098
MD5 21200d1023a8886b3b0538cd08222780
BLAKE2b-256 8701b5408cdceb11597912e5a166d8ebce4c480d673f833ae21b13a5543591a7

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