MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / init_harmonic_system

Function init_harmonic_system

scripts/map_to_sphere.py:68–73  ·  view source on GitHub ↗
(L, bd_indices, constraints, is_variable)

Source from the content-addressed store, hash-verified

66 return bd_vertex_indices, bd_vertex_positions;
67
68def init_harmonic_system(L, bd_indices, constraints, is_variable):
69 rhs = -L[:,bd_indices].dot(constraints);
70
71 M = L[:, is_variable][is_variable, :];
72 rhs = rhs[is_variable, :];
73 return M, rhs;
74
75@pymesh.timethis
76def solve(M, rhs, solver_type, tol):

Callers 1

tutte_3DFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected