Skip to content

Commit 815ab1a

Browse files
authored
Issue ngcd (#318)
* fix issue with ngcd * version bump
1 parent 3ceb43c commit 815ab1a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "Polynomials"
22
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
33
license = "MIT"
44
author = "JuliaMath"
5-
version = "2.0.0"
5+
version = "2.0.1"
66

77
[deps]
88
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"

src/polynomials/ngcd.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ In the case `degree(p) ≫ degree(q)`, a heuristic is employed to first call on
1010
function ngcd(p::P, q::Q, args...;kwargs...) where {T, S, P<:StandardBasisPolynomial{T}, Q <: StandardBasisPolynomial{S}}
1111

1212
degree(p) < 0 && return (u=q, v=p, w=one(q), θ=NaN, κ=NaN)
13-
degree(p) == 0 && return (u=one(q), v=p, w=zero(q), θ=NaN, κ=NaN)
13+
degree(p) == 0 && return (u=one(q), v=p, w=q, θ=NaN, κ=NaN)
1414
degree(q) < 0 && return (u=one(q), v=p, w=zero(q), θ=NaN, κ=NaN)
1515
degree(q) == 0 && return (u=one(p), v=p, w=q, θ=NaN, κ=NaN)
16-
assert_same_variable(p,q)
16+
assert_same_variable(p,q)
1717

1818
p′,q′ = promote(p,q)
1919

@@ -264,8 +264,8 @@ end
264264
# return guess at smallest singular value and right sinuglar value, x
265265
# for an upper triangular matrix, V
266266
function smallest_singular_value(V::AbstractArray{T,2},
267-
atol=eps(T),
268-
rtol=zero(T)) where {T}
267+
atol=eps(real(T)),
268+
rtol=zero(real(T))) where {T}
269269

270270
R = UpperTriangular(V)
271271
k = size(R)[1]/2

0 commit comments

Comments
 (0)