ViennaCL - The Vienna Computing Library  1.7.1
Free open-source GPU-accelerated linear algebra and solver library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 viennacl::traits::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 viennacl::traits::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 MatrixType >
vcl_size_t viennacl::traits::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 
viennacl::traits::size2 (MatrixType const &mat)
 Generic routine for obtaining the number of columns of a matrix (ViennaCL, uBLAS, etc.) More...
 
template<typename VectorType >
vcl_size_t viennacl::traits::size (VectorType const &vec)
 Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.) More...
 
template<typename NumericT >
vcl_size_t viennacl::traits::internal_size (vector_base< NumericT > const &vec)
 Helper routine for obtaining the buffer length of a ViennaCL vector. More...
 
template<typename NumericT >
vcl_size_t viennacl::traits::internal_size1 (matrix_base< NumericT > const &mat)
 Helper routine for obtaining the internal number of entries per row of a ViennaCL matrix. More...
 
template<typename NumericT >
vcl_size_t viennacl::traits::internal_size2 (matrix_base< NumericT > const &mat)
 Helper routine for obtaining the internal number of entries per column of a ViennaCL matrix. More...
 
template<typename NumericT >
vcl_size_t viennacl::traits::ld (matrix_base< NumericT > const &mat)
 Helper routine for obtaining the internal number of entries per row of a ViennaCL matrix. More...
 
template<typename NumericT >
vcl_size_t viennacl::traits::nld (matrix_base< NumericT > const &mat)
 
template<typename LHS >
vcl_size_t viennacl::traits::size (vector_expression< LHS, const int, op_matrix_diag > const &proxy)
 
template<typename LHS >
vcl_size_t viennacl::traits::size (vector_expression< LHS, const unsigned int, op_row > const &proxy)
 
template<typename LHS >
vcl_size_t viennacl::traits::size (vector_expression< LHS, const unsigned int, op_column > const &proxy)
 

Detailed Description

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

Definition in file size.hpp.