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 1
1
name = " DynamicPolynomials"
2
2
uuid = " 7c1d4256-1411-5781-91ec-d7bc3513ac07"
3
3
repo = " https://github.com/JuliaAlgebra/DynamicPolynomials.jl.git"
4
- version = " 0.3.7 "
4
+ version = " 0.3.8 "
5
5
6
6
[deps ]
7
7
DataStructures = " 864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Original file line number Diff line number Diff line change 39
39
# `mutable_copy` recursively copies the vector or vector of integers.
40
40
MA. mutable_copy (m:: MV ) where {MV<: MonomialVector } = MV (copy (m. vars), MA. mutable_copy (m. Z))
41
41
Base. 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)])
44
44
end
45
45
Base. getindex (x:: MonomialVector , i:: Integer ) = Monomial (x. vars, x. Z[i])
46
+ Base. getindex (x:: MonomialVector , i:: CartesianIndex{1} ) = x[i. I[1 ]]
46
47
47
48
Base. firstindex (x:: MonomialVector ) = firstindex (x. Z)
48
49
Base. lastindex (x:: MonomialVector ) = lastindex (x. Z)
You can’t perform that action at this time.
0 commit comments