Skip to content

Commit e590378

Browse files
authored
remove unbound type parameters (#115)
I didn't check, but unbound type parameters often cause performance issues, so this may not be merely cosmetic.
1 parent b98867b commit e590378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mult.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
function multiplyexistingvar(i::Int, z::Vector{Int}) where {C}
1+
function multiplyexistingvar(i::Int, z::Vector{Int})
22
newz = copy(z)
33
newz[i] += 1
44
return newz
55
end
6-
function multiplyexistingvar(i::Int, Z::Vector{Vector{Int}}) where {C}
6+
function multiplyexistingvar(i::Int, Z::Vector{Vector{Int}})
77
return Vector{Int}[multiplyexistingvar(i, z) for z in Z]
88
end
99
function insertvar(v::Vector{PolyVar{C}}, x::PolyVar{C}, i::Int) where {C}

0 commit comments

Comments
 (0)