CPPLapack
 All Classes Files Functions Variables Friends
zcovector_small-specialized.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! calculate vector product only for 2D vector */
00003 inline comple operator/(const zcovec2& A, const zcovec2& B)
00004 {VERBOSE_REPORT;
00005   return A(0)*B(1) -A(1)*B(0);
00006 }
00007 
00008 ///////////////////////////////////////////////////////////////////////////////
00009 ///////////////////////////////////////////////////////////////////////////////
00010 ///////////////////////////////////////////////////////////////////////////////
00011 
00012 //=============================================================================
00013 /*! calculate vector product only for 3D vector */
00014 inline zcovec3 operator/(const zcovec3& A, const zcovec3& B)
00015 {VERBOSE_REPORT;
00016   zcovec3 C;
00017   C(0) =A(1)*B(2) -A(2)*B(1);
00018   C(1) =A(2)*B(0) -A(0)*B(2);
00019   C(2) =A(0)*B(1) -A(1)*B(0);
00020   return C;
00021 }
00022 
00023 //=============================================================================
00024 /*! calculate vector product only for 3D vector */
00025 inline zcovec3 operator/=(zcovec3& A, const zcovec3& B)
00026 {VERBOSE_REPORT;
00027   A =A/B;
00028   return A;
00029 }
 All Classes Files Functions Variables Friends