Skip to content

Commit d25b095

Browse files
committed
Merge branch 'patch-1' of git://github.com/mfalt/Polynomials.jl into mfalt-patch-1
2 parents fc1ddc3 + cb1a766 commit d25b095

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Polynomials.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ norm(q::Poly, args...) = norm(coeffs(q), args...)
193193
194194
"""
195195
getindex{T}(p::Poly{T}, i) = (i+1 > length(p.a) ? zero(T) : p.a[i+1])
196+
getindex{T}(p::Poly{T}, idx::AbstractArray) = map(i->p[i], idx)
196197
function setindex!(p::Poly, v, i)
197198
n = length(p.a)
198199
if n < i+1

0 commit comments

Comments
 (0)