pyFM.optimize.base_functions.descr_preservation_and_grad¶
- pyFM.optimize.base_functions.descr_preservation_and_grad(C, descr1_red, descr2_red)¶
Compute the descriptor preservation constraint and its gradient.
- Parameters:
C ((K2, K1) np.ndarray) – Functional map.
descr1_red ((K1, p) np.ndarray) – Descriptors on the first basis.
descr2_red ((K2, p) np.ndarray) – Descriptors on the second basis.
- Returns:
energy (float) – Descriptor preservation squared norm.
gradient ((K2, K1) np.ndarray) – Gradient of the descriptor preservation squared norm.