@@ -277,6 +277,7 @@ QRPackedQ(factors::AbstractMatrix{T}, τ::AbstractVector{T}) where {T} =
277277 QRPackedQ {T,typeof(factors),typeof(τ)} (factors, τ)
278278QRPackedQ {T} (factors:: AbstractMatrix , τ:: AbstractVector ) where {T} =
279279 QRPackedQ (convert (AbstractMatrix{T}, factors), convert (AbstractVector{T}, τ))
280+ QRPackedQ {T} (Q:: QRPackedQ ) where {T} = QRPackedQ {T} (Q. factors, Q. τ)
280281# backwards-compatible constructors (remove with Julia 2.0)
281282@deprecate (QRPackedQ {T,S} (factors:: AbstractMatrix{T} , τ:: AbstractVector{T} ) where {T,S},
282283 QRPackedQ {T,S,typeof(τ)} (factors, τ), false )
@@ -300,12 +301,11 @@ QRCompactWYQ(factors::AbstractMatrix{S}, T::AbstractMatrix{S}) where {S} =
300301 QRCompactWYQ {S,typeof(factors),typeof(T)} (factors, T)
301302QRCompactWYQ {S} (factors:: AbstractMatrix , T:: AbstractMatrix ) where {S} =
302303 QRCompactWYQ (convert (AbstractMatrix{S}, factors), convert (AbstractMatrix{S}, T))
304+ QRCompactWYQ {S} (Q:: QRCompactWYQ ) where {S} = QRCompactWYQ {S} (Q. factors, Q. T)
303305# backwards-compatible constructors (remove with Julia 2.0)
304306@deprecate (QRCompactWYQ {S,M} (factors:: AbstractMatrix{S} , T:: AbstractMatrix{S} ) where {S,M},
305307 QRCompactWYQ {S,M,typeof(T)} (factors, T), false )
306308
307- QRPackedQ {T} (Q:: QRPackedQ ) where {T} = QRPackedQ (convert (AbstractMatrix{T}, Q. factors), convert (AbstractVector{T}, Q. τ))
308- QRCompactWYQ {S} (Q:: QRCompactWYQ ) where {S} = QRCompactWYQ (convert (AbstractMatrix{S}, Q. factors), convert (AbstractMatrix{S}, Q. T))
309309
310310# override generic square fallback
311311Matrix {T} (Q:: Union{QRCompactWYQ{S},QRPackedQ{S}} ) where {T,S} =
0 commit comments