@@ -615,7 +615,11 @@ Random.seed!(0)
615
615
Q = qr (randn (5 ,5 )). Q
616
616
b = randn (5 )
617
617
B = randn (5 ,5 )
618
- @test Q* 1.0 == ArrayLayouts. lmul! (Q, Matrix {Float64} (I, 5 , 5 ))
618
+ # The approx equality becomes exact on v1.10 and above,
619
+ # but that's an implementation detail.
620
+ # Below this, the LHS uses matrix broadcasting, whereas above this,
621
+ # it uses GEMQRT like the RHS
622
+ @test Q* 1.0 ≈ ArrayLayouts. lmul! (Q, Matrix {Float64} (I, 5 , 5 ))
619
623
@test Q* b == ArrayLayouts. lmul! (Q, copy (b)) == mul (Q,b)
620
624
@test Q* B == ArrayLayouts. lmul! (Q, copy (B)) == mul (Q,B)
621
625
@test B* Q == ArrayLayouts. rmul! (copy (B), Q) == mul (B,Q)
@@ -634,7 +638,11 @@ Random.seed!(0)
634
638
Q = qr (randn (7 ,5 )). Q
635
639
b = randn (5 )
636
640
B = randn (5 ,5 )
637
- @test Q* 1.0 == ArrayLayouts. lmul! (Q, Matrix {Float64} (I, 7 , 7 ))
641
+ # The approx equality becomes exact on v1.10 and above,
642
+ # but that's an implementatio detail.
643
+ # Below this, the LHS uses matrix broadcasting, whereas above this,
644
+ # it uses GEMQRT like the RHS
645
+ @test Q* 1.0 ≈ ArrayLayouts. lmul! (Q, Matrix {Float64} (I, 7 , 7 ))
638
646
@test Q* b == mul (Q,b)
639
647
@test Q* B == mul (Q,B)
640
648
@test 1.0 * Q ≈ ArrayLayouts. rmul! (Matrix {Float64} (I, 7 , 7 ), Q)
0 commit comments