2efc48def04f842d5802caffda493734711d2738,pymanopt/manifolds/product.py,_ProductTangentVector,__repr__,#_ProductTangentVector#,81

Before Change



class _ProductTangentVector(list, ndarraySequenceMixin):
    def __repr__(self):
        repr_ = super(_ProductTangentVector, self).__repr__()
        return "_ProductTangentVector: " + repr_

    def __add__(self, other):
        assert len(self) == len(other)

After Change



class _ProductTangentVector(list, ndarraySequenceMixin):
    def __repr__(self):
        return "_ProductTangentVector: " + super().__repr__()

    def __add__(self, other):
        assert len(self) == len(other)
        return _ProductTangentVector(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pymanopt/pymanopt
Commit Name: 2efc48def04f842d5802caffda493734711d2738
Time: 2020-01-25
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/product.py
Class Name: _ProductTangentVector
Method Name: __repr__


Project Name: pymanopt/pymanopt
Commit Name: 2efc48def04f842d5802caffda493734711d2738
Time: 2020-01-25
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/fixed_rank.py
Class Name: _FixedRankTangentVector
Method Name: __repr__


Project Name: masa-su/pixyz
Commit Name: 6cb12a25ba993e6be2964f04948b0b9deb7ce6a4
Time: 2019-05-22
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: MultiplyDistribution
Method Name: __repr__