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

Before Change


        // TODO: Check which method is faster depending on n, k.
        if self._k == 1:
            // 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)

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)
        // This alternative implementation is sometimes faster though less
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: pymanopt/pymanopt
Commit Name: 5b04895c28aed6af7548bf1a2558e19a0eb6b3b2
Time: 2016-02-02
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/stiefel.py
Class Name: Stiefel
Method Name: exp


Project Name: SheffieldML/GPy
Commit Name: d9cf9c3bff6665ec4bf5b35a6b6d5ae14cf920b3
Time: 2016-03-15
Author: alex.grigorievskiy@gmail.com
File Name: GPy/models/state_space_main.py
Class Name: ContDescrStateSpace
Method Name: lti_sde_to_descrete