36 #ifndef NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
37 #define NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
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]);
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);
boost::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
T Ddot2(Nektar::LibUtilities::CommSharedPtr &pComm, int n, const T *w, const T *x, const int *y)
vvtvp (vector times vector times vector): z = w*x*y
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...