We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b43e5e6 commit 1b43a2eCopy full SHA for 1b43a2e
src/evalpoly.jl
@@ -5,7 +5,7 @@ function _evalpoly(X::AbstractMatrix, p)
5
Base.require_one_based_indexing(p)
6
p0 = isempty(p) ? Base.reduce_empty_iter(+, p) : p[end]
7
Xone = one(X)
8
- S = Base.promote_op(*, typeof(Xone), typeof(Xone))(Xone) * p0
+ S = convert(Base.promote_op(*, typeof(Xone), typeof(Xone)), Xone) * p0
9
for i = length(p)-1:-1:1
10
S = X * S + @inbounds(p[i] isa AbstractMatrix ? p[i] : p[i] * I)
11
end
0 commit comments