8e0ca26e5571d47425fc73bb3bb118082b742d00,geomstats/geometry/spd_matrices.py,SPDMatrices,random_uniform,#SPDMatrices#Any#,54

Before Change


            Points sampled in SPD(n).
        
        n = self.n
        size = (n_samples, n, n) if n_samples != 1 else (n, n)

        mat = 2 * gs.random.rand(*size) - 1
        spd_mat = GeneralLinear.exp(Matrices.to_symmetric(mat))

After Change



    @classmethod
    @geomstats.vectorization.decorator(["else", "matrix", "matrix"])
    def inverse_differential_log(cls, tangent_vec, base_point):
        Compute the inverse of the differential of the matrix logarithm.

        Compute the inverse of the differential of the matrix
        logarithm on SPD matrices at base_point applied to
        tangent_vec.

        Parameters
        ----------
        tangent_vec : array_like, shape=[..., n, n]
            Tangent vector at base point.
        base_point : array_like, shape=[..., n, n]
            Base point.

        Returns
        -------
        inverse_differential_log : array-like, shape=[..., n, n]
            Inverse of the differential of the matrix logarithm.
        
        eigvectors, transp_eigvectors, numerator, denominator, temp_result =\
            cls.aux_differential_power(0, tangent_vec, base_point)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: 8e0ca26e5571d47425fc73bb3bb118082b742d00
Time: 2021-03-17
Author: nicolas.guigui@inria.fr
File Name: geomstats/geometry/spd_matrices.py
Class Name: SPDMatrices
Method Name: random_uniform


Project Name: geomstats/geomstats
Commit Name: 42ce0dba0e496fca8b567516499909e185b70322
Time: 2018-11-20
Author: 15810673+oleg-kachan@users.noreply.github.com
File Name: geomstats/stiefel.py
Class Name: Stiefel
Method Name: belongs


Project Name: geomstats/geomstats
Commit Name: f0363f957b8e6d2680af887972387de7f00b2715
Time: 2018-11-21
Author: 15810673+oleg-kachan@users.noreply.github.com
File Name: geomstats/stiefel.py
Class Name: Stiefel
Method Name: belongs