36 #ifndef NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
37 #define NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
43 using namespace Nektar;
50 const Array<OneD, const T> &w,
51 const Array<OneD, const T> &x,
52 const Array<OneD, const int> &y)
54 ASSERTL1(n <= w.num_elements()+w.GetOffset(),
"Array out of bounds");
55 ASSERTL1(n <= x.num_elements()+x.GetOffset(),
"Array out of bounds");
56 ASSERTL1(n <= y.num_elements()+y.GetOffset(),
"Array out of bounds");
58 return Ddot2(pComm, n,&w[0],&x[0],&y[0]);
63 const Array<OneD, const T> &w,
const int incw,
64 const Array<OneD, const T> &x,
const int incx,
65 const Array<OneD, const int> &y,
const int incy)
67 ASSERTL1(n*incw <= w.num_elements()+w.GetOffset(),
"Array out of bounds");
68 ASSERTL1(n*incx <= x.num_elements()+x.GetOffset(),
"Array out of bounds");
69 ASSERTL1(n*incy <= y.num_elements()+y.GetOffset(),
"Array out of bounds");
71 return Ddot2(pComm, n,&w[0],incw,&x[0],incx,&y[0],incy);