Skip to content

Commit

Permalink
fix for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Mar 12, 2024
1 parent 90e5421 commit a25a8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Serialization/polymake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ _pmdata_for_oscar(im::IncidenceMatrix, coeff::Field) = im
_pmdata_for_oscar(g::Polymake.Graph{T}, coeff::Field) where T = Graph{T}(g)

_pmdata_for_oscar(m::Polymake.Matrix, coeff::Field) = matrix(coeff, m)
_pmdata_for_oscar(m::Polymake.Matrix{Int}, coeff::Field) = Matrix(m)
_pmdata_for_oscar(m::Polymake.Matrix{Polymake.to_cxx_type(Int)}, coeff::Field) = Matrix{Int}(m)
_pmdata_for_oscar(m::Polymake.Matrix{<:Polymake.Integer}, coeff::Field) = matrix(ZZ, m)
_pmdata_for_oscar(m::Polymake.Matrix{<:Polymake.Rational}, coeff::Field) = matrix(QQ, m)

_pmdata_for_oscar(m::Polymake.SparseMatrix, coeff::Field) = _pmdata_for_oscar(Polymake.common.dense(m), coeff)

_pmdata_for_oscar(v::Polymake.Vector, coeff::Field) = collect(elem_type(coeff), map(coeff, v))
_pmdata_for_oscar(v::Polymake.Vector{Int}, coeff::Field) = Vector{Int}(v)
_pmdata_for_oscar(v::Polymake.Vector{Polymake.to_cxx_type(Int)}, coeff::Field) = Vector{Int}(v)

Check warning on line 92 in src/Serialization/polymake.jl

View check run for this annotation

Codecov / codecov/patch

src/Serialization/polymake.jl#L92

Added line #L92 was not covered by tests
_pmdata_for_oscar(v::Polymake.Vector{<:Polymake.Integer}, coeff::Field) = collect(ZZRingElem, map(ZZ, v))
_pmdata_for_oscar(v::Polymake.Vector{<:Polymake.Rational}, coeff::Field) = collect(QQFieldElem, map(QQ, v))

Expand Down

0 comments on commit a25a8ea

Please sign in to comment.