GCpp general purpose C++ library  version 1.0
GVectorD.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GVectorD.hh
3  *
4  * Include file for specialisation of vector template class with double.
5  */
6 //======================================================================
7 
8 #ifndef G_VECTOR_D_HH
9 #define G_VECTOR_D_HH
10 
11 #include "GVectorT.hh"
12 
13 
14 /*! Specialisation of the function to initialise the vector content.*/
15 template <> inline void GVectorT<double>::InitData ( )
16  { memset ( element, 0, dimension*sizeof(double) ); }
17 
18 /*! Return the norm 2 (euclidian length).*/
19 template <> inline double GVectorT<double>::Norm2 ( ) const
20  { return (sqrt(Norm2Squared())); }
21 
22 
23 ///! Defines the type for double vectors
25 
26 //======================================================================
27 
28 #endif
GVectorT< double > GVectorD
! Defines the type for double vectors
Definition: GVectorD.hh:24
virtual void InitData()
Definition: GVectorT.icc:79
virtual double Norm2() const
Definition: GVectorT.icc:353
Definition: GMatrixT.hh:16