You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use math equation in some of the docstrings.
Get rid off long lines. Modified some unnecessary content.
No function change.
Signed-off-by: Hao Wu <[email protected]>
"""Evaluates if a criteria using approximated eigenvalues is below or equal to the tolerance.
153
156
154
-
`approx_eigenvalues_matrix` is a matrix created from the approximated eigenvectors and the symmetric matrix that is being eigendecomposed.
155
-
We check if the ratio of the diagonal norm to the matrix norm is greater than or equal to (1 - tolerance).
157
+
`approx_eigenvalues_matrix` is a matrix created from the approximated eigenvectors and the symmetric matrix
158
+
that is being eigendecomposed. We check if the ratio of the diagonal norm to the matrix norm is greater
159
+
than or equal to (1 - tolerance).
156
160
157
161
Args:
158
162
approx_eigenvalues_matrix: The symmetric matrix whose eigenvalues is being eigendecomposed.
159
-
tolerance: The tolerance for the early exit criteria, the min relative error between diagonal norm and matrix norm of the approximated eigenvalues and the diagonal.
163
+
tolerance: The tolerance for the early exit criteria, the min relative error between diagonal norm
164
+
and matrix norm of the approximated eigenvalues and the diagonal.
160
165
161
166
Returns:
162
167
bool: True if the criteria is below or equal to the tolerance, False otherwise.
0 commit comments