Skip to content

Commit

Permalink
Added internal aliases for special quadratic forms
Browse files Browse the repository at this point in the history
  • Loading branch information
brainandforce committed Feb 27, 2024
1 parent 32635bd commit ddd4df9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/quadratic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddd4df9

Please sign in to comment.