Skip to content

Commit 46b91eb

Browse files
committed
rearrange tests
1 parent bb6606a commit 46b91eb

File tree

1 file changed

+7
-7
lines changed
  • stdlib/LinearAlgebra/test

1 file changed

+7
-7
lines changed

stdlib/LinearAlgebra/test/qr.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,6 @@ rectangularQ(Q::LinearAlgebra.AbstractQ) = Matrix(Q)
188188
@test mul!(c, b, q') b*q'
189189
@test_throws DimensionMismatch mul!(Matrix{eltya}(I, n+1, n), q, b)
190190

191-
b = similar(a[:,1]); rand!(b)
192-
c = similar(a[:,1])
193-
d = similar(a[:,1])
194-
@test mul!(c, q, b) q*b
195-
@test mul!(c, q', b) q'*b
196-
@test_throws DimensionMismatch mul!(Vector{eltya}(undef, n+1), q, b)
197-
198191
qra = qr(a[:,1:n1], NoPivot())
199192
q, r = qra.Q, qra.R
200193
@test rmul!(copy(squareQ(q)'), q) Matrix(I, n, n)
@@ -212,6 +205,13 @@ rectangularQ(Q::LinearAlgebra.AbstractQ) = Matrix(Q)
212205
@test mul!(c, b, q) b*q
213206
@test mul!(c, b, q') b*q'
214207
@test_throws DimensionMismatch mul!(Matrix{eltya}(I, n+1, n), q, b)
208+
209+
b = similar(a[:,1]); rand!(b)
210+
c = similar(a[:,1])
211+
d = similar(a[:,1])
212+
@test mul!(c, q, b) q*b
213+
@test mul!(c, q', b) q'*b
214+
@test_throws DimensionMismatch mul!(Vector{eltya}(undef, n+1), q, b)
215215
end
216216
end
217217
end

0 commit comments

Comments
 (0)