0d8e1953722d6b89b4508572cdcf0a6259f3d6e1,geomstats/connection.py,LeviCivitaConnection,christoffel_symbols,#LeviCivitaConnection#Any#,67

Before Change


        Christoffel symbols associated with the connection.
        
        // TODO(nina): implement with automatic differentiation.
        raise NotImplementedError(
                "The Christoffel symbols are not implemented.")

    def torsion(self, base_point):
        
        Torsion tensor associated with the Levi-Civita connection is zero.

After Change


        term_2 = gs.einsum("nim,nmlk->nilk",
                           self.cometric_matrix(base_point),
                           self.metric_derivative(base_point))
        term_3 = - gs.einsum("nim,nklm->nikl",
                             self.cometric_matrix(base_point),
                             self.metric_derivative(base_point))

        christoffel_symbols = 0.5 * (term_1 + term_2 + term_3)
        return christoffel_symbols

    def torsion(self, base_point):
        
        Torsion tensor associated with the Levi-Civita connection is zero.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: geomstats/geomstats
Commit Name: 0d8e1953722d6b89b4508572cdcf0a6259f3d6e1
Time: 2018-07-30
Author: ninamio78@gmail.com
File Name: geomstats/connection.py
Class Name: LeviCivitaConnection
Method Name: christoffel_symbols


Project Name: fgnt/pb_bss
Commit Name: 6019d5d0f2b1c57e6d88ab6b16c54d77d3e68f21
Time: 2018-07-21
Author: mail@lukas-drude.de
File Name: dc_integration/distribution/gaussian.py
Class Name: SphericalGaussian
Method Name: log_pdf


Project Name: fgnt/pb_bss
Commit Name: 6019d5d0f2b1c57e6d88ab6b16c54d77d3e68f21
Time: 2018-07-21
Author: mail@lukas-drude.de
File Name: dc_integration/distribution/gaussian.py
Class Name: DiagonalGaussian
Method Name: log_pdf