gVector.cpp   gVector.cpp 
skipping to change at line 30 skipping to change at line 30
* GNU General Public License for more details. * * GNU General Public License for more details. *
* * * *
* You should have received a copy of the GNU General Public License * * You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the * * along with this program; if not, write to the *
* Free Software Foundation, Inc., * * Free Software Foundation, Inc., *
* 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * * 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. *
************************************************************************** */ ************************************************************************** */
#include "gVector.hpp" #include "gVector.hpp"
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
gVector::gVector() gVector::gVector()
: br_stl::gVectorTempl<double>() : br_stl::gVectorTempl<double>()
{ {
} }
gVector::gVector(unsigned int ai_uiElementsNumber) gVector::gVector(unsigned int ai_uiElementsNumber)
: br_stl::gVectorTempl<double>(ai_uiElementsNumber) : br_stl::gVectorTempl<double>(ai_uiElementsNumber)
{ {
skipping to change at line 104 skipping to change at line 104
} }
double gVector::Magnitude() const double gVector::Magnitude() const
{ {
double magnitude=0; double magnitude=0;
for(unsigned int i=0; i<size(); i++) for(unsigned int i=0; i<size(); i++)
magnitude += (operator[](i) * operator[](i)); magnitude += (operator[](i) * operator[](i));
return sqrt(magnitude); return std::sqrt(magnitude);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/