Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 6, 2024
1 parent 4551c54 commit a754d45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Base.show(io::IO, a::AlgebraElement)
if __prints_with_minus(c)
print(io, ' ')
else
print(io, ' ', '+')
print(io, ' ', '+', ' ')
end
_coeff_elt_print(io, c, elt)
end
Expand Down
4 changes: 0 additions & 4 deletions src/sparse_coeffs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ function Base.copy(sc::SparseCoefficients)
end

function Base.getindex(sc::SparseCoefficients{K}, key::K) where {K}
@show sc.basis_elements
@show key
k = searchsortedfirst(sc.basis_elements, key; lt = comparable(K))
@show k
@show eachindex(sc.basis_elements)
if k in eachindex(sc.basis_elements)
v = sc.values[k]
if sc.basis_elements[k] == key
Expand Down

0 comments on commit a754d45

Please sign in to comment.