aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/ReshapedHelper.h
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2018-11-02 14:48:28 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2018-11-02 14:48:28 -0700
commit118520f04a84b6246a1fb1c6db4ce99290a79956 (patch)
treeeb4e2a99be9093db0d6106526457504779a99a56 /Eigen/src/Core/util/ReshapedHelper.h
parent9d318b92c6d5487727d3994c733c9d86186f4204 (diff)
Workaround nbcc+msvc compiler bug
Diffstat (limited to 'Eigen/src/Core/util/ReshapedHelper.h')
-rw-r--r--Eigen/src/Core/util/ReshapedHelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/ReshapedHelper.h b/Eigen/src/Core/util/ReshapedHelper.h
index 97370c138..b6733b6bc 100644
--- a/Eigen/src/Core/util/ReshapedHelper.h
+++ b/Eigen/src/Core/util/ReshapedHelper.h
@@ -39,6 +39,12 @@ inline Index get_runtime_reshape_size(AutoSize_t /*size*/, Index other, Index to
return total/other;
}
+template <int Flags, int Order>
+struct get_compiletime_reshape_order
+{
+ enum { value = Order==AutoOrder ? Flags & RowMajorBit : Order };
+};
+
}
} // end namespace Eigen