DD-AVX  2.0.0
nrm2.cpp
Go to the documentation of this file.
1 #include<DD-AVX_internal.hpp>
2 using namespace ddavx_core;
3 
4 namespace dd_avx{
5 
6  dd_real nrm2(const dd_real_vector& x){
7  dd_real tmp = dot(x,x);
8  return sqrt(tmp);
9  }
10 
11  dd_real nrm2(const d_real_vector& x){
12  dd_real tmp = dot(x,x);
13  return sqrt(tmp);
14  }
15 }
Double precision vector class, This class is almost same as std::vector<double>
Double-double precision vector class.
dd_real nrm2(const dd_real_vector &x)
nrm2: ans = ||x||
Definition: nrm2.cpp:6
dd_real dot(const dd_real_vector &x, const dd_real_vector &y)
dot: ans = (x,y)
Definition: dot.cpp:6