Package SloppyCell :: Package Vandermonde :: Module decompHess
[hide private]

Source Code for Module SloppyCell.Vandermonde.decompHess

 1  import OptimizeSumDets as OSD 
 2  try: 
 3      import cluster 
 4  except ImportError: 
 5      pass 
 6  import clusterScripts 
 7  import VdmPairwise as Vdm 
 8  import scipy 
 9   
10 -def getPermList(hess):
11 Dmat = Vdm.calcDmat(hess) 12 lambdaMat, r2Mat = Vdm.getLambdaR2(hess,Dmat) 13 ctMat, dtMat = Vdm.calcR2mat_Terms(hess, lambdaMat) 14 clHess = cluster.HierarchicalClustering(range(len(hess)), lambda x,y: clusterScripts.getDist(x,y,r2Mat/dtMat)) 15 clHess.getlevel(0.1) 16 permList = clusterScripts.FlattenIt(clHess.topo(),r2Mat/dtMat) 17 return permList
18