File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -434,18 +434,23 @@ l_range = (1:l) .+ (l_sub_start -1)
434
434
end
435
435
end
436
436
437
-
438
- Q, R = F
439
- dQ, dR = d_F
440
- @test collect (dQ* dR) ≈ A
441
- @test collect (dR * dQ' ) ≈ (R * Q' )
442
437
A = rand (elty, n, m)
438
+ F = qr (A)
443
439
d_A = CuArray (A)
444
440
d_F = qr (d_A)
441
+ Q, R = F
442
+ dQ, dR = d_F
443
+ @test collect (dQ* dR) ≈ A
444
+ @test collect (dR * dQ' ) ≈ (R * Q' )
445
445
@test det (d_F. Q) ≈ det (collect (d_F. Q * CuMatrix {elty} (I, size (d_F. Q)))) atol= tol* norm (A)
446
446
A_view = view (A, m_subrange, n_subrange)
447
+ F = qr (A_view)
447
448
d_A_view = view (d_A, m_subrange, n_subrange)
448
449
d_F = qr (d_A_view)
450
+ Q, R = F
451
+ dQ, dR = d_F
452
+ @test collect (dQ* dR) ≈ A_view
453
+ @test collect (dR * dQ' ) ≈ (R * Q' )
449
454
@test det (d_F. Q) ≈ det (collect (d_F. Q * CuMatrix {elty} (I, size (d_F. Q)))) atol= tol* norm (A_view)
450
455
451
456
A = rand (elty, m, n)
You can’t perform that action at this time.
0 commit comments