Skip to content

Commit

Permalink
Merge f21379d into 39a2a21
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Schnetter committed May 12, 2020
2 parents 39a2a21 + f21379d commit 28b5efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Grassmann.jl
Expand Up @@ -123,7 +123,7 @@ function ↑(ω::T) where T<:TensorAlgebra
!(hasinf(V)||hasorigin(V)) && (return ω)
G = Λ(V)
return if hasinf(V) && hasorigin(V)
((G.v∞/2)*ω^2+G.v∅)+ω
((G.v∞*(one(valuetype(ω))/2))*ω^2+G.v∅)+ω
else
ω2 = ω^2
iω2 = inv(ω2+1)
Expand All @@ -146,7 +146,7 @@ function ↓(ω::T) where T<:TensorAlgebra
!(hasinf(V)||hasorigin(V)) && (return ω)
G = Λ(V)
return if hasinf(V) && hasorigin(V)
inv(G.v∞∅)*(G.v∞∅ω)/(-ωG.v∞)
inv(one(valuetype(ω))*G.v∞∅)*(G.v∞∅ω)/(-ωG.v∞)
else
b = hasinf(V) ? G.v∞ : G.v∅
((ωb)*b)/(1-bω)
Expand Down

0 comments on commit 28b5efc

Please sign in to comment.