https://github.com/robinka/typed-ga
TypeScript Geometric Algebra implementations with proper typing. Autogenerated using Python and TFGA.
https://github.com/robinka/typed-ga
clifford-algebra exterior-algebra geometric-algebra grassmann-algebra javascript tfga type-theory typescript
Last synced: about 1 month ago
JSON representation
TypeScript Geometric Algebra implementations with proper typing. Autogenerated using Python and TFGA.
- Host: GitHub
- URL: https://github.com/robinka/typed-ga
- Owner: RobinKa
- License: mit
- Created: 2020-07-08T13:28:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-25T22:47:20.000Z (over 4 years ago)
- Last Synced: 2025-06-23T02:55:21.472Z (12 months ago)
- Topics: clifford-algebra, exterior-algebra, geometric-algebra, grassmann-algebra, javascript, tfga, type-theory, typescript
- Language: TypeScript
- Homepage:
- Size: 837 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Typed Geometric Algebra
TypeScript Geometric Algebra implementations with proper typing. Autogenerated using Python and TFGA.

[Geometric Algebra Tutorial](https://geometricalgebratutorial.com/)
# Structure
- `generated/`: TypeScript implementations for Geometric Algebras with different signatures ordered as `0 -> -1 -> +1` (eg. signature `[0, -1, 1, 1]` is `ga_zmpp.ts`)
- `generated_js/`: Same as `generated/` but transpiled to JavaScript
- `tsgen.ipynb`: Jupyter notebook that generates the TypeScript implementations
- `example.ts`: The example from the above screenshot
- [`intro.ipynb`](https://github.com/RobinKa/typed-ga/blob/master/intro.ipynb): Motivation and introduction for Geometric Algebra
# Generating new algebras
To generate new algebras running the notebook is required. The notebook requires installing [TFGA](https://github.com/RobinKa/tfga). The last cell contains the
code to generate the TypeScript files. Here arbitrary signatures can be defined to be generated.