Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib | |
matplotlib.use('Agg') | |
import pybinding as pb | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pickle | |
import argparse | |
import sys | |
from matplotlib import pylab, mlab |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Skd_MK2(dh, k=(0, 0, 0)): | |
dtype = np.complex128 | |
k = np.asarray(k, np.float64) | |
k.shape = (-1,) | |
# sparse matrix dimension (dh.no) | |
V = zeros((len(dh), len(dh)), dtype=dtype) | |
# Get the reciprocal lattice vectors dotted with k | |
kr = dot(dh.rcell, k) | |
# Calculate all phases | |
phases = exp(-1j * dot(kr, dot(dh.cell, dh.sc.sc_off.T))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false, | |
"deletable": true, | |
"editable": true, | |
"scrolled": true |