packages/Utils/utils/Vector_Functions.hh
//---------------------------------------------------------------------------//
/*!
 * \brief Calculate the dot product of two space-vectors.
 *
 * The dot product is defined as
 * \f[
 *  \mathbf{v} \cdot \mathbf{w} = v_x*w_x + v_y*w_y + v_z*w_z \, .
 * \f]
 *
 * \return dot product
 */
\brief Calculate the dot product of two space-vectors.

\return dot product
\ brief Calculate the dot product of two space - vectors . \ return dot product
inline double dot_product(const def::Space_Vector &v,
                          const def::Space_Vector &w)
{
    return v[def::X]*w[def::X] + v[def::Y]*w[def::Y] + v[def::Z]*w[def::Z];
}
inline double dot_product ( const def :: Space_Vector & v , const def :: Space_Vector & w ) { return v [ def :: X ] * w [ def :: X ] + v [ def :: Y ] * w [ def :: Y ] + v [ def :: Z ] * w [ def :: Z ] ; }
\brief Calculate the dot product of two space-vectors.
\ brief Calculate the dot product of two space - vectors .