Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
tpgillam committed Feb 9, 2024
1 parent 4679fd1 commit fb58892
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/cga.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand Down Expand Up @@ -148,7 +148,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
2 changes: 1 addition & 1 deletion src/core31.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Base.:(+)(num::Real, a::Even) = Even(a.c1 + num, a.c2, a.c3, a.c4 + num)
Base.:(-)(num::Real, a::Even) = Even(-a.c1 + num, -a.c2, -a.c3, -a.c4 + num)

#Multiplication
Base.:(*)(num::Real, a::Even) =Even(num * a.c1, num * a.c2, num * a.c3, num * a.c4)
Base.:(*)(num::Real, a::Even) = Even(num * a.c1, num * a.c2, num * a.c3, num * a.c4)
Base.:(*)(num::Real, a::Odd) = Odd(num * a.c1, num * a.c2, num * a.c3, num * a.c4)

function Base.:(*)(a::Even, b::Even)
Expand Down
4 changes: 2 additions & 2 deletions src/ga20.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand All @@ -50,7 +50,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
4 changes: 2 additions & 2 deletions src/ga24.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand All @@ -89,7 +89,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
4 changes: 2 additions & 2 deletions src/ga30.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand All @@ -54,7 +54,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end
4 changes: 2 additions & 2 deletions src/ga31.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand All @@ -65,7 +65,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
2 changes: 1 addition & 1 deletion src/ga3232.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Base.show(io::IO, mv::Multivector)
tp = " + " * string(blds[i].val) * bdptype(blds[i].bas)
res *= tp
end
print(io, res)
return print(io, res)
end

end #Module
4 changes: 2 additions & 2 deletions src/ga33.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand Down Expand Up @@ -101,7 +101,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
4 changes: 2 additions & 2 deletions src/ga40.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand Down Expand Up @@ -88,7 +88,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module
2 changes: 1 addition & 1 deletion src/ga44.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function Base.show(io::IO, mv::Multivector)
tp = " + " * string(blds[i].val) * bdptype(blds[i].bas)
res *= tp
end
print(io, res)
return print(io, res)
end

end #Module
4 changes: 2 additions & 2 deletions src/pga.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand All @@ -58,7 +58,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end # Module
4 changes: 2 additions & 2 deletions src/sta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Base.show(io::IO, a::Even)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

function Base.show(io::IO, a::Odd)
Expand Down Expand Up @@ -96,7 +96,7 @@ function Base.show(io::IO, a::Odd)
else
res = chop(res; head=3, tail=0)
end
print(io, res)
return print(io, res)
end

end #Module

0 comments on commit fb58892

Please sign in to comment.