Skip to content

Commit ea6d911

Browse files
authored
Merge pull request #44 from lkapelevich/ntuplefix
remove emptymonovec method for tuples of polyvars
2 parents 4917539 + d3f0cfb commit ea6d911

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/monovec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const DMonoVecElemNonConstant{C} = Union{PolyVar{C}, Monomial{C}, Term{C}}
6767
const DMonoVecElem{C} = Union{Int, DMonoVecElemNonConstant{C}}
6868
const DMonoVec{C} = AbstractVector{<:DMonoVecElem{C}}
6969

70-
MP.emptymonovec(vars::VarVec{C}) where {C} = MonomialVector{C}(vars, Vector{Int}[])
70+
MP.emptymonovec(vars::AbstractVector{PolyVar{C}}) where {C} = MonomialVector{C}(vars, Vector{Int}[])
7171
MP.emptymonovec(t::DMonoVecElemNonConstant) = emptymonovec(_vars(t))
7272
MP.emptymonovec(::Type{<:DMonoVecElemNonConstant{C}}) where {C} = MonomialVector{C}()
7373

src/var.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ _vars(v::PolyVar) = [v]
7171

7272
iscomm(::Type{PolyVar{C}}) where {C} = C
7373

74-
const VarVec{C} = Union{AbstractVector{PolyVar{C}}, NTuple{<:Integer, PolyVar{C}}}
75-
7674
function mergevars(varsvec::Vector{Vector{PV}}) where {PV<:PolyVar}
7775
n = length(varsvec)
7876
is = ones(Int, n)

0 commit comments

Comments
 (0)