CPPLapack
 All Classes Files Functions Variables Friends
Functions
zrovector_small-specialized.hpp File Reference

Go to the source code of this file.

Functions

comple operator/ (const zrovec2 &A, const zrovec2 &B)
zrovec3 operator/ (const zrovec3 &A, const zrovec3 &B)

Function Documentation

comple operator/ ( const zrovec2 &  A,
const zrovec2 &  B 
) [inline]

calculate vector product for 2D vector

Definition at line 3 of file zrovector_small-specialized.hpp.

{VERBOSE_REPORT;
  return A(0)*B(1)-A(1)*B(0);
}
zrovec3 operator/ ( const zrovec3 &  A,
const zrovec3 &  B 
) [inline]

calculate vector product only for 3D vector

Definition at line 14 of file zrovector_small-specialized.hpp.

{VERBOSE_REPORT;
  zrovec3 C;
  C(0) =A(1)*B(2) -A(2)*B(1);
  C(1) =A(2)*B(0) -A(0)*B(2);
  C(2) =A(0)*B(1) -A(1)*B(0);
  return C;
}
 All Classes Files Functions Variables Friends