Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #if (defined(__GNUC__) || defined(__clang__)) && !defined(__INTEL_COMPILER)
0002 #include "DataFormats/Math/interface/ExtVec.h"
0003 
0004 #include <ostream>
0005 std::ostream& operator<<(std::ostream& out, Vec4F const& v) {
0006   return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
0007 }
0008 std::ostream& operator<<(std::ostream& out, Vec4D const& v) {
0009   return out << '(' << v[0] << ", " << v[1] << ", " << v[2] << ", " << v[3] << ')';
0010 }
0011 std::ostream& operator<<(std::ostream& out, Vec2F const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
0012 std::ostream& operator<<(std::ostream& out, Vec2D const& v) { return out << '(' << v[0] << ", " << v[1] << ')'; }
0013 
0014 std::ostream& operator<<(std::ostream& out, ::As3D<Vec4F> const& v) {
0015   return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
0016 }
0017 
0018 std::ostream& operator<<(std::ostream& out, ::As3D<Vec4D> const& v) {
0019   return out << '(' << v.v[0] << ", " << v.v[1] << ", " << v.v[2] << ')';
0020 }
0021 
0022 std::ostream& operator<<(std::ostream& out, Rot3F const& r) {
0023   return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
0024 }
0025 
0026 std::ostream& operator<<(std::ostream& out, Rot3D const& r) {
0027   return out << as3D(r.axis[0]) << '\n' << as3D(r.axis[1]) << '\n' << as3D(r.axis[2]);
0028 }
0029 
0030 std::ostream& operator<<(std::ostream& out, Rot2F const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
0031 
0032 std::ostream& operator<<(std::ostream& out, Rot2D const& r) { return out << r.axis[0] << '\n' << r.axis[1]; }
0033 #endif