Skip to content

Commit f0410e3

Browse files
committed
Add special method for 1d arrays
1 parent 629bd51 commit f0410e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Polynomials.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ function polyder{T}(p::Poly{T}, order::Int=1)
283283
end
284284
end
285285

286+
polyint{T}(a::Array{Poly{T},1}, k::Number = 0) = [ polyint(p,k) for p in a ]
287+
polyder{T}(a::Array{Poly{T},1}, order::Int = 1) = [ polyder(p,order) for p in a ]
286288
polyint{n,T}(a::Array{Poly{T},n}, k::Number = 0) = map(p->polyint(p,k),a)
287289
polyder{n,T}(a::Array{Poly{T},n}, order::Int = 1) = map(p->polyder(p,order),a)
288290

0 commit comments

Comments
 (0)