More tests to validate the const-correctness of the tensor code.

This commit is contained in:
Benoit Steiner
2014-10-02 10:30:44 -07:00
parent 7caaf6453b
commit 5cc23199be
4 changed files with 51 additions and 1 deletions

View File

@@ -95,6 +95,8 @@ template<typename T> struct packet_traits : default_packet_traits
};
};
template<typename T> struct packet_traits<const T> : packet_traits<T> { };
/** \internal \returns a + b (coeff-wise) */
template<typename Packet> EIGEN_DEVICE_FUNC inline Packet
padd(const Packet& a,