Explorar el Código

simplex_interpolator: adding std::cout test… for realz this time

undefined
Guillaume Bittoun Sam Hocevar <sam@hocevar.net> hace 11 años
padre
commit
49e9971183
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. +9
    -1
      src/t/math/simplex_interpolator.cpp

+ 9
- 1
src/t/math/simplex_interpolator.cpp Ver fichero

@@ -204,7 +204,7 @@ lolunit_declare_fixture(SimplexInterpolatorTest)
check_index_ordering<10>();
}

void check_sample_creation_order2()
lolunit_declare_test(CheckSampleOrder2)
{
static int gen = 12345678;

@@ -224,6 +224,14 @@ lolunit_declare_fixture(SimplexInterpolatorTest)

simplex_interpolator<2> s;
s.SetGradients(gradients);

for (int i = 0 ; i < 10 ; ++i)
{
for (int j = 0 ; j < 10 ; ++j)
{
std::cout << s.Interp(vec_t<float, 2>({i, j})) << std::endl;
}
}
}

#if 0


Cargando…
Cancelar
Guardar