Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use BaseType.base_numeric_type instead of Base.one to get base scalar type #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ uuid = "1fd47b50-473d-5c70-9696-f719f8f3bcdc"
version = "2.9.1"

[deps]
BaseType = "7fbed51b-1ef5-4d67-9085-a4a9b26f478c"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
BaseType = "0.2"
DataStructures = "0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19"
julia = "1.2"

Expand Down
2 changes: 1 addition & 1 deletion src/QuadGK.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module QuadGK
export quadgk, quadgk!, gauss, kronrod, alloc_segbuf, quadgk_count, quadgk_print
export BatchIntegrand

using DataStructures, LinearAlgebra
using DataStructures, LinearAlgebra, BaseType
import Base.Order.Reverse

# an in-place integrand function f!(result, x) and
Expand Down
2 changes: 1 addition & 1 deletion src/gausskronrod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,4 @@ end
end

cachedrule(::Type{T}, n::Integer) where {T<:Number} =
_cachedrule(typeof(float(real(one(T)))), Int(n))
_cachedrule(typeof(float(one(base_numeric_type(T)))), Int(n))
Loading