cpu_eigen.c File Reference

Symmetric Toeplitz matrix eigenvalue extractor (sequential CPU version). More...

#include <math.h>
#include <time.h>
#include <stdio.h>
#include "toeplitz.h"
#include "cmdline_cpu.h"

Go to the source code of this file.

Functions

void parse_cmdline (int argc, char *argv[], struct gengetopt_args_info_cpu *args_info)
int si2w_cpu (unsigned int n, const T *t, T ia, T ib, T sigma, unsigned int nEig, unsigned int max_k, T tolerance, T *l_out, T *v_out)
int main (int argc, char *argv[])

Variables

static struct
gengetopt_args_info_cpu 
args_info


Detailed Description

Symmetric Toeplitz matrix eigenvalue extractor (sequential CPU version).

Author:
Leandro GraciĆ” Gil, leagragi@inf.upv.es
Date:
18/11/08

Definition in file cpu_eigen.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 214 of file cpu_eigen.c.

void parse_cmdline ( int  argc,
char *  argv[],
struct gengetopt_args_info_cpu *  args_info 
)

Parse command line commands into args_info structure (uses gengetopt).

Parameters:
argc Number of params in command line.
argv Params of command line.
args_info Structure to be filled with parsed input params.

Definition at line 49 of file cpu_eigen.c.

int si2w_cpu ( unsigned int  n,
const T *  t,
ia,
ib,
sigma,
unsigned int  nEig,
unsigned int  max_k,
tolerance,
T *  l_out,
T *  v_out 
)

CPU version of the Shift-and-invert 2-way Lanczos algorithm.

Note:
Extracted eigenvalues are not sorted.
Parameters:
n Size of t vector.
t Symmetric Toeplitz matrix data in vector form.
ia Start of the eigenvalue extraction interval.
ib End of the eigenvalue extraction interval.
sigma Shift value used for eigenvalue extraction.
nEig Number of required eigenvalues in the interval.
max_k Maximum size of Krylov subspace.
tolerance Tolerance threshold used to check eigenvalue convergence.
l_out Vector of size nEig containing extracted eigenvalues.
v_out Matrix of size n nEig (column order)containing extracted eigenvectors.
Returns:
Number of eigenvalues extracted.

Definition at line 84 of file cpu_eigen.c.


Variable Documentation

struct gengetopt_args_info_cpu args_info [static]

Definition at line 40 of file cpu_eigen.c.


Generated on Sun Dec 14 14:21:11 2008 for Multi-GPU symmetric Toeplitz Eigenvalue Extractor by  doxygen 1.5.6