CMS 3D CMS Logo

SSEVec.cc
Go to the documentation of this file.
1 #if !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) && !defined(__powerpc64__) && \
2  !defined(__PPC64__) && !defined(__powerpc__) && !defined(__riscv)
5 using namespace mathSSE;
6 
7 #include <ostream>
8 std::ostream& operator<<(std::ostream& out, Vec4F const& v) {
9  return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
10 }
11 std::ostream& operator<<(std::ostream& out, Vec4D const& v) {
12  return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
13 }
14 std::ostream& operator<<(std::ostream& out, Vec2F const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
15 std::ostream& operator<<(std::ostream& out, Vec2D const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
16 
17 std::ostream& operator<<(std::ostream& out, As3D<float> const& v) {
18  return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
19 }
20 
21 std::ostream& operator<<(std::ostream& out, As3D<double> const& v) {
22  return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
23 }
24 
25 std::ostream& operator<<(std::ostream& out, Rot3F const& r) {
26  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
27 }
28 
29 std::ostream& operator<<(std::ostream& out, Rot3D const& r) {
30  return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
31 }
32 
33 std::ostream& operator<<(std::ostream& out, Rot2F const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
34 
35 std::ostream& operator<<(std::ostream& out, Rot2D const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
36 
37 #endif /* !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) */
Definition: AVXVec.h:6
As3D< T > as3D(Vec4< T > const &v)
Definition: SSEVec.h:500
Definition: ExtVec.h:192
Definition: ExtVec.h:238
std::ostream & operator<<(std::ostream &out, Vec4F const &v)
Definition: SSEVec.cc:8