From e5903783d5dc4b1878a58c2b7c35954a583d1601 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Thu, 8 Sep 2022 15:47:33 +0200 Subject: [PATCH] remove unbound type parameters (#115) I didn't check, but unbound type parameters often cause performance issues, so this may not be merely cosmetic. --- src/mult.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mult.jl b/src/mult.jl index 1321f53..6e96b35 100644 --- a/src/mult.jl +++ b/src/mult.jl @@ -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}