def test_interpolation_trilinear(self): """ Tests :func:`colour.algebra.interpolation.\ table_interpolation_trilinear` definition. """ prng = np.random.RandomState(4) V_xyz = random_triplet_generator(16, random_state=prng) np.testing.assert_almost_equal( table_interpolation_trilinear(V_xyz, LUT_TABLE), np.array([ [1.07937594, -0.02773926, 0.55498254], [0.53983424, 0.37099516, 0.13994561], [1.13449122, -0.00305380, 0.13792909], [0.73411897, 1.00141020, 0.59348239], [0.74066176, 0.44679540, 0.55030394], [0.20634750, 0.84797880, 0.55905579], [0.92348649, 0.73112515, 0.42362820], [0.03639248, 0.70357649, 0.52375041], [0.29215488, 0.19697840, 0.44603879], [0.47793470, 0.08696360, 0.70288463], [0.88883354, 0.68680856, 0.87404642], [0.21430977, 0.16796653, 0.19634247], [0.82118989, 0.69239283, 0.39932389], [1.06679072, 0.37974319, 0.49759377], [0.17856230, 0.44755467, 0.62045271], [0.59220355, 0.93136492, 0.30063692], ]))