Three Dimensional Multivector, based on numpy.
Project description
Multivector3D
Basic python class for a 3D multivector, implemented using numpy for efficient numerical computation. The following operations are implemented:
from multivector3d import Multivector3D
a = Multivector3D(vector=[1,2,3])
b = Multivector3D(bivector=[4,5,6])
c = 2.0
a+bAdditiona*cScalar multiplication (limitation: scalar must be on the right)a/cScalar divisiona*bGeometric producta.dot(b)Dot producta^bWedge product~aDual multivector (multiplication by unit pseudoscalar)
The multivector attributes for the four grades, each of which can be specified in the constructor:
a.scalarScalara.vectorVector, in the canonical{e_1, e_2, e_3}basisa.bivectorBivector, in the{e_2 e_3, e_3 e_1, e_1 e_2}basisa.pscalarPseudoscalare_1 e_2 e_3.
This project is more of an academic exercise than anything production ready at this point. If you want to do computations with the geometric algebra in python, check out the clifford package.
Installation
The package can be installed from pip: pip install multivector3d. The only
dependency is numpy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file multivector3d-0.1.1.tar.gz.
File metadata
- Download URL: multivector3d-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bcaba282fe35588bad4198ca7301d4500a3ac0200bb785e09bd3424e5fddb95
|
|
| MD5 |
44390c149af4c2eda73a020acda12d6b
|
|
| BLAKE2b-256 |
99aafa7ab080df1caeef7d99895a479644c3333605145b3fc91698855aa7432b
|