ViennaCL - The Vienna Computing Library
1.5.1
|
Various little tools used here and there in ViennaCL. More...
#include <string>
#include <fstream>
#include <sstream>
#include "viennacl/forwards.h"
#include "viennacl/tools/adapter.hpp"
#include <vector>
#include <map>
Go to the source code of this file.
Data Structures | |
struct | CHECK_SCALAR_TEMPLATE_ARGUMENT< T > |
A guard that checks whether the floating point type of GPU types is either float or double. More... | |
struct | CONST_REMOVER< T > |
Removes the const qualifier from a type. More... | |
struct | CPU_SCALAR_TYPE_DEDUCER< T > |
Obtain the cpu scalar type from a type, including a GPU type like viennacl::scalar<T> More... | |
Namespaces | |
viennacl | |
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them. | |
viennacl::tools | |
Namespace for various tools used within ViennaCL. | |
Functions | |
std::string | readTextFromFile (const std::string &filename) |
Reads a text from a file into a std::string. More... | |
std::string | strReplace (const std::string &text, std::string to_search, std::string to_replace) |
Replaces all occurances of a substring by another stringstream. More... | |
template<class INT_TYPE > | |
INT_TYPE | align_to_multiple (INT_TYPE to_reach, INT_TYPE base) |
Rounds an integer to the next multiple of another integer. More... | |
template<class INT_TYPE > | |
INT_TYPE | roundDownToPreviousMultiple (INT_TYPE to_reach, INT_TYPE base) |
Rounds an integer to the previous multiple of another integer. More... | |
int | find_and_replace (std::string &source, std::string const &find, std::string const &replace) |
Replace in a source string a pattern by another. More... | |
std::string | make_double_kernel (std::string const &source, std::string const &fp_extension) |
Create a double precision kernel out of a single precision kernel. More... | |
template<typename HostScalarType > | |
viennacl::scalar < HostScalarType > const & | promote_if_host_scalar (viennacl::scalar< HostScalarType > const &s) |
template<typename HostScalarType > | |
viennacl::scalar_expression < const viennacl::scalar < HostScalarType >, const viennacl::scalar < HostScalarType > , viennacl::op_flip_sign > const & | promote_if_host_scalar (viennacl::scalar_expression< const viennacl::scalar< HostScalarType >, const viennacl::scalar< HostScalarType >, viennacl::op_flip_sign > const &s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (float s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (double s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (long s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (unsigned long s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (int s) |
template<typename HostScalarType > | |
HostScalarType | promote_if_host_scalar (unsigned int s) |
Various little tools used here and there in ViennaCL.