File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11name = " DynamicPolynomials"
22uuid = " 7c1d4256-1411-5781-91ec-d7bc3513ac07"
33repo = " https://github.com/JuliaAlgebra/DynamicPolynomials.jl.git"
4- version = " 0.3.7 "
4+ version = " 0.3.8 "
55
66[deps ]
77DataStructures = " 864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Original file line number Diff line number Diff line change 3939# `mutable_copy` recursively copies the vector or vector of integers.
4040MA. mutable_copy (m:: MV ) where {MV<: MonomialVector } = MV (copy (m. vars), MA. mutable_copy (m. Z))
4141Base. copy (m:: MonomialVector ) = MA. mutable_copy (m)
42- function Base. getindex (x:: MV , I) where {MV <: MonomialVector }
43- MV (x. vars, x. Z[sort (I)])
42+ function Base. getindex (x:: MonomialVector , I)
43+ return typeof (x) (x. vars, x. Z[sort (I)])
4444end
4545Base. getindex (x:: MonomialVector , i:: Integer ) = Monomial (x. vars, x. Z[i])
46+ Base. getindex (x:: MonomialVector , i:: CartesianIndex{1} ) = x[i. I[1 ]]
4647
4748Base. firstindex (x:: MonomialVector ) = firstindex (x. Z)
4849Base. lastindex (x:: MonomialVector ) = lastindex (x. Z)
You can’t perform that action at this time.
0 commit comments