Skip to content

Commit 4712daf

Browse files
committed
Fix '<:' usage
1 parent a0d2d27 commit 4712daf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qr.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ end
2121

2222
@generated function _qr(::Size{sA}, A::StaticMatrix{<:Any, <:Any, TA}, pivot::Union{Type{Val{false}}, Type{Val{true}}} = Val{false}, thin::Union{Type{Val{false}}, Type{Val{true}}} = Val{true}) where {sA, TA}
2323

24-
isthin = thin <: Type{Val{true}}
24+
isthin = thin == Type{Val{true}}
2525

2626
SizeQ = Size( sA[1], isthin ? diagsize(Size(A)) : sA[1] )
2727
SizeR = Size( diagsize(Size(A)), sA[2] )
2828

29-
if pivot <: Type{Val{true}}
29+
if pivot == Type{Val{true}}
3030
return quote
3131
@_inline_meta
3232
Q0, R0, p0 = Base.qr(Matrix(A), pivot, thin=$isthin)
@@ -121,7 +121,7 @@ end
121121
end
122122

123123
# truncate Q and R sizes in LAPACK consilient way
124-
if thin <: Type{Val{true}}
124+
if thin == Type{Val{true}}
125125
mQ, nQ = m, min(m, n)
126126
else
127127
mQ, nQ = m, m

0 commit comments

Comments
 (0)