[Fortran] 纯文本查看 复制代码
real*8 , parameter :: t1 = 3.12 , t2 = 0.29 , t3 = -0.0103
complex*16 , parameter :: i = (0.0, 1.0) , t0 = (0.0,0.0)
H = reshape([complex*16 :: t0, t1*f1, t0, t0, t0, t0,&
t1*f2, t0, t0, t2, t0, t3,&
t0, t0, t0, t1*f2, t0 ,t0,&
t0, t2, t1*f1,t0, t0, t2, &
t0, t0, t0, t0, t0, t1*f1,&
t0, t3, t0, t2, t1*f2, t0],[6 , 6])
[Fortran] 纯文本查看 复制代码
real(8) , parameter :: t1 = 3.12 , t2 = 0.29 , t3 = -0.0103
H_1 = reshape([complex(8) :: &
t0, t1*f1, t0, t0, t0, t0,&
t1*f2, t0, t0, t2, t0, t3,&
t0, t0, t0, t1*f2, t0 ,t0,&
t0, t2, t1*f1,t0, t0, t2, &
t0, t0, t0, t0, t0, t1*f1,&
t0, t3, t0, t2, t1*f2, t0],[6 , 6])