a1be7bf2f0926707e25b02570c17ba373878f768,pymanopt/manifolds/psd.py,PositiveDefinite,exp,#PositiveDefinite#Any#Any#,110

Before Change


            // Use manopt method
            return x.dot(sp.linalg.expm(sp.linalg.solve(x, u, sym_pos=True)))
        else:
            c = la.cholesky(x)
            c_inv = la.inv(c)
            e = multiexp(multiprod(multiprod(c_inv, u), multitransp(c_inv)),
                         sym=True)
            return multiprod(multiprod(c, e), multitransp(c))

    def log(self, x, y):
        c = la.cholesky(x)

After Change


        if self._k > 1:
            e = np.zeros(np.shape(x))
            for i in range(self._k):
                e[i] = sp.linalg.expm(x_inv_u[i])
        else:
            e = sp.linalg.expm(x_inv_u)
        return multiprod(x, e)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pymanopt/pymanopt
Commit Name: a1be7bf2f0926707e25b02570c17ba373878f768
Time: 2016-03-14
Author: jamiehntownsend@gmail.com
File Name: pymanopt/manifolds/psd.py
Class Name: PositiveDefinite
Method Name: exp


Project Name: pymc-devs/pymc3
Commit Name: 961eac763fe14e4741344feecc5227edac893883
Time: 2017-05-07
Author: adrian.seyboldt@gmail.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: random


Project Name: cornellius-gp/gpytorch
Commit Name: 4712923043ccd23b746b6272fb9aa6f37b212dfa
Time: 2019-01-29
Author: jrg365@cornell.edu
File Name: gpytorch/kernels/inducing_point_kernel.py
Class Name: InducingPointKernel
Method Name: _inducing_inv_root