From a7d2552af8b34f6befba9988c36fe5d9723892e6 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Thu, 28 May 2020 10:41:28 -0700 Subject: Remove HasCast and fix packetmath cast tests. The use of the `packet_traits<>::HasCast` field is currently inconsistent with `type_casting_traits<>`, and is unused apart from within `test/packetmath.cpp`. In addition, those packetmath cast tests do not currently reflect how casts are performed in practice: they ignore the `SrcCoeffRatio` and `TgtCoeffRatio` fields, assuming a 1:1 ratio. Here we remove the unsed `HasCast`, and modify the packet cast tests to better reflect their usage. --- unsupported/test/cxx11_tensor_morphing.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'unsupported/test') diff --git a/unsupported/test/cxx11_tensor_morphing.cpp b/unsupported/test/cxx11_tensor_morphing.cpp index 59f4c34b3..e8c42a4cd 100644 --- a/unsupported/test/cxx11_tensor_morphing.cpp +++ b/unsupported/test/cxx11_tensor_morphing.cpp @@ -53,7 +53,6 @@ static void test_static_reshape() { Eigen::IndexList, type2index<3>, type2index<7>> dim; Tensor reshaped = tensor.reshape(static_cast>(dim)); - for (int i = 0; i < 2; ++i) { for (int j = 0; j < 3; ++j) { for (int k = 0; k < 7; ++k) { -- cgit v1.2.3