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

Function solve

scripts/map_to_sphere.py:76–82  ·  view source on GitHub ↗
(M, rhs, solver_type, tol)

Source from the content-addressed store, hash-verified

74
75@pymesh.timethis
76def solve(M, rhs, solver_type, tol):
77 solver = pymesh.SparseSolver.create(solver_type);
78 if tol is not None:
79 solver.tolerance = tol;
80 solver.compute(M);
81 x = solver.solve(rhs);
82 return x;
83
84def tutte_3D(mesh, bd_vertex_indices, bd_vertex_positions):
85 assembler = pymesh.Assembler(mesh);

Callers 1

tutte_3DFunction · 0.85

Calls 3

createMethod · 0.45
computeMethod · 0.45
solveMethod · 0.45

Tested by

no test coverage detected