def test_cholesky_functions(): S, dt, kt = multi_tensor_dki(gtab, mevals, S0=100, angles=[(45., 45.), (45., 45.)], fractions=[80, 20]) R = lower_triangular_to_cholesky(dt) tensor = cholesky_to_lower_triangular(R) assert_array_almost_equal(dt, tensor)