Commit b80ce6cc authored by messner's avatar messner

added a setzero function for double and float


git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@405 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 978fc6ed
......@@ -166,6 +166,12 @@ namespace FBlas {
inline void scal(const unsigned n, const float d, float* const x)
{ sscal_(&n, &d, x, &N_ONE); }
// set zero
inline void setzero(const unsigned n, double* const x)
{ dscal_(&n, &D_ZERO, x, &N_ONE); }
inline void setzero(const unsigned n, float* const x)
{ sscal_(&n, &S_ZERO, x, &N_ONE); }
// // y = d Ax
// inline void gemv(const unsigned m, const unsigned n, double d, double* A, double *x, double *y)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment