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 1c98fbc commit 9919445Copy full SHA for 9919445
src/rational.jl
@@ -6,6 +6,7 @@ struct RationalPoly{NT <: APL, DT <: APL}
6
den::DT
7
end
8
9
+# This constructor is called from LinearAlgebra in the method Matrix{T}(s::UniformScaling{Bool}, dims)
10
RationalPoly{NT,DT}(x::Bool) where {NT,DT} = ifelse(x, one(RationalPoly{NT,DT}), zero(RationalPoly{NT,DT}))
11
12
Base.numerator(r::RationalPoly) = r.num
0 commit comments