pyFM.FMN.FMN.CLB_quad_form

pyFM.FMN.FMN.CLB_quad_form(maps, weights, M=None, n_meshes=None)

Compute the quadratic form of a Functional Maps Network for CLB computation.

Parameters:
  • maps (dict) – Dictionary of functional maps, keyed by (i, j) representing an edge.

  • weights ((n, n) sparse matrix) – Matrix of weights. Entry (i, j) represents the weight of edge (i, j).

  • M (int, optional) – Dimension of functional maps to consider.

  • n_meshes (int, optional) – Number of meshes. If not specified, inferred from the highest index in maps.

Returns:

W – (N*M, N*M) sparse matrix representing the quadratic form for CLB computation.

Return type:

scipy.sparse.csr_matrix