packet_ostream.h File Reference
#include <type_traits>
#include <ostream>

Go to the source code of this file.

Functions

template<typename Packet , typename EnableIf = std::enable_if_t<Eigen::internal::unpacket_traits<Packet>::vectorizable>>
std::ostream & operator<< (std::ostream &os, const Packet &packet)
 

Function Documentation

◆ operator<<()

template<typename Packet , typename EnableIf = std::enable_if_t<Eigen::internal::unpacket_traits<Packet>::vectorizable>>
std::ostream& operator<< ( std::ostream &  os,
const Packet packet 
)
11  {
14  Eigen::internal::pstoreu(v, packet);
15  os << "{" << v[0];
17  os << "," << v[i];
18  }
19  os << "}";
20  return os;
21 }
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
SCALAR Scalar
Definition: bench_gemm.cpp:45
EIGEN_DEVICE_FUNC void pstoreu(Scalar *to, const Packet &from)
Definition: GenericPacketMath.h:911
Definition: GenericPacketMath.h:134
Definition: ZVector/PacketMath.h:50

References i, Eigen::internal::pstoreu(), size, and v.