Skip to content

Commit

Permalink
Merge pull request #13 from JuliaAlgebra/0.7
Browse files Browse the repository at this point in the history
Make 0.7-alpha.0 compatible
  • Loading branch information
saschatimme authored Jun 17, 2018
2 parents a87630f + 13da5be commit ff9f62a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/polynomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ to obtain this ordering.
"""
function revlexicographic_cols(A::AbstractMatrix; kws...)
inds = Compat.axes(A,2)
T = Base.Sort.slicetypeof(A, :, inds)
cols = map(i -> (@view A[end:-1:1, i]), inds)
if VERSION <= v"0.6.9"
p = sortperm(cols; kws..., order=Base.Sort.Lexicographic)
Expand Down
3 changes: 2 additions & 1 deletion src/sexponents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function exponents(SE::SExponents)
end

function Base.show(io::IO, SE::SExponents{N}) where {N}
exps_hash = num2hex(hash(SE.exponents))
n = hash(SE.exponents)
exps_hash = string(n, base=16, pad=sizeof(n) * 2)
print(io, "SExponents{$N}($(exps_hash))")
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import MultivariatePolynomials
const MP = MultivariatePolynomials
using Compat
using Compat.Test
using Compat.LinearAlgebra

include("codegen_tests.jl")
include("basic_tests.jl")
Expand Down

0 comments on commit ff9f62a

Please sign in to comment.