6125e2aae892d605b6bb27c311a11c83df5365c2,pyriemann/utils/base.py,,logm,#Any#,28

Before Change


    :returns: the matrix logarithm

    
    D, V = scipy.linalg.eigh(Ci)
    D = numpy.diag(numpy.log(D))
    Out = numpy.dot(numpy.dot(V, D), V.T)
    return Out


def expm(Ci):
    Return the matrix exponential of a covariance matrix defined by :

After Change


    :returns: the matrix logarithm

    
    return _matrix_operator(Ci, numpy.log)


def expm(Ci):
    Return the matrix exponential of a covariance matrix defined by :
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: alexandrebarachant/pyRiemann
Commit Name: 6125e2aae892d605b6bb27c311a11c83df5365c2
Time: 2016-08-19
Author: alexandre.barachant@gmail.com
File Name: pyriemann/utils/base.py
Class Name:
Method Name: logm


Project Name: alexandrebarachant/pyRiemann
Commit Name: 6125e2aae892d605b6bb27c311a11c83df5365c2
Time: 2016-08-19
Author: alexandre.barachant@gmail.com
File Name: pyriemann/utils/base.py
Class Name:
Method Name: expm


Project Name: alexandrebarachant/pyRiemann
Commit Name: 6125e2aae892d605b6bb27c311a11c83df5365c2
Time: 2016-08-19
Author: alexandre.barachant@gmail.com
File Name: pyriemann/utils/base.py
Class Name:
Method Name: sqrtm