From 7e50766f5ba42c6e58acba5a5d6231c08d38ca62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sun, 16 Jun 2024 23:21:43 +0200 Subject: [PATCH] Remove myminivect (#162) --- 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)