ViennaCL - The Vienna Computing Library  1.6.0
Free open-source GPU-accelerated linear algebra and solver library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
utils.hpp
Go to the documentation of this file.
1 #ifndef VIENNACL_RAND_UTILS_HPP_
2 #define VIENNACL_RAND_UTILS_HPP_
3 
4 /* =========================================================================
5  Copyright (c) 2010-2014, Institute for Microelectronics,
6  Institute for Analysis and Scientific Computing,
7  TU Wien.
8  Portions of this software are copyright by UChicago Argonne, LLC.
9 
10  -----------------
11  ViennaCL - The Vienna Computing Library
12  -----------------
13 
14  Project Head: Karl Rupp rupp@iue.tuwien.ac.at
15 
16  (A list of authors and contributors can be found in the PDF manual)
17 
18  License: MIT (X11), see file LICENSE in the base directory
19 ============================================================================= */
25 #ifdef VIENNACL_WITH_OPENCL
26 #include "viennacl/linalg/kernels/rand_kernels.h"
27 
28 namespace viennacl{
29 
30 namespace rand{
31 
32 
33 template<class SCALARTYPE, class DISTRIBUTION>
34 struct random_matrix_t{
35  typedef size_t size_type;
36  random_matrix_t(size_type _size1, unsigned int _size2, DISTRIBUTION const & _distribution) : size1(_size1), size2(_size2), distribution(_distribution){
37  #ifdef VIENNACL_WITH_OPENCL
39  #endif
40  }
41  size_type size1;
42  size_type size2;
43  DISTRIBUTION distribution;
44 };
45 
46 
47 template<class SCALARTYPE, class DISTRIBUTION>
48 struct random_vector_t{
49  typedef size_t size_type;
50  random_vector_t(size_type _size, DISTRIBUTION const & _distribution) : size(_size), distribution(_distribution){
51  #ifdef VIENNACL_WITH_OPENCL
53  #endif
54  }
55  size_type size;
56  DISTRIBUTION distribution;
57 };
58 
59 template<class ScalarType, class Distribution>
60 struct buffer_dumper;
61 
62 
63 }
64 
65 }
66 
67 #endif
68 
71 #endif
vcl_size_t size1(MatrixType const &mat)
Generic routine for obtaining the number of rows of a matrix (ViennaCL, uBLAS, etc.)
Definition: size.hpp:216
result_of::size_type< MatrixType >::type size2(MatrixType const &mat)
Generic routine for obtaining the number of columns of a matrix (ViennaCL, uBLAS, etc...
Definition: size.hpp:245
vcl_size_t size(VectorType const &vec)
Generic routine for obtaining the size of a vector (ViennaCL, uBLAS, etc.)
Definition: size.hpp:144
void init()
Definition: Random.hpp:25