From 4850d20d2ac8e851da236c15b528a37bca1f1ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 14 Jun 2024 17:21:19 +0200 Subject: [PATCH] Remove myminivect --- src/operators.jl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/operators.jl b/src/operators.jl index 539d1bc..1f999c8 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -6,12 +6,6 @@ Base.:(^)(x::Variable{V,M}, i::Int) where {V,M} = Monomial{V,M}([x], [i]) Base.:(^)(x::Monomial{<:Commutative}, i::Int) = Monomial(copy(x.vars), i * x.z) -myminivect(x::T, y::T) where {T} = [x, y] -function myminivect(x::S, y::T) where {S,T} - U = promote_type(S, T) - return [U(x), U(y)] -end - Base.:(+)(x::DMonomialLike, y::DMonomialLike) = MP.term(x) + MP.term(y) Base.:(-)(x::DMonomialLike, y::DMonomialLike) = MP.term(x) - MP.term(y)