Skip to content

Commit 7551fb6

Browse files
authored
Convert to division-supporting type instead of always float (#554)
1 parent 7d18643 commit 7551fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polynomials/standard-basis/standard-basis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ end
625625

626626

627627
function _polynomial_fit(P::Type{<:StandardBasisPolynomial}, x::AbstractVector{T}, y; var=:x) where {T}
628-
R = float(T)
628+
R = typeof(one(T)/1)
629629
coeffs = Vector{R}(undef, length(x))
630630
copyto!(coeffs, y)
631631
solve_vander!(coeffs, x)

0 commit comments

Comments
 (0)