ViennaCL - The Vienna Computing Library
1.5.2
|
Generic clear functionality for different vector and matrix types. More...
#include <string>
#include <fstream>
#include <sstream>
#include "viennacl/forwards.h"
#include "viennacl/traits/size.hpp"
#include <vector>
#include <map>
Go to the source code of this file.
Namespaces | |
viennacl | |
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them. | |
viennacl::traits | |
Namespace providing traits-information as well as generic wrappers to common routines for vectors and matrices such as size() or clear() | |
Functions | |
template<typename VectorType > | |
void | clear (VectorType &vec) |
Generic routine for setting all entries of a vector to zero. This is the version for non-ViennaCL objects. More... | |
template<typename ScalarType , unsigned int ALIGNMENT> | |
void | clear (viennacl::vector< ScalarType, ALIGNMENT > &vec) |
Generic routine for setting all entries of a vector to zero. This is the version for ViennaCL objects. More... | |
Generic clear functionality for different vector and matrix types.