assemble_conformal_laplacian#

iskra.parameterization.scp.assemble_conformal_laplacian(lap: SparseTensor, vertex_area_mat: SparseTensor) → SparseTensor[SOURCE]#

Assembles a conformal laplacian from a cotan laplacian and a vertex area matrix.

The conformal laplacian is equal to:

\[\begin{split} L_c = \begin{bmatrix} L & 0 \\ 0 & L \\ \end{bmatrix} - 2 A, \end{split}\]

where \(L\) represents the cotan laplacian, and \(A\) is the vertex area matrix. See Spectral Conformal Parameterization by Mullen et al. 2008 for more details.

Parameters:
  • lap (sp.:class:~iskra.sparse.SparseTensor) – Cotan laplacian, e.g., from laplacian.

  • vertex_area_mat (sp.:class:~iskra.sparse.SparseTensor) – Vertex area matrix, see vertex_area_matrix.

Returns:

​ (sp.:class:~iskra.sparse.SparseTensor)