def calc_circumcenters(tetrahedrons):

    num = tetrahedrons.shape[0]
    a = np.concatenate((tetrahedrons, np.ones((num, 4, 1))), axis=2)

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

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

    if HAS_NUMPY_VEC_DET:
        dx = np.linalg.det(dx)
        dy = -np.linalg.det(dy)
        dz = np.linalg.det(dz)
        a = np.linalg.det(a)
    else:
        dx = np.array([np.linalg.det(m) for m in dx])
        dy = -np.array([np.linalg.det(m) for m in dy])
        dz = np.array([np.linalg.det(m) for m in dz])
        a = np.array([np.linalg.det(m) for m in a])

    nominator = np.vstack((dx, dy, dz))
    denominator = 2*a
    return (nominator / denominator).T
Creates an instance of the klass.
dataset/ETHPy150Open scipy/scipy/scipy/spatial/_spherical_voronoi.py/calc_circumcenters--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/PyAMF-0.6.1/pyamf/alias.py/ClassAlias.createInstance