File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
using StaticArrays, Base. Test
2
2
3
- @testset " SVD" begin
3
+ @testset " SVD factorization " begin
4
4
@testset " svd" begin
5
- @testinf svdvals (@SMatrix [2 0 ; 0 0 ]) ≊ [2 , 0 ]
5
+ @testinf svdvals (@SMatrix [2 0 ; 0 0 ]):: StaticVector ≊ [2 , 0 ]
6
6
@testinf svdvals ((@SMatrix [2 - 2 ; 1 1 ]) / sqrt (2 )) ≊ [2 , 1 ]
7
7
8
8
m3 = @SMatrix Float64[3 9 4 ; 6 6 2 ; 3 7 9 ]
9
9
@testinf svdvals (m3) ≈ svdvals (Matrix (m3))
10
10
11
- @testinf svd (m3)[1 ] ≈ svd (Matrix (m3))[1 ]
12
- @testinf svd (m3)[2 ] ≈ svd (Matrix (m3))[2 ]
13
- @testinf svd (m3)[3 ] ≈ svd (Matrix (m3))[3 ]
11
+ @testinf svd (m3)[1 ]:: StaticMatrix ≈ svd (Matrix (m3))[1 ]
12
+ @testinf svd (m3)[2 ]:: StaticVector ≈ svd (Matrix (m3))[2 ]
13
+ @testinf svd (m3)[3 ]:: StaticMatrix ≈ svd (Matrix (m3))[3 ]
14
14
end
15
15
16
16
@testset " svdfact" begin
You can’t perform that action at this time.
0 commit comments