Make EIGEN_HAS_CONSTEXPR user configurable

This commit is contained in:
Gael Guennebaud
2016-05-20 15:10:08 +02:00
parent c3410804cd
commit ccaace03c9
7 changed files with 17 additions and 9 deletions

View File

@@ -341,7 +341,7 @@ static void test_static_dims() {
Tensor<float, 2, DataLayout> out(72, 97);
in.setRandom();
#ifndef EIGEN_HAS_CONSTEXPR
#if !EIGEN_HAS_CONSTEXPR
array<int, 2> reduction_axis;
reduction_axis[0] = 1;
reduction_axis[1] = 3;
@@ -371,7 +371,7 @@ static void test_innermost_last_dims() {
in.setRandom();
// Reduce on the innermost dimensions.
#ifndef EIGEN_HAS_CONSTEXPR
#if !EIGEN_HAS_CONSTEXPR
array<int, 2> reduction_axis;
reduction_axis[0] = 0;
reduction_axis[1] = 1;
@@ -402,7 +402,7 @@ static void test_innermost_first_dims() {
in.setRandom();
// Reduce on the innermost dimensions.
#ifndef EIGEN_HAS_CONSTEXPR
#if !EIGEN_HAS_CONSTEXPR
array<int, 2> reduction_axis;
reduction_axis[0] = 2;
reduction_axis[1] = 3;
@@ -433,7 +433,7 @@ static void test_reduce_middle_dims() {
in.setRandom();
// Reduce on the innermost dimensions.
#ifndef EIGEN_HAS_CONSTEXPR
#if !EIGEN_HAS_CONSTEXPR
array<int, 2> reduction_axis;
reduction_axis[0] = 1;
reduction_axis[1] = 2;