35 #ifndef NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
36 #define NEKTAR_LIB_LIBUTILITIES_BASSICUTILS_VECTORDISTMATHARRAY_HPP
53 ASSERTL1(n <= w.size()+w.GetOffset(),
"Array out of bounds");
54 ASSERTL1(n <= x.size()+x.GetOffset(),
"Array out of bounds");
55 ASSERTL1(n <= y.size()+y.GetOffset(),
"Array out of bounds");
57 return Ddot2(pComm, n,&w[0],&x[0],&y[0]);
66 ASSERTL1(n*incw <= w.size()+w.GetOffset(),
"Array out of bounds");
67 ASSERTL1(n*incx <= x.size()+x.GetOffset(),
"Array out of bounds");
68 ASSERTL1(n*incy <= y.size()+y.GetOffset(),
"Array out of bounds");
70 return Ddot2(pComm, n,&w[0],incw,&x[0],incx,&y[0],incy);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
The above copyright notice and this permission notice shall be included.
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