Skip to content

Commit 7e50766

Browse files
authored
Remove myminivect (#162)
1 parent 01869ba commit 7e50766

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/operators.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
Base.:(^)(x::Variable{V,M}, i::Int) where {V,M} = Monomial{V,M}([x], [i])
77
Base.:(^)(x::Monomial{<:Commutative}, i::Int) = Monomial(copy(x.vars), i * x.z)
88

9-
myminivect(x::T, y::T) where {T} = [x, y]
10-
function myminivect(x::S, y::T) where {S,T}
11-
U = promote_type(S, T)
12-
return [U(x), U(y)]
13-
end
14-
159
Base.:(+)(x::DMonomialLike, y::DMonomialLike) = MP.term(x) + MP.term(y)
1610
Base.:(-)(x::DMonomialLike, y::DMonomialLike) = MP.term(x) - MP.term(y)
1711

0 commit comments

Comments
 (0)