CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/DataFormats/Math/src/SSEVec.cc

Go to the documentation of this file.
00001 #include "DataFormats/Math/interface/SSEVec.h"
00002 #include "DataFormats/Math/interface/SSERot.h"
00003 #include <ostream>
00004 std::ostream & operator<<(std::ostream & out,  mathSSE::Vec4F const & v) {
00005   return out << '(' << v.arr[0] <<", " << v.arr[1] <<", "<< v.arr[2] <<", "<< v.arr[3] <<')';
00006 }
00007 std::ostream & operator<<(std::ostream & out,  mathSSE::Vec4D const & v) {
00008   return out << '(' << v.arr[0] <<", " << v.arr[1] <<", "<< v.arr[2] <<", "<< v.arr[3] <<')';
00009 }
00010 std::ostream & operator<<(std::ostream & out,  mathSSE::Vec2F const & v) {
00011   return out << '(' << v.arr[0] <<", " << v.arr[1] <<')';
00012 }
00013 std::ostream & operator<<(std::ostream & out,  mathSSE::Vec2D const & v) {
00014   return out << '(' << v.arr[0] <<", " << v.arr[1] <<')';
00015 }
00016 
00017 std::ostream & operator<<(std::ostream & out, mathSSE::As3D<float> const & v) {
00018   return out << '(' << v.v.arr[0] <<", " << v.v.arr[1] <<", "<< v.v.arr[2] <<')';
00019 }
00020 
00021 std::ostream & operator<<(std::ostream & out, mathSSE::As3D<double> const & v) {
00022   return out << '(' << v.v.arr[0] <<", " << v.v.arr[1] <<", "<< v.v.arr[2] <<')';
00023 }
00024 
00025 std::ostream & operator<<(std::ostream & out, mathSSE::Rot3F const & r){
00026   return out << as3D(r.axis[0]) << '\n' <<  as3D(r.axis[1]) << '\n' <<  as3D(r.axis[2]);
00027 }
00028 
00029 std::ostream & operator<<(std::ostream & out, mathSSE::Rot3D const & r){
00030   return out <<  as3D(r.axis[0]) << '\n' <<  as3D(r.axis[1]) << '\n' <<  as3D(r.axis[2]);
00031 }
00032 
00033 std::ostream & operator<<(std::ostream & out, mathSSE::Rot2F const & r){
00034   return out << r.axis[0] << '\n' << r.axis[1];
00035 }
00036 
00037 std::ostream & operator<<(std::ostream & out, mathSSE::Rot2D const & r){
00038   return out << r.axis[0] << '\n' << r.axis[1];
00039 }
00040