@@ -11,7 +11,7 @@ using LoopVectorization, Test
11
11
b = rand (R,99 ,99 ,1 );
12
12
bl = LowDimArray {(true,true,false)} (b);
13
13
@test size (bl) == size (b)
14
- @test LoopVectorization. size (bl) === (size (b,1 ),size (b,2 ),LoopVectorization. StaticInt (1 ))
14
+ @test LoopVectorization. ArrayInterface . size (bl) === (size (b,1 ),size (b,2 ),LoopVectorization. StaticInt (1 ))
15
15
16
16
br = reshape (b, (99 ,99 ));
17
17
c1 = a .+ b;
@@ -24,7 +24,7 @@ using LoopVectorization, Test
24
24
br = reshape (b, (99 ,1 ,99 ));
25
25
bl = LowDimArray {(true,false,true)} (br);
26
26
@test size (bl) == size (br)
27
- @test LoopVectorization. size (bl) === (size (br,1 ),LoopVectorization. StaticInt (1 ),size (br,3 ))
27
+ @test LoopVectorization. ArrayInterface . size (bl) === (size (br,1 ),LoopVectorization. StaticInt (1 ),size (br,3 ))
28
28
@. c1 = a + br;
29
29
fill! (c2, 99999 ); @turbo @. c2 = a + bl;
30
30
@test c1 ≈ c2
@@ -33,7 +33,7 @@ using LoopVectorization, Test
33
33
br = reshape (b, (1 ,99 ,99 ));
34
34
bl = LowDimArray {(false,)} (br);
35
35
@test size (bl) == size (br)
36
- @test LoopVectorization. size (bl) === (size (br, 1 ), LoopVectorization. StaticInt (1 ),size (br,3 ))
36
+ @test LoopVectorization. ArrayInterface . size (bl) === (LoopVectorization. StaticInt (1 ), size (br, 2 ),size (br,3 ))
37
37
@. c1 = a + br;
38
38
fill! (c2, 99999 );
39
39
@test c1 ≈ @turbo @. c2 = a + bl
@@ -53,7 +53,7 @@ using LoopVectorization, Test
53
53
end
54
54
max_ = maximum (xs, dims= 1 );
55
55
@test (@turbo exp .(xs .- LowDimArray {(false,)} (max_))) ≈ exp .(xs .- LowDimArray {(false,)} (max_))
56
- @test size (LowDimArray {(false,)} (max_)))) == size (max_)
56
+ @test size (LowDimArray {(false,)} (max_)) == size (max_)
57
57
58
58
if T === Int32
59
59
a = rand (T (1 ): T (100 ), 73 , 1 );
0 commit comments