06f40aff5fafd3db599ae361d8d7aa33f3142038,pymanopt/manifolds/grassmann.py,Grassmann,retr,#Grassmann#,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


            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)))
                u, s, vt = svd(X[i] + G[i], full_matrices=False)
                XNew[i] = u.dot(vt)
        return XNew
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: mapillary/inplace_abn
Commit Name: a6b09bcc318e4488e94c2a515cdaf762c52bda46
Time: 2019-02-11
Author: samuel@mapillary.com
File Name: modules/functions.py
Class Name: InPlaceABNSync
Method Name: backward


Project Name: mapillary/inplace_abn
Commit Name: a6b09bcc318e4488e94c2a515cdaf762c52bda46
Time: 2019-02-11
Author: samuel@mapillary.com
File Name: modules/functions.py
Class Name: InPlaceABN
Method Name: backward