All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hankel_matrix_operations.hpp
Go to the documentation of this file.
#ifndef VIENNACL_LINALG_HANKEL_MATRIX_OPERATIONS_HPP_
#define VIENNACL_LINALG_HANKEL_MATRIX_OPERATIONS_HPP_
/* =========================================================================
Copyright (c) 2010-2016, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
Portions of this software are copyright by UChicago Argonne, LLC.
-----------------
ViennaCL - The Vienna Computing Library
-----------------
Project Head: Karl Rupp rupp@iue.tuwien.ac.at
(A list of authors and contributors can be found in the manual)
License: MIT (X11), see file LICENSE in the base directory
============================================================================= */
#include "viennacl/forwards.h"
#include "viennacl/ocl/backend.hpp"
#include "viennacl/scalar.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/tools/tools.hpp"
#include "viennacl/fft.hpp"
#include "viennacl/linalg/toeplitz_matrix_operations.hpp"
namespace viennacl
{
namespace linalg
{
// A * x
template<typename NumericT, unsigned int AlignmentV>
void prod_impl(viennacl::hankel_matrix<NumericT, AlignmentV> const & A,
viennacl::vector_base<NumericT> const & vec,
viennacl::vector_base<NumericT> & result)
{
assert(A.size1() == result.size() && bool("Dimension mismatch"));
assert(A.size2() == vec.size() && bool("Dimension mismatch"));
prod_impl(A.elements(), vec, result);
viennacl::linalg::reverse(result);
}
} //namespace linalg
} //namespace viennacl
#endif
toeplitz_matrix_operations.hpp
Implementations of operations using toeplitz_matrix. Experimental.
tools.hpp
Various little tools used here and there in ViennaCL.
viennacl::linalg::reverse
void reverse(viennacl::vector_base< NumericT > &in)
Reverse vector to oposite order and save it in input vector.
Definition: fft_operations.hpp:452
forwards.h
This file provides the forward declarations for the main types used within ViennaCL.
viennacl::hankel_matrix
A Hankel matrix class.
Definition: forwards.h:412
viennacl::hankel_matrix::size2
vcl_size_t size2() const
Returns the number of columns of the matrix.
Definition: hankel_matrix.hpp:99
viennacl::vector_base< NumericT >
backend.hpp
Implementations of the OpenCL backend, where all contexts are stored in.
viennacl::hankel_matrix::size1
vcl_size_t size1() const
Returns the number of rows of the matrix.
Definition: hankel_matrix.hpp:94
vector.hpp
The vector type with operator-overloads and proxy classes is defined here. Linear algebra operations ...
viennacl::hankel_matrix::elements
toeplitz_matrix< NumericT, AlignmentV > & elements()
Returns an internal viennacl::toeplitz_matrix, which represents a Hankel matrix elements.
Definition: hankel_matrix.hpp:88
viennacl::vector_base::size
size_type size() const
Returns the length of the vector (cf. std::vector)
Definition: vector_def.hpp:118
fft.hpp
All routines related to the Fast Fourier Transform. Experimental.
viennacl::linalg::prod_impl
void prod_impl(const matrix_base< NumericT > &mat, const vector_base< NumericT > &vec, vector_base< NumericT > &result)
Carries out matrix-vector multiplication.
Definition: matrix_operations.hpp:438
scalar.hpp
Implementation of the ViennaCL scalar class.