ViennaCL - The Vienna Computing Library  1.4.2
Data Structures | Functions
viennacl::traits Namespace Reference

Namespace providing traits-information as well as generic wrappers to common routines for vectors and matrices such as size() or clear() More...

Data Structures

struct  tag_of
struct  tag_of< std::vector< T, A > >
struct  tag_of< std::vector< std::vector< T, A >, A > >
struct  tag_of< std::vector< std::map< KEY, DATA, COMPARE, AMAP >, AVEC > >
struct  tag_of< viennacl::vector< T, alignment > >
struct  tag_of< viennacl::matrix< T, F, alignment > >
struct  tag_of< viennacl::matrix_expression< T1, T2, OP > >
struct  tag_of< viennacl::matrix_range< T > >
struct  tag_of< viennacl::compressed_matrix< T, I > >
struct  tag_of< viennacl::coordinate_matrix< T, I > >
struct  tag_of< viennacl::ell_matrix< T, I > >
struct  tag_of< viennacl::hyb_matrix< T, I > >
struct  tag_of< viennacl::circulant_matrix< T, I > >
struct  tag_of< viennacl::hankel_matrix< T, I > >
struct  tag_of< viennacl::toeplitz_matrix< T, I > >
struct  tag_of< viennacl::vandermonde_matrix< T, I > >

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.
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.
template<typename MatrixType , typename SCALARTYPE >
void fill (MatrixType &matrix, std::size_t row_index, std::size_t col_index, SCALARTYPE value)
 Generic filler routine for setting an entry of a matrix to a particular value.
template<typename T >
viennacl::backend::mem_handlehandle (T &obj)
 Returns the generic memory handle of an object. Non-const version.
template<typename T >
viennacl::backend::mem_handle
const & 
handle (T const &obj)
 Returns the generic memory handle of an object. Const-version.
template<typename T >
viennacl::backend::mem_handle::ram_handle_typeram_handle (T &obj)
 Generic helper routine for extracting the RAM handle of a ViennaCL object. Non-const version.
template<typename T >
viennacl::backend::mem_handle::ram_handle_type
const & 
ram_handle (T const &obj)
 Generic helper routine for extracting the RAM handle of a ViennaCL object. Const version.
template<typename T >
viennacl::memory_types active_handle_id (T const &obj)
 Returns an ID for the currently active memory domain of an object.
template<typename MatrixType >
void resize (MatrixType &matrix, std::size_t rows, std::size_t cols)
 Generic resize routine for resizing a matrix (ViennaCL, uBLAS, etc.) to a new size/dimension.
template<typename VectorType >
void resize (VectorType &vec, std::size_t new_size)
 Generic resize routine for resizing a vector (ViennaCL, uBLAS, etc.) to a new size.
template<typename VectorType >
vcl_size_t size (VectorType const &vec)
 Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.)
template<typename MatrixType >
vcl_size_t size1 (MatrixType const &mat)
 Generic routine for obtaining the number of rows of a matrix (ViennaCL, uBLAS, etc.)
template<typename MatrixType >
result_of::size_type
< MatrixType >::type 
size2 (MatrixType const &mat)
 Generic routine for obtaining the number of columns of a matrix (ViennaCL, uBLAS, etc.)
template<typename NumericT >
vcl_size_t internal_size (vector_base< NumericT > const &vec)
 Helper routine for obtaining the buffer length of a ViennaCL vector.
template<typename NumericT , typename F >
vcl_size_t internal_size1 (matrix_base< NumericT, F > const &mat)
 Helper routine for obtaining the internal number of entries per row of a ViennaCL matrix.
template<typename NumericT , typename F >
vcl_size_t internal_size2 (matrix_base< NumericT, F > const &mat)
 Helper routine for obtaining the internal number of entries per column of a ViennaCL matrix.
template<typename T >
result_of::size_type< T >::type start (T const &obj)
template<typename ScalarType , unsigned int ALIGNMENT>
result_of::size_type
< viennacl::vector< ScalarType,
ALIGNMENT > >::type 
start (viennacl::vector< ScalarType, ALIGNMENT > const &)
template<typename T >
result_of::size_type< T >::type start1 (T const &obj)
template<typename ScalarType , typename F , unsigned int ALIGNMENT>
result_of::size_type
< viennacl::matrix< ScalarType,
F, ALIGNMENT > >::type 
start1 (viennacl::matrix< ScalarType, F, ALIGNMENT > const &)
template<typename T >
result_of::size_type< T >::type start2 (T const &obj)
template<typename ScalarType , typename F , unsigned int ALIGNMENT>
result_of::size_type
< viennacl::matrix< ScalarType,
F, ALIGNMENT > >::type 
start2 (viennacl::matrix< ScalarType, F, ALIGNMENT > const &)
template<typename T >
result_of::size_type
< viennacl::vector_base< T >
>::type 
stride (viennacl::vector_base< T > const &s)
template<typename NumericT , typename F >
result_of::size_type
< matrix_base< NumericT, F >
>::type 
stride1 (matrix_base< NumericT, F > const &s)
template<typename NumericT , typename F >
result_of::size_type
< matrix_base< NumericT, F >
>::type 
stride2 (matrix_base< NumericT, F > const &s)

Detailed Description

Namespace providing traits-information as well as generic wrappers to common routines for vectors and matrices such as size() or clear()


Function Documentation

Returns an ID for the currently active memory domain of an object.

void viennacl::traits::clear ( VectorType &  vec)

Generic routine for setting all entries of a vector to zero. This is the version for non-ViennaCL objects.

void viennacl::traits::clear ( viennacl::vector< ScalarType, ALIGNMENT > &  vec)

Generic routine for setting all entries of a vector to zero. This is the version for ViennaCL objects.

void viennacl::traits::fill ( MatrixType &  matrix,
std::size_t  row_index,
std::size_t  col_index,
SCALARTYPE  value 
)

Generic filler routine for setting an entry of a matrix to a particular value.

Returns the generic memory handle of an object. Non-const version.

Returns the generic memory handle of an object. Const-version.

vcl_size_t viennacl::traits::internal_size ( vector_base< NumericT > const &  vec)

Helper routine for obtaining the buffer length of a ViennaCL vector.

vcl_size_t viennacl::traits::internal_size1 ( matrix_base< NumericT, F > const &  mat)

Helper routine for obtaining the internal number of entries per row of a ViennaCL matrix.

vcl_size_t viennacl::traits::internal_size2 ( matrix_base< NumericT, F > const &  mat)

Helper routine for obtaining the internal number of entries per column of a ViennaCL matrix.

Generic helper routine for extracting the RAM handle of a ViennaCL object. Non-const version.

Generic helper routine for extracting the RAM handle of a ViennaCL object. Const version.

void viennacl::traits::resize ( MatrixType &  matrix,
std::size_t  rows,
std::size_t  cols 
)

Generic resize routine for resizing a matrix (ViennaCL, uBLAS, etc.) to a new size/dimension.

void viennacl::traits::resize ( VectorType &  vec,
std::size_t  new_size 
)

Generic resize routine for resizing a vector (ViennaCL, uBLAS, etc.) to a new size.

vcl_size_t viennacl::traits::size ( VectorType const &  vec)

Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.)

vcl_size_t viennacl::traits::size1 ( MatrixType const &  mat)

Generic routine for obtaining the number of rows of a matrix (ViennaCL, uBLAS, etc.)

result_of::size_type<MatrixType>::type viennacl::traits::size2 ( MatrixType const &  mat)

Generic routine for obtaining the number of columns of a matrix (ViennaCL, uBLAS, etc.)

result_of::size_type<T>::type viennacl::traits::start ( T const &  obj)
result_of::size_type<viennacl::vector<ScalarType, ALIGNMENT> >::type viennacl::traits::start ( viennacl::vector< ScalarType, ALIGNMENT > const &  )
result_of::size_type<T>::type viennacl::traits::start1 ( T const &  obj)
result_of::size_type<viennacl::matrix<ScalarType, F, ALIGNMENT> >::type viennacl::traits::start1 ( viennacl::matrix< ScalarType, F, ALIGNMENT > const &  )
result_of::size_type<T>::type viennacl::traits::start2 ( T const &  obj)
result_of::size_type<viennacl::matrix<ScalarType, F, ALIGNMENT> >::type viennacl::traits::start2 ( viennacl::matrix< ScalarType, F, ALIGNMENT > const &  )
result_of::size_type< matrix_base<NumericT, F> >::type viennacl::traits::stride1 ( matrix_base< NumericT, F > const &  s)
result_of::size_type< matrix_base<NumericT, F> >::type viennacl::traits::stride2 ( matrix_base< NumericT, F > const &  s)