Galixir.Blade (galixir v0.2.0)

Copy Markdown View Source

Basis blade operations using bitmask encoding.

Summary

Functions

Returns the grade of a blade.

Returns the sign and resulting blade of multiplying two blades.

Functions

grade(mask)

Returns the grade of a blade.

multiply(a, b, signature)

Returns the sign and resulting blade of multiplying two blades.

The signature is a list where each element is the square of a basis vector:

[1, -1, 0] == e1²=1, e2²=-1, e3²=0