gftool.matrix.Decomposition.reconstruct¶
-
Decomposition.reconstruct(xi=None, kind='full')[source]¶ Get matrix back from
Decomposition.If the reciprocal of self.xi was taken, this corresponds to the inverse of the original matrix.
Parameters: - xi : (…, N) np.ndarray, optional
Alternative value used for self.xi. This argument can be used instead of modifying self.xi.
- kind : {‘diag’, ‘full’} or str
Defines how to reconstruct the matrix. If kind is ‘diag’, only the diagonal elements are computed, if it is ‘full’ the complete matrix is returned. Alternatively a str used for subscript of
np.einsumcan be given.
Returns: - reconstruct : (…, N, N) or (…, N) np.ndarray
The reconstructed matrix. If a subscript string is given as kind, the shape of the output might differ.