1 from __future__
import division
2 from object
import Surface
as fc
13 adj = fc.adjacent(face, face2)
18 e = fc.common_edge(face, face2)
20 val = math.exp(-w/sigma)
24 matrix_l = np.matrix([riga])
27 for face
in faces[1:]:
29 adj = fc.adjacent(face, face2)
34 e = fc.common_edge(face, face2)
36 val = math.exp(-w/sigma)
40 matrix_l = np.vstack([matrix_l, riga])
49 vett.append(row.sum())
50 matrix_d = np.asmatrix(np.diag(vett))
56 if type(M) == np.matrix:
62 M2[i, j] = (M[i, j] + M[j, i]) / 2