File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ using OffsetArrays, BenchmarkTools
169
169
bi = Bidiagonal (rand (3 ,3 ) .+ im, :L )
170
170
@test pbi (bi) == real (bi) # reconstruct via generic_projector
171
171
bu = Bidiagonal (rand (3 ,3 ) .+ im, :U ) # differs but uplo, not type
172
- @test pbi (bu) == diagm (diag (real (bu)))
172
+ @test pbi (bu) == diagm (0 => diag (real (bu)))
173
173
@test_throws DimensionMismatch pbi (rand (ComplexF32, 3 , 2 ))
174
174
175
175
pstri = ProjectTo (SymTridiagonal (Symmetric (rand (3 ,3 ))))
@@ -274,7 +274,7 @@ using OffsetArrays, BenchmarkTools
274
274
@test 0 == @ballocated $ padj (dx) setup= (dx= adjoint (rand (10 ^ 3 )))
275
275
@test 0 == @ballocated $ padj (dx) setup= (dx= transpose (rand (10 ^ 3 )))
276
276
277
- @test 0 == @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
277
+ VERSION >= v " 1.6 " && @test 0 == @ballocated ProjectTo (x' )(dx' ) setup= (x= rand (10 ^ 3 ); dx= rand (10 ^ 3 ))
278
278
279
279
pdiag = ProjectTo (Diagonal (rand (10 ^ 3 )))
280
280
@test 0 == @ballocated $ pdiag (dx) setup= (dx= Diagonal (rand (10 ^ 3 )))
You can’t perform that action at this time.
0 commit comments