Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:42

0001 #if !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) && !defined(__powerpc64__) && \
0002     !defined(__PPC64__) && !defined(__powerpc__)
0003 #include "DataFormats/Math/interface/SSEVec.h"
0004 #include "DataFormats/Math/interface/SSERot.h"
0005 using namespace mathSSE;
0006 
0007 #include <ostream>
0008 std::ostream& operator<<(std::ostream& out, Vec4F const& v) {
0009   return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
0010 }
0011 std::ostream& operator<<(std::ostream& out, Vec4D const& v) {
0012   return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
0013 }
0014 std::ostream& operator<<(std::ostream& out, Vec2F const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
0015 std::ostream& operator<<(std::ostream& out, Vec2D const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
0016 
0017 std::ostream& operator<<(std::ostream& out, As3D<float> const& v) {
0018   return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
0019 }
0020 
0021 std::ostream& operator<<(std::ostream& out, As3D<double> const& v) {
0022   return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
0023 }
0024 
0025 std::ostream& operator<<(std::ostream& out, Rot3F const& r) {
0026   return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
0027 }
0028 
0029 std::ostream& operator<<(std::ostream& out, Rot3D const& r) {
0030   return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
0031 }
0032 
0033 std::ostream& operator<<(std::ostream& out, Rot2F const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
0034 
0035 std::ostream& operator<<(std::ostream& out, Rot2D const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
0036 
0037 #endif /* !defined(__arm__) && !defined(__aarch64__) && !defined(__MIC__) */