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
qr_method.cpp File Reference
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <vector>
#include "viennacl/linalg/prod.hpp"
#include "viennacl/linalg/qr-method.hpp"
#include <examples/benchmarks/benchmark-utils.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>

Go to the source code of this file.

Macros

#define NDEBUG
 

Typedefs

typedef float ScalarType
 

Functions

void read_matrix_size (std::fstream &f, std::size_t &sz)
 
template<typename MatrixLayout >
void read_matrix_body (std::fstream &f, viennacl::matrix< ScalarType, MatrixLayout > &A)
 
void read_vector_body (std::fstream &f, std::vector< ScalarType > &v)
 
template<typename MatrixLayout >
bool check_tridiag (viennacl::matrix< ScalarType, MatrixLayout > &A_orig)
 
template<typename MatrixLayout >
bool check_hessenberg (viennacl::matrix< ScalarType, MatrixLayout > &A_orig)
 
ScalarType matrix_compare (ublas::matrix< ScalarType > &res, ublas::matrix< ScalarType > &ref)
 
ScalarType vector_compare (std::vector< ScalarType > &res, std::vector< ScalarType > &ref)
 
template<typename MatrixLayout >
void matrix_print (viennacl::matrix< ScalarType, MatrixLayout > &A)
 
template<typename MatrixLayout >
void test_eigen (const std::string &fn, bool is_symm)
 
int main ()
 

Variables

const ScalarType EPS = 0.0001f
 

Detailed Description

Tests the eigenvalue routines based on the QR method.

Test:
Tests the eigenvalue routines based on the QR method.

Definition in file qr_method.cpp.

Macro Definition Documentation

#define NDEBUG

Definition at line 30 of file qr_method.cpp.

Typedef Documentation

typedef float ScalarType
Examples:
qr_method.cpp.

Definition at line 49 of file qr_method.cpp.

Function Documentation

template<typename MatrixLayout >
bool check_hessenberg ( viennacl::matrix< ScalarType, MatrixLayout > &  A_orig)

Definition at line 119 of file qr_method.cpp.

template<typename MatrixLayout >
bool check_tridiag ( viennacl::matrix< ScalarType, MatrixLayout > &  A_orig)

Definition at line 101 of file qr_method.cpp.

int main ( )
Examples:
qr_method.cpp.

Definition at line 307 of file qr_method.cpp.

ScalarType matrix_compare ( ublas::matrix< ScalarType > &  res,
ublas::matrix< ScalarType > &  ref 
)

Definition at line 139 of file qr_method.cpp.

template<typename MatrixLayout >
void matrix_print ( viennacl::matrix< ScalarType, MatrixLayout > &  A)

Definition at line 178 of file qr_method.cpp.

template<typename MatrixLayout >
void read_matrix_body ( std::fstream &  f,
viennacl::matrix< ScalarType, MatrixLayout > &  A 
)

Definition at line 66 of file qr_method.cpp.

void read_matrix_size ( std::fstream &  f,
std::size_t &  sz 
)

Definition at line 55 of file qr_method.cpp.

void read_vector_body ( std::fstream &  f,
std::vector< ScalarType > &  v 
)

Definition at line 88 of file qr_method.cpp.

template<typename MatrixLayout >
void test_eigen ( const std::string &  fn,
bool  is_symm 
)

Definition at line 188 of file qr_method.cpp.

ScalarType vector_compare ( std::vector< ScalarType > &  res,
std::vector< ScalarType > &  ref 
)

Definition at line 160 of file qr_method.cpp.

Variable Documentation

const ScalarType EPS = 0.0001f

Definition at line 51 of file qr_method.cpp.