Skip to content

Commit e116f9c

Browse files
committed
increase coverage
1 parent e2a5caf commit e116f9c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/test_ql.jl

+5
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,9 @@ using MatrixFactorizations, ArrayLayouts, Test
210210
@test rowsupport(Q, 4) colsupport(Q', 4) Base.OneTo(5)
211211
@test colsupport(Q, 4) rowsupport(Q', 4) 3:10
212212
end
213+
214+
@testset "AbstractMatrix conversion" begin
215+
Q = ql(randn(5,5)).Q
216+
@test AbstractMatrix{Float64}(Q) isa Matrix{Float64}
217+
end
213218
end

test/test_qr.jl

+5
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,9 @@ rectangularQ(Q::LinearAlgebra.AbstractQ) = Matrix(Q) # convert(Array, Q)
200200
@test rowsupport(Q, 4) colsupport(Q', 4) 3:10
201201
@test colsupport(Q, 4) rowsupport(Q', 4) Base.OneTo(5)
202202
end
203+
204+
@testset "AbstractMatrix conversion" begin
205+
Q = qrunblocked(randn(5,5)).Q
206+
@test AbstractMatrix{Float64}(Q) isa Matrix{Float64}
207+
end
203208
end

test/test_rq.jl

+5
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,9 @@ const Our=MatrixFactorizations
207207
@test rmul!(copy(c), Q) c*Matrix(Q)
208208
@test rmul!(copy(c), Q') c*Matrix(Q')
209209
end
210+
211+
@testset "AbstractMatrix conversion" begin
212+
Q = rq(randn(5,5)).Q
213+
@test AbstractMatrix{Float64}(Q) isa Matrix{Float64}
214+
end
210215
end

0 commit comments

Comments
 (0)