e4b11f67c1c74888a6728b82d16d0a0be3eca1d9,scipy/spatial/spherical_voronoi.py,,calc_circumcenters,#Any#,22

Before Change


    sums = np.sum(tetrahedrons ** 2, axis=2)
    d = np.concatenate((sums[:, :, np.newaxis], a), axis=2)

    dx = np.linalg.det(np.delete(d, 1, axis=2))
    dy = -np.linalg.det(np.delete(d, 2, axis=2))
    dz = np.linalg.det(np.delete(d, 3, axis=2))

    nominator = np.vstack((dx, dy, dz))

After Change


        dz = np.linalg.det(dz)
    except np.linalg.LinAlgError:
        dx = np.array([determinant_fallback(m) for m in dx])
        dy = -np.array([determinant_fallback(m) for m in dy])
        dz = np.array([determinant_fallback(m) for m in dz])

    nominator = np.vstack((dx, dy, dz))
    denominator = np.matlib.repmat(2 * np.linalg.det(a), 3, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: e4b11f67c1c74888a6728b82d16d0a0be3eca1d9
Time: 2016-02-16
Author: mail@nikno.de
File Name: scipy/spatial/spherical_voronoi.py
Class Name:
Method Name: calc_circumcenters


Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetBatch
Method Name: test_log_det_only


Project Name: cornellius-gp/gpytorch
Commit Name: 91b0d220c8e816766fd4565e1d2f5115d3afbefe
Time: 2018-10-12
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_quad_log_det.py
Class Name: TestInvQuadLogDetBatch
Method Name: test_inv_quad_log_det_many_vectors