06f40aff5fafd3db599ae361d8d7aa33f3142038,pymanopt/manifolds/grassmann.py,Grassmann,retr,#Grassmann#Any#Any#,90

Before Change


            XNew = X + G
            for i in xrange(self._k):
                q, r = np.linalg.qr(Y[i])
                XNew[i] = np.dot(q, np.diag(np.sign(np.sign(np.diag(r))+.5)))

    def norm(self, X, G):
        // Norm on the tangent space is simply the Euclidean norm.

After Change



            // Compute the polar factorization of Y = X+G
            u, s, v = svd(X + G, full_matrices=False)
            XNew = u.dot(v.T);
        else:
            XNew = np.zeros(np.shape(X))
            for i in xrange(self._k):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pymanopt/pymanopt
Commit Name: 06f40aff5fafd3db599ae361d8d7aa33f3142038
Time: 2016-01-18
Author: jamiehntownsend@gmail.com
File Name: pymanopt/manifolds/grassmann.py
Class Name: Grassmann
Method Name: retr


Project Name: prody/ProDy
Commit Name: 71c53bd3beecb202a09a81964c7692ff52ae3eff
Time: 2019-10-02
Author: shz66@pitt.edu
File Name: prody/measure/transform.py
Class Name:
Method Name: getTransformation


Project Name: pymc-devs/pymc3
Commit Name: 209d35f4c0c1925e73d2cf35a34cd633e085f49a
Time: 2017-02-21
Author: adrian.seyboldt@gmail.com
File Name: pymc3/step_methods/hmc/nuts.py
Class Name: Tree
Method Name: _build_subtree