f0815a6bbb3af21866202175779e7acbb4b1bb1d,geomstats/geometry/symmetric_matrices.py,SymmetricMatrices,apply_func_to_eigvals,#Any#Any#Any#,192
Before Change
eigvals = function(eigvals)
eigvals = algebra_utils.from_vector_to_diagonal_matrix(eigvals)
transp_eigvecs = Matrices.transpose(eigvecs)
reconstruction = gs.matmul(eigvecs, eigvals)
reconstruction = gs.matmul(reconstruction, transp_eigvecs)
return reconstruction
After Change
"Negative eigenvalue encountered in"
" {}".format(function.__name__))
return_list = True
if not isinstance(function, list):
function = [function]
return_list = False
reconstruction = []
transp_eigvecs = Matrices.transpose(eigvecs)
for fun in function:
eigvals_f = fun(eigvals)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: geomstats/geomstats
Commit Name: f0815a6bbb3af21866202175779e7acbb4b1bb1d
Time: 2021-03-24
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/symmetric_matrices.py
Class Name: SymmetricMatrices
Method Name: apply_func_to_eigvals
Project Name: cornellius-gp/gpytorch
Commit Name: e712d42833a82df3331d1e742ed95b0e7dc235fb
Time: 2018-01-31
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/gaussian_random_variable.py
Class Name: GaussianRandomVariable
Method Name: sample
Project Name: arraiy/torchgeometry
Commit Name: a606a68ff74ed2b2e35f7079a1570310655e4e6d
Time: 2019-03-04
Author: edgar.riba@gmail.com
File Name: torchgeometry/core/depth_warper.py
Class Name: DepthWarper
Method Name: compute_projection_matrix