File tree 1 file changed +13
-12
lines changed
1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 10
10
11
11
function test_linearalgrbra_functions (A:: AbstractMatrix )
12
12
matrix = Matrix (A)
13
- result = [
14
- isdiag (A) == isdiag (matrix),
15
- ishermitian (A) == ishermitian (matrix),
16
- isposdef (A) == isposdef (matrix),
17
- issymmetric (A) == issymmetric (matrix),
18
- adjoint (A) ≈ adjoint (matrix),
19
- transpose (A) ≈ transpose (matrix),
20
- det (A) == det (matrix),
21
- inv (A) ≈ inv (matrix),
22
- eigvals (A) ≈ eigvals (matrix),
23
- ]
24
- if all (result)
13
+ result = Dict ([
14
+ isdiag => isdiag (A) == isdiag (matrix),
15
+ ishermitian => ishermitian (A) == ishermitian (matrix),
16
+ issymmetric => issymmetric (A) == issymmetric (matrix),
17
+ isposdef => isposdef (A) == isposdef (matrix),
18
+ adjoint => adjoint (A) ≈ adjoint (matrix),
19
+ transpose => transpose (A) ≈ transpose (matrix),
20
+ det => det (A) == det (matrix),
21
+ inv => inv (A) ≈ inv (matrix),
22
+ eigvals => eigvals (A) ≈ eigvals (matrix),
23
+ ])
24
+
25
+ if all (values (result))
25
26
return true
26
27
else
27
28
@error result
You can’t perform that action at this time.
0 commit comments