Skip to content

Commit

Permalink
fixed order of conformal cache arguments #19
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jun 2, 2019
1 parent 963801d commit 2189e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Grassmann"
uuid = "4df31cd9-4c27-5bea-88d0-e6a7146666d8"
authors = ["Michael Reed"]
version = "0.1.5"
version = "0.1.6"

[deps]
AbstractLattices = "398f06c4-4d28-53ec-89ca-5b2656b7603d"
Expand Down
4 changes: 2 additions & 2 deletions src/algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function declare_mutating_operations(M,F,set_val,SUB,MUL)
end
@inline function $(Symbol(:geom,s))(V::W,m::$M,A::Bits,B::Bits,v::S) where W<:VectorSpace{N,D} where {N,D,T<:$F,S<:$F,M}
if v 0 && !dualcheck(V,A,B)
pcc,bas,cc = (hasinf(V) && hasorigin(V)) ? conformal(V,A,B) : false,AB,false
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}())
Expand Down Expand Up @@ -145,7 +145,7 @@ reverse(a::UniformScaling{T}) where T<:Field = UniformScaling(-a.λ)
@pure function *(a::Basis{V},b::Basis{V}) where V
A,B = bits(a), bits(b)
dualcheck(V,A,B) && (return g_zero(V))
pcc,bas,cc = (hasinf(V) && hasorigin(V)) ? conformal(V,A,B) : false,AB,false
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
Expand Down

2 comments on commit 2189e65

@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 created: 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>" 2189e65c3d8eca1a8360a906b2c73c7b16a2d7c1
git push origin v0.1.6

Please sign in to comment.