Skip to content

Commit

Permalink
Remove myminivect (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jun 16, 2024
1 parent 01869ba commit 7e50766
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7e50766

Please sign in to comment.