ViennaCL - The Vienna Computing Library
1.5.2
|
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 | |
namespace | viennacl |
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them. | |
namespace | 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. | |
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. | |
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 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) |
Generic size and resize functionality for different vector and matrix types.