File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -20,31 +20,35 @@ import BlockArrays: BlockedUnitRange, blockisequal
20
20
U = UpperTriangular (A)
21
21
@test MemoryLayout (typeof (U)) == TriangularLayout {'U','N',BandedBlockBandedColumnMajor} ()
22
22
b = randn (size (U,1 ))
23
- @test U* b isa Vector{Float64}
24
- @test lmul (U,b) == U* b
25
- @test U* b ≈ Matrix (U)* b
23
+ Ub = U* b
24
+ @test Ub isa AbstractVector{Float64}
25
+ @test lmul (U,b) == Ub
26
+ @test Ub ≈ Matrix (U)* b
26
27
27
28
U = UnitUpperTriangular (A)
28
29
@test MemoryLayout (typeof (U)) == TriangularLayout {'U','U',BandedBlockBandedColumnMajor} ()
29
30
b = randn (size (U,1 ))
30
- @test U* b isa Vector{Float64}
31
- @test lmul (U,b) == U* b
32
- @test U* b ≈ Matrix (U)* b
31
+ Ub = U* b
32
+ @test Ub isa AbstractVector{Float64}
33
+ @test lmul (U,b) == Ub
34
+ @test Ub ≈ Matrix (U)* b
33
35
34
36
L = LowerTriangular (A)
35
37
@test MemoryLayout (typeof (L)) == TriangularLayout {'L','N',BandedBlockBandedColumnMajor} ()
36
38
b = randn (size (U,1 ))
37
- @test L* b isa Vector{Float64}
38
- @test lmul (L,b) == L* b
39
- @test L* b ≈ Matrix (L)* b
39
+ Lb = L* b
40
+ @test Lb isa AbstractVector{Float64}
41
+ @test lmul (L,b) == Lb
42
+ @test Lb ≈ Matrix (L)* b
40
43
41
44
42
45
L = UnitLowerTriangular (A)
43
46
@test MemoryLayout (typeof (L)) == TriangularLayout {'L','U',BandedBlockBandedColumnMajor} ()
44
47
b = randn (size (L,1 ))
45
- @test L* b isa Vector{Float64}
46
- @test lmul (L,b) == L* b
47
- @test L* b ≈ Matrix (L)* b
48
+ Lb = L* b
49
+ @test Lb isa AbstractVector{Float64}
50
+ @test lmul (L,b) == Lb
51
+ @test Lb ≈ Matrix (L)* b
48
52
end
49
53
50
54
@testset " Block by BlockIndex" begin
You can’t perform that action at this time.
0 commit comments