1 #ifndef VIENNACL_TRAITS_CLEAR_HPP_
2 #define VIENNACL_TRAITS_CLEAR_HPP_
30 #ifdef VIENNACL_WITH_UBLAS
31 #include <boost/numeric/ublas/matrix_sparse.hpp>
32 #include <boost/numeric/ublas/matrix.hpp>
35 #ifdef VIENNACL_WITH_EIGEN
37 #include <Eigen/Sparse>
40 #ifdef VIENNACL_WITH_MTL4
41 #include <boost/numeric/mtl/mtl.hpp>
56 template<
typename VectorType>
66 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.