Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added viennacl::traits::clear for vex::vector

  • Loading branch information...
commit 08c2975ddf86032a289c39e4229388b09136363f 1 parent 90ca1cd
@ddemidov authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 vexcl/external/viennacl.hpp
View
7 vexcl/external/viennacl.hpp
@@ -49,6 +49,13 @@ namespace viennacl {
return A * x;
}
}
+
+ namespace traits {
+ template <class T>
+ void clear(vex::vector<T> &vec) {
+ vec = 0;
+ }
+ }
}
// vim: et
Please sign in to comment.
Something went wrong with that request. Please try again.