Skip to content

Commit

Permalink
fixed inv scaling of SValue #25
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Jun 16, 2019
1 parent af96a96 commit 5022c0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,7 @@ end
@pure inv(b::Basis{V,G}) where {V,G} = ((parityreverse(G) ? -1 : 1)/value(bb))*b
for Value MSV
@eval begin
function inv(b::$Value{V,G,B,T}) where {V,G,B,T}
t=basis(b)
$Value{V,G,B}((parityreverse(G) ? -one(T) : one(T))/value(tt))
end
inv(b::$Value{V,G,B,T}) where {V,G,B,T} = $Value{V,G,B}((parityreverse(G) ? -one(T) : one(T))/(value(BB)*value(b)))
rem(b::$Value{V,G,B,T},m) where {V,G,B,T} = $Value{V,G,B}(rem(value(b),m))
div(b::$Value{V,G,B,T},m) where {V,G,B,T} = $Value{V,G,B}(div(value(b),m))
end
Expand Down

0 comments on commit 5022c0d

Please sign in to comment.