ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
vandermonde_matrix_operations.hpp
Go to the documentation of this file.
1 #ifndef VIENNACL_LINALG_VANDERMONDE_MATRIX_OPERATIONS_HPP_
2 #define VIENNACL_LINALG_VANDERMONDE_MATRIX_OPERATIONS_HPP_
3 
4 /* =========================================================================
5  Copyright (c) 2010-2015, 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 manual)
17 
18  License: MIT (X11), see file LICENSE in the base directory
19 ============================================================================= */
20 
25 #include "viennacl/forwards.h"
26 #include "viennacl/scalar.hpp"
27 #include "viennacl/vector.hpp"
28 #include "viennacl/tools/tools.hpp"
29 #include "viennacl/fft.hpp"
31 
32 namespace viennacl
33 {
34  namespace linalg
35  {
36 
37  // A * x
38 
47  template<class SCALARTYPE, unsigned int ALIGNMENT>
51  {
52  assert(mat.size1() == result.size());
53  assert(mat.size2() == vec.size());
54 
56  {
58  viennacl::linalg::opencl::prod_impl(mat, vec, result);
59  break;
60  default:
61  throw std::runtime_error("not implemented");
62  }
63  }
64 
65  } //namespace linalg
66 
67 
68 } //namespace viennacl
69 
70 
71 #endif
Various little tools used here and there in ViennaCL.
vcl_size_t size2() const
Returns the number of columns of the matrix.
This file provides the forward declarations for the main types used within ViennaCL.
vcl_size_t size1() const
Returns the number of rows of the matrix.
A Vandermonde matrix class.
Definition: forwards.h:418
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
Definition: cpu_ram.hpp:34
Common base class for dense vectors, vector ranges, and vector slices.
Definition: vector_def.hpp:104
The vector type with operator-overloads and proxy classes is defined here. Linear algebra operations ...
size_type size() const
Returns the length of the vector (cf. std::vector)
Definition: vector_def.hpp:118
All routines related to the Fast Fourier Transform. Experimental.
Implementations of operations using vandermonde_matrix.
void prod_impl(const matrix_base< NumericT > &mat, const vector_base< NumericT > &vec, vector_base< NumericT > &result)
Carries out matrix-vector multiplication.
viennacl::backend::mem_handle & handle(T &obj)
Returns the generic memory handle of an object. Non-const version.
Definition: handle.hpp:41
Implementation of the ViennaCL scalar class.
void prod_impl(const matrix_base< NumericT > &A, bool trans_A, const vector_base< NumericT > &vec, vector_base< NumericT > &result)
Carries out matrix-vector multiplication.
memory_types get_active_handle_id() const
Returns an ID for the currently active memory buffer. Other memory buffers might contain old or no da...
Definition: mem_handle.hpp:118