Skip to content

Commit

Permalink
fixed plus operator #110
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jan 24, 2025
1 parent bc61d65 commit 45d04f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/products.jl
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,14 @@ for (couple,calar) ∈ ((:Couple,:scalar),(:PseudoCouple,:volume))
plus(a::$couple{V},b::Multivector{V}) where V = (b+$calar(a))+imaginary(a)
minus(a::Multivector{V},b::$couple{V}) where V = (a-$calar(b))-imaginary(b)
minus(a::$couple{V},b::Multivector{V}) where V = ($calar(a)-b)+imaginary(a)
plus(a::Spinor{V},b::$couple{V}) where V = (a+$calar(b))+imaginary(b)
plus(a::$couple{V},b::Spinor{V}) where V = (b+$calar(a))+imaginary(a)
minus(a::Spinor{V},b::$couple{V}) where V = (a-$calar(b))-imaginary(b)
minus(a::$couple{V},b::Spinor{V}) where V = ($calar(a)-b)+imaginary(a)
plus(a::CoSpinor{V},b::$couple{V}) where V = (a+$calar(b))+imaginary(b)
plus(a::$couple{V},b::CoSpinor{V}) where V = (b+$calar(a))+imaginary(a)
minus(a::CoSpinor{V},b::$couple{V}) where V = (a-$calar(b))-imaginary(b)
minus(a::$couple{V},b::CoSpinor{V}) where V = ($calar(a)-b)+imaginary(a)
plus(a::Chain{V,0},b::$couple{V}) where V = (a+$calar(b))+imaginary(b)
plus(a::$couple{V},b::Chain{V,0}) where V = (b+$calar(a))+imaginary(a)
minus(a::Chain{V,0},b::$couple{V}) where V = (a-$calar(b))-imaginary(b)
Expand Down

0 comments on commit 45d04f9

Please sign in to comment.