geomstats / geomstats

Computations and statistics on manifolds with geometric structures.
http://geomstats.ai
MIT License
1.2k stars 245 forks source link

spd matrices projection uses gs.atol #1264

Open SaitejaUtpala opened 2 years ago

SaitejaUtpala commented 2 years ago

spd_matrices projection uses gs.atol. So output is varied based on different backend (although by small amount). I think it's better if we have same output across backends for simple operations like projection

nguigs commented 2 years ago

It really depends on the numerical precision used though. Take a matrix with eigen value 1e-6, and try the belongs method on it

SaitejaUtpala commented 2 years ago

I see. But if user changes tolerance torch.set_default_dtype(torch.float64) behaviour is not dependent ? we would still be returning based float32