ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
tql.cpp File Reference
#include <iostream>
#include "viennacl/scalar.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/linalg/tql2.hpp"

Go to the source code of this file.

Macros

#define NDEBUG
 
#define VIENNACL_WITH_UBLAS
 
#define EPS   10.0e-5
 

Typedefs

typedef float ScalarType
 

Functions

template<typename MatrixLayout >
bool test_eigen_val_vec (viennacl::matrix< ScalarType, MatrixLayout > &Q, std::vector< ScalarType > &eigenvalues, std::vector< ScalarType > &d, std::vector< ScalarType > &e)
 
template<typename MatrixLayout >
void test_qr_method_sym ()
 
int main ()
 

Detailed Description

Tests the tql algorithm for eigenvalue computations for symmetric tridiagonal matrices.

Test:
Tests the tql algorithm for eigenvalue computations for symmetric tridiagonal matrices.

Definition in file tql.cpp.

Macro Definition Documentation

#define EPS   10.0e-5

Definition at line 44 of file tql.cpp.

#define NDEBUG

Definition at line 34 of file tql.cpp.

#define VIENNACL_WITH_UBLAS

Definition at line 37 of file tql.cpp.

Typedef Documentation

typedef float ScalarType

Definition at line 49 of file tql.cpp.

Function Documentation

int main ( )

Definition at line 126 of file tql.cpp.

template<typename MatrixLayout >
bool test_eigen_val_vec ( viennacl::matrix< ScalarType, MatrixLayout > &  Q,
std::vector< ScalarType > &  eigenvalues,
std::vector< ScalarType > &  d,
std::vector< ScalarType > &  e 
)

Definition at line 57 of file tql.cpp.

template<typename MatrixLayout >
void test_qr_method_sym ( )

Test the tql2 algorithm for symmetric tridiagonal matrices.

Definition at line 94 of file tql.cpp.