1 #ifndef VIENNACL_TRAITS_CLEAR_HPP_ 
    2 #define VIENNACL_TRAITS_CLEAR_HPP_ 
   42 template<
typename VectorType>
 
   52 template<
typename ScalarType, 
unsigned int AlignmentV>
 
Generic size and resize functionality for different vector and matrix types. 
void clear(VectorType &vec)
Generic routine for setting all entries of a vector to zero. This is the version for non-ViennaCL obj...
This file provides the forward declarations for the main types used within ViennaCL. 
vcl_size_t size(VectorType const &vec)
Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.) 
void clear()
Resets all entries to zero. Does not change the size of the vector.