Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:13

0001 #!/usr/bin/env python
0002 import numpy as np
0003 
0004 if __name__ == '__main__':
0005     e = np.load("/tmp/e.npy")
0006 
0007     ix = np.argsort(e)   
0008 
0009     i0 = np.load("/tmp/i0.npy")
0010     i1 = np.load("/tmp/i1.npy")
0011     i2 = np.load("/tmp/i2.npy")
0012 
0013     i0_match = np.all( ix == i0 )
0014     i1_match = np.all( ix == i1 )
0015     i2_match = np.all( ix == i2 )
0016 
0017     print( "i0_match %d " % i0_match )
0018     print( "i1_match %d " % i1_match )
0019     print( "i2_match %d " % i2_match )
0020 
0021 pass
0022