@@ -13,8 +13,8 @@ for k in range(n):
13
13
Aij = np .append (Aij , np .complex128 (complex ( 200. , 200. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
14
14
elif l == k - 1 :
15
15
Aij = np .append (Aij , np .complex128 (complex (- 101. , - 101. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
16
- elif l == k + 1 :
17
- Aij = np .append (Aij , np .complex128 (complex ( - 99 . , - 99 . ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
16
+ elif l == k + 1 : # Note: matrix must be hermitian.
17
+ Aij = np .append (Aij , np .complex128 (complex (- 101 . , 101 . ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
18
18
else :
19
19
Aij = np .append (Aij , np .complex128 (complex ( 0. , 0. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
20
20
for idx , val in enumerate (Aij ):
@@ -70,9 +70,9 @@ for k in range(n):
70
70
elif l == k - 1 :
71
71
Aij = np .append (Aij , np .complex64 (complex (- 101. , - 101. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
72
72
Bij = np .append (Bij , np .complex64 (complex ( 16.6 , 16.6 ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
73
- elif l == k + 1 :
74
- Aij = np .append (Aij , np .complex64 (complex ( - 99 . , - 99 . ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
75
- Bij = np .append (Bij , np .complex64 (complex ( 16.6 , 16.6 ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
73
+ elif l == k + 1 : # Note: matrix must be hermitian.
74
+ Aij = np .append (Aij , np .complex64 (complex (- 101 . , 101 . ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
75
+ Bij = np .append (Bij , np .complex64 (complex ( 16.6 , - 16.6 ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
76
76
else :
77
77
Aij = np .append (Aij , np .complex64 (complex ( 0. , 0. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
78
78
Bij = np .append (Bij , np .complex64 (complex ( 0. , 0. ))) # Casting value on append is MANDATORY or C++ won't get the expected type.
0 commit comments