From ddd4df90e6e27eb0286cfd1169fd28a9f3ec8f19 Mon Sep 17 00:00:00 2001 From: Brandon Flores Date: Mon, 26 Feb 2024 21:30:22 -0600 Subject: [PATCH] Added internal aliases for special quadratic forms --- src/quadratic.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/quadratic.jl b/src/quadratic.jl index 9b86c5a..83c095b 100644 --- a/src/quadratic.jl +++ b/src/quadratic.jl @@ -26,6 +26,20 @@ function Base.sign(::Type{QuadraticForm{P,Q,R}}, i::Integer) where {P,Q,R} end #---Special geometric algebras---------------------------------------------------------------------# +""" + CliffordNumbers.QFComplex + +The quadratic form with zero dimensions, `QuadraticForm{0,0,0}`, isomorphic to the real numbers. +""" +const QFReal = QuadraticForm{0,0,0} + +""" + CliffordNumbers.QFComplex + +The quadratic form with one dimension squaring to -1, `QuadraticForm{0,1,0}`. This generates a +Clifford algebra isomorphic to the complex numbers. +""" +const QFComplex = QuadraticForm{0,1,0} """ APS