Fixed compilation error triggered by gcc 4.7

This commit is contained in:
Benoit Steiner 2015-05-20 08:54:44 -07:00
parent 2451679951
commit 48f6b274e2

View File

@ -58,8 +58,12 @@ static void test_gaussian()
{ {
int rows = 32; int rows = 32;
int cols = 48; int cols = 48;
array<float, 2> means = { rows / 2.0f, cols / 2.0f }; array<float, 2> means;
array<float, 2> std_devs = { 3.14f, 2.7f }; means[0] = rows / 2.0f;
means[1] = cols / 2.0f;
array<float, 2> std_devs;
std_devs[0] = 3.14f;
std_devs[1] = 2.7f;
internal::GaussianGenerator<float, Eigen::DenseIndex, 2> gaussian_gen(means, std_devs); internal::GaussianGenerator<float, Eigen::DenseIndex, 2> gaussian_gen(means, std_devs);
Tensor<float, 2> matrix(rows, cols); Tensor<float, 2> matrix(rows, cols);