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
bisect.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "viennacl/scalar.hpp"
#include "viennacl/vector.hpp"
#include "viennacl/matrix.hpp"
#include "viennacl/linalg/bisect_gpu.hpp"
#include "viennacl/linalg/tql2.hpp"

Go to the source code of this file.

Macros

#define NDEBUG
 
#define EPS   10.0e-4
 

Functions

template<typename NumericT >
void initInputData (std::vector< NumericT > &diagonal, std::vector< NumericT > &superdiagonal, std::size_t mat_size)
 initInputData Initialize the diagonal and superdiagonal elements of the matrix More...
 
template<typename NumericT >
bool runTest (std::size_t mat_size)
 Run a simple test. More...
 
int main ()
 

Detailed Description

Computation of eigenvalues of a symmetric, tridiagonal matrix using bisection.

Test:
Tests the bisection implementation for symmetric tridiagonal matrices.

Definition in file bisect.cpp.

Macro Definition Documentation

#define EPS   10.0e-4

Definition at line 41 of file bisect.cpp.

#define NDEBUG

Definition at line 23 of file bisect.cpp.

Function Documentation

template<typename NumericT >
void initInputData ( std::vector< NumericT > &  diagonal,
std::vector< NumericT > &  superdiagonal,
std::size_t  mat_size 
)

initInputData Initialize the diagonal and superdiagonal elements of the matrix

Parameters
diagonaldiagonal elements of the matrix
superdiagonalsuperdiagonal elements of the matrix
mat_sizeDimension of the matrix
Examples:
bisect.cpp.

Definition at line 52 of file bisect.cpp.

template<typename NumericT >
bool runTest ( std::size_t  mat_size)

Run a simple test.

Definition at line 91 of file bisect.cpp.