pyFM.optimize.base_functions.descr_preservation_grad¶
- pyFM.optimize.base_functions.descr_preservation_grad(C, descr1_red, descr2_red)¶
Compute the gradient of the descriptor preservation constraint.
- 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:
gradient – Gradient of the descriptor preservation squared norm.
- Return type:
(K2, K1) np.ndarray