Go to the documentation of this file.
9 from numpy
import linalg
as LA
13 w = w*np.transpose([np.sqrt(wgt),np.sqrt(wgt),np.sqrt(wgt)])
14 v = v*np.transpose([np.sqrt(wgt),np.sqrt(wgt),np.sqrt(wgt)])
16 b = np.dot(np.transpose(v),w)
17 s = np.transpose(b) + b
18 z = [b[2,1]-b[1,2],b[0,2]-b[2,0],b[1,0]-b[0,1]]
19 sig = np.sum(np.diagonal(b))
29 eigval,evec = LA.eig(k)
30 tmpind = np.where(eigval == np.max(eigval))
31 qib = np.squeeze(evec[:,tmpind])
def qmethod(vecb, veci, wgt)