#ifndef TEST_PACKET_OSTREAM #define TEST_PACKET_OSTREAM #include #include // Include this header to be able to print Packets while debugging. template::vectorizable> > std::ostream& operator<<(std::ostream& os, const Packet& packet) { using Scalar = typename Eigen::internal::unpacket_traits::type; Scalar v[Eigen::internal::unpacket_traits::size]; Eigen::internal::pstoreu(v, packet); os << "{" << v[0]; for (int i=1; i::size; ++i) { os << "," << v[i]; } os << "}"; return os; } #endif // TEST_PACKET_OSTREAM