Skip to content

Commit

Permalink
resolved the hio reference #19
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jun 2, 2019
1 parent 2189e65 commit 71f7322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function declare_mutating_operations(M,F,set_val,SUB,MUL)
pcc,bas,cc = (hasinf(V) && hasorigin(V)) ? conformal(A,B,V) : (false,AB,false)
val = (typeof(V)<:Signature || count_ones(A&B)==0) ? (parity(A,B,V)pcc ? $SUB(v) : v) : $MUL(parityinner(A,B,V),pcc ? $SUB(v) : v)
$s(m,val,bas,Dimension{N}())
cc && $s(m,hio ? $SUB(val) : val,conformalmask(V)bas,Dimension{N}())
cc && $s(m,DirectSum.hasinforigin(V,A,B) ? $SUB(val) : val,conformalmask(V)bas,Dimension{N}())
end
return m
end
Expand Down Expand Up @@ -148,7 +148,7 @@ reverse(a::UniformScaling{T}) where T<:Field = UniformScaling(-a.λ)
pcc,bas,cc = (hasinf(V) && hasorigin(V)) ? conformal(A,B,V) : (false,AB,false)
d = Basis{V}(bas)
out = (typeof(V)<:Signature || count_ones(A&B)==0) ? (parity(a,b)pcc ? SValue{V}(-1,d) : d) : SValue{V}((pcc ? -1 : 1)*parityinner(A,B,V),d)
return cc ? (v=value(out);out+SValue{V}(hio ? -(v) : v,Basis{V}(conformalmask(V)bits(d)))) : out
return cc ? (v=value(out);out+SValue{V}(hasinforigin(V,A,B) ? -(v) : v,Basis{V}(conformalmask(V)bits(d)))) : out
end

for Value MSV
Expand Down

2 comments on commit 71f7322

@chakravala
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/1131

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.6 -m "<description of version>" 71f73222d13efbbe6dbdee10713d41ba7d873348
git push origin v0.1.6

Please sign in to comment.