Skip to content

Commit

Permalink
remove unbound type parameters (#115)
Browse files Browse the repository at this point in the history
I didn't check, but unbound type parameters often cause performance
issues, so this may not be merely cosmetic.
  • Loading branch information
nsajko authored Sep 8, 2022
1 parent b98867b commit e590378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mult.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
function multiplyexistingvar(i::Int, z::Vector{Int}) where {C}
function multiplyexistingvar(i::Int, z::Vector{Int})
newz = copy(z)
newz[i] += 1
return newz
end
function multiplyexistingvar(i::Int, Z::Vector{Vector{Int}}) where {C}
function multiplyexistingvar(i::Int, Z::Vector{Vector{Int}})
return Vector{Int}[multiplyexistingvar(i, z) for z in Z]
end
function insertvar(v::Vector{PolyVar{C}}, x::PolyVar{C}, i::Int) where {C}
Expand Down

0 comments on commit e590378

Please sign in to comment.