ViennaCL - The Vienna Computing Library  1.5.1
Namespaces | Functions
size.hpp File Reference

Generic size and resize functionality for different vector and matrix types. More...

#include <string>
#include <fstream>
#include <sstream>
#include "viennacl/forwards.h"
#include "viennacl/meta/result_of.hpp"
#include "viennacl/meta/predicate.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 MatrixType >
void resize (MatrixType &matrix, vcl_size_t rows, vcl_size_t cols)
 Generic resize routine for resizing a matrix (ViennaCL, uBLAS, etc.) to a new size/dimension. More...
 
template<typename VectorType >
void resize (VectorType &vec, vcl_size_t new_size)
 Generic resize routine for resizing a vector (ViennaCL, uBLAS, etc.) to a new size. More...
 
template<typename VectorType >
vcl_size_t size (VectorType const &vec)
 Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.) More...
 
template<typename MatrixType >
vcl_size_t size1 (MatrixType const &mat)
 Generic routine for obtaining the number of rows of a matrix (ViennaCL, uBLAS, etc.) More...
 
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.) More...
 
template<typename NumericT >
vcl_size_t internal_size (vector_base< NumericT > const &vec)
 Helper routine for obtaining the buffer length of a ViennaCL vector. More...
 
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. More...
 
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. More...
 
template<typename LHS >
vcl_size_t size (vector_expression< LHS, const int, op_matrix_diag > const &proxy)
 
template<typename LHS >
vcl_size_t size (vector_expression< LHS, const unsigned int, op_row > const &proxy)
 
template<typename LHS >
vcl_size_t size (vector_expression< LHS, const unsigned int, op_column > const &proxy)
 

Detailed Description

Generic size and resize functionality for different vector and matrix types.