3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-01 11:43:47 +01:00
dft_tools/test/pytriqs/base/gf_transpose.py

10 lines
307 B
Python
Raw Normal View History

from pytriqs.gf.local import *
g = GfImFreq(indicesR = range(5), indicesL = range(3), beta = 40, n_points = 1000)
gt = g.transpose()
print "Old data shape = ", g.data.shape
print "Old tail shape = ", g.tail.data.shape
print "New data shape = ", gt.data.shape
print "New tail shape = ", gt.tail.data.shape