mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +01:00
17ab555213
- cleaner implementation, solve some bugs...
241 lines
4.5 KiB
Plaintext
241 lines
4.5 KiB
Plaintext
(A) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(make_matrix(pow(V(A),2))) --->
|
|
[[1,9,25]
|
|
[4,16,36]
|
|
[9,25,49]]
|
|
(make_matrix(cosh(V(A)))) --->
|
|
[[1.54308,10.0677,74.2099]
|
|
[3.7622,27.3082,201.716]
|
|
[10.0677,74.2099,548.317]]
|
|
(B) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(abs(B)) ---> mapping result
|
|
(make_matrix(abs(B))) --->
|
|
[[0,1,2]
|
|
[1,0,1]
|
|
[2,1,0]]
|
|
(make_matrix(abs(B+B))) --->
|
|
[[0,2,4]
|
|
[2,0,2]
|
|
[4,2,0]]
|
|
(make_matrix(A+ s*B)) --->
|
|
[[1,-7,-15]
|
|
[12,4,-4]
|
|
[23,15,7]]
|
|
(make_matrix(abs(A+s*B))) --->
|
|
[[1,7,15]
|
|
[12,4,4]
|
|
[23,15,7]]
|
|
(make_matrix(real(B))) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(make_matrix(imag(B))) --->
|
|
[[0,0,0]
|
|
[0,0,0]
|
|
[0,0,0]]
|
|
(make_matrix(exp(aa))) --->
|
|
[[2.71828,7.38906]
|
|
[20.0855,54.5982]]
|
|
(make_matrix(conj(A))) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(A) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(make_matrix(pow(V(A),2))) --->
|
|
[[1,9,25]
|
|
[4,16,36]
|
|
[9,25,49]]
|
|
(make_matrix(cosh(V(A)))) --->
|
|
[[1.54308,10.0677,74.2099]
|
|
[3.7622,27.3082,201.716]
|
|
[10.0677,74.2099,548.317]]
|
|
(B) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(abs(B)) ---> mapping result
|
|
(make_matrix(abs(B))) --->
|
|
[[0,1,2]
|
|
[1,0,1]
|
|
[2,1,0]]
|
|
(make_matrix(abs(B+B))) --->
|
|
[[0,2,4]
|
|
[2,0,2]
|
|
[4,2,0]]
|
|
(make_matrix(A+ s*B)) --->
|
|
[[1,-7,-15]
|
|
[12,4,-4]
|
|
[23,15,7]]
|
|
(make_matrix(abs(A+s*B))) --->
|
|
[[1,7,15]
|
|
[12,4,4]
|
|
[23,15,7]]
|
|
(make_matrix(real(B))) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(make_matrix(imag(B))) --->
|
|
[[0,0,0]
|
|
[0,0,0]
|
|
[0,0,0]]
|
|
(make_matrix(exp(aa))) --->
|
|
[[2.71828,7.38906]
|
|
[20.0855,54.5982]]
|
|
(make_matrix(conj(A))) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(A) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(make_matrix(pow(V(A),2))) --->
|
|
[[1,9,25]
|
|
[4,16,36]
|
|
[9,25,49]]
|
|
(make_matrix(cosh(V(A)))) --->
|
|
[[1.54308,10.0677,74.2099]
|
|
[3.7622,27.3082,201.716]
|
|
[10.0677,74.2099,548.317]]
|
|
(B) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(abs(B)) ---> mapping result
|
|
(make_matrix(abs(B))) --->
|
|
[[0,1,2]
|
|
[1,0,1]
|
|
[2,1,0]]
|
|
(make_matrix(abs(B+B))) --->
|
|
[[0,2,4]
|
|
[2,0,2]
|
|
[4,2,0]]
|
|
(make_matrix(A+ s*B)) --->
|
|
[[1,-7,-15]
|
|
[12,4,-4]
|
|
[23,15,7]]
|
|
(make_matrix(abs(A+s*B))) --->
|
|
[[1,7,15]
|
|
[12,4,4]
|
|
[23,15,7]]
|
|
(make_matrix(real(B))) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(make_matrix(imag(B))) --->
|
|
[[0,0,0]
|
|
[0,0,0]
|
|
[0,0,0]]
|
|
(make_matrix(exp(aa))) --->
|
|
[[2.71828,7.38906]
|
|
[20.0855,54.5982]]
|
|
(make_matrix(conj(A))) --->
|
|
[[1,3,5]
|
|
[2,4,6]
|
|
[3,5,7]]
|
|
(A) --->
|
|
[[(1,0),(3,0),(5,0)]
|
|
[(2,0),(4,0),(6,0)]
|
|
[(3,0),(5,0),(7,0)]]
|
|
(make_matrix(pow(V(A),2))) --->
|
|
[[(1,0),(9,0),(25,0)]
|
|
[(4,0),(16,0),(36,0)]
|
|
[(9,0),(25,0),(49,0)]]
|
|
(make_matrix(cosh(V(A)))) --->
|
|
[[(1.54308,0),(10.0677,0),(74.2099,0)]
|
|
[(3.7622,0),(27.3082,0),(201.716,0)]
|
|
[(10.0677,0),(74.2099,0),(548.317,0)]]
|
|
(B) --->
|
|
[[(0,0),(-1,0),(-2,0)]
|
|
[(1,0),(0,0),(-1,0)]
|
|
[(2,0),(1,0),(0,0)]]
|
|
(abs(B)) ---> mapping result
|
|
(make_matrix(abs(B))) --->
|
|
[[0,1,2]
|
|
[1,0,1]
|
|
[2,1,0]]
|
|
(make_matrix(abs(B+B))) --->
|
|
[[0,2,4]
|
|
[2,0,2]
|
|
[4,2,0]]
|
|
(make_matrix(A+ s*B)) --->
|
|
[[(1,0),(-7,0),(-15,0)]
|
|
[(12,0),(4,0),(-4,0)]
|
|
[(23,0),(15,0),(7,0)]]
|
|
(make_matrix(abs(A+s*B))) --->
|
|
[[1,7,15]
|
|
[12,4,4]
|
|
[23,15,7]]
|
|
(make_matrix(real(B))) --->
|
|
[[0,-1,-2]
|
|
[1,0,-1]
|
|
[2,1,0]]
|
|
(make_matrix(imag(B))) --->
|
|
[[0,0,0]
|
|
[0,0,0]
|
|
[0,0,0]]
|
|
(make_matrix(exp(aa))) --->
|
|
[[(2.71828,0),(7.38906,0)]
|
|
[(20.0855,0),(54.5982,0)]]
|
|
(make_matrix(conj(A))) --->
|
|
[[(1,0),(3,0),(5,0)]
|
|
[(2,0),(4,0),(6,0)]
|
|
[(3,0),(5,0),(7,0)]]
|
|
(A) --->
|
|
[[(-2,3),(-6,9),(-10,15)]
|
|
[(-4,6),(-8,12),(-12,18)]
|
|
[(-6,9),(-10,15),(-14,21)]]
|
|
(make_matrix(pow(V(A),2))) --->
|
|
[[(-5,-12),(-45,-108),(-125,-300)]
|
|
[(-20,-48),(-80,-192),(-180,-432)]
|
|
[(-45,-108),(-125,-300),(-245,-588)]]
|
|
(make_matrix(cosh(V(A)))) --->
|
|
[[(-3.72455,-0.511823),(-183.789,-83.1297),(-8366.62,-7161.77)]
|
|
[(26.2206,7.62523),(1257.75,799.751),(53734.9,61113.4)]
|
|
[(-183.789,-83.1297),(-8366.62,-7161.77),(-329351,-503083)]]
|
|
(B) --->
|
|
[[(0,0),(2,-3),(4,-6)]
|
|
[(-2,3),(0,0),(2,-3)]
|
|
[(-4,6),(-2,3),(0,0)]]
|
|
(abs(B)) ---> mapping result
|
|
(make_matrix(abs(B))) --->
|
|
[[0,3.60555,7.2111]
|
|
[3.60555,0,3.60555]
|
|
[7.2111,3.60555,0]]
|
|
(make_matrix(abs(B+B))) --->
|
|
[[0,7.2111,14.4222]
|
|
[7.2111,0,7.2111]
|
|
[14.4222,7.2111,0]]
|
|
(make_matrix(A+ s*B)) --->
|
|
[[(-2,3),(14,-21),(30,-45)]
|
|
[(-24,36),(-8,12),(8,-12)]
|
|
[(-46,69),(-30,45),(-14,21)]]
|
|
(make_matrix(abs(A+s*B))) --->
|
|
[[3.60555,25.2389,54.0833]
|
|
[43.2666,14.4222,14.4222]
|
|
[82.9277,54.0833,25.2389]]
|
|
(make_matrix(real(B))) --->
|
|
[[0,2,4]
|
|
[-2,0,2]
|
|
[-4,-2,0]]
|
|
(make_matrix(imag(B))) --->
|
|
[[0,-3,-6]
|
|
[3,0,-3]
|
|
[6,3,0]]
|
|
(make_matrix(exp(aa))) --->
|
|
[[(2.71828,0),(7.38906,0)]
|
|
[(20.0855,0),(54.5982,0)]]
|
|
(make_matrix(conj(A))) --->
|
|
[[(-2,-3),(-6,-9),(-10,-15)]
|
|
[(-4,-6),(-8,-12),(-12,-18)]
|
|
[(-6,-9),(-10,-15),(-14,-21)]]
|