EVSL
1.1.0
EigenValues Slicing Library
|
Set EVSL solver options and data. More...
Go to the source code of this file.
Functions | |
int | EVSLStart () |
Initialize evslData. More... | |
int | EVSLFinish () |
Finish EVSL. More... | |
int | SetAMatrix (csrMat *A) |
Set the matrix A. More... | |
int | SetBMatrix (csrMat *B) |
Set the B matrix. More... | |
int | SetAMatvec (int n, MVFunc func, void *data) |
Set the user-input matvec routine and the associated data for A. Save them in evsldata. More... | |
int | SetBMatvec (int n, MVFunc func, void *data) |
Set the user-input matvec routine and the associated data for B. Save them in evsldata. More... | |
int | SetBSol (SolFuncR func, void *data) |
Set the solve routine and the associated data for B. More... | |
int | SetStdEig () |
Set the problem to standard eigenvalue problem. More... | |
int | SetGenEig () |
Set the problem to generalized eigenvalue problem. More... | |
int | SetASigmaBSol (ratparams *rat, SolFuncC *func, SolFuncC allf, void **data) |
Set the solve routine and the associated data for A-SIGMA*B if func == NULL, set all functions to be allf. More... | |
int | SetLTSol (SolFuncR func, void *data) |
Set the solve routine for LT. More... | |
void | SetDiagScal (double *ds) |
Set diagonal scaling matrix D. More... | |
Variables | |
evslData | evsldata |
global variable of EVSL More... | |
evslStat | evslstat |
global statistics of EVSL More... | |
Set EVSL solver options and data.
Used to track various statistics (time taken by various operations).
Definition in file evsl.c.
int EVSLFinish | ( | ) |
Finish EVSL.
Definition at line 48 of file evsl.c.
References _evsldata::Amv, _evsldata::Bmv, _evsldata::Bsol, and _evsldata::LTsol.
Referenced by evsl_finish(), and main().
int EVSLStart | ( | ) |
Initialize evslData.
Definition at line 27 of file evsl.c.
References _evsldata::Amv, _evsldata::Bmv, _evsldata::Bsol, _evsldata::ds, evsl_timer(), _evsldata::ifGenEv, _evsldata::LTsol, _evsldata::n, and StatsReset().
Referenced by evsl_start(), and main().
int SetAMatrix | ( | csrMat * | A | ) |
Set the matrix A.
Definition at line 68 of file evsl.c.
References _evsldata::Amv, Calloc, _EVSLMatvec::data, _EVSLMatvec::func, matvec_csr(), _evsldata::n, and _csrMat::ncols.
Referenced by evsl_seta_csr(), and main().
int SetAMatvec | ( | int | n, |
MVFunc | func, | ||
void * | data | ||
) |
Set the user-input matvec routine and the associated data for A. Save them in evsldata.
Definition at line 100 of file evsl.c.
References _evsldata::Amv, Calloc, _EVSLMatvec::data, _EVSLMatvec::func, and _evsldata::n.
Referenced by evsl_setamv(), and main().
Set the solve routine and the associated data for A-SIGMA*B if func == NULL, set all functions to be allf.
Definition at line 168 of file evsl.c.
References _ratparams::ASIGBsol, Calloc, _EVSLASIGMABSol::data, _EVSLASIGMABSol::func, and _ratparams::num.
Referenced by main(), and set_asigmabsol_direct().
int SetBMatrix | ( | csrMat * | B | ) |
Set the B matrix.
Definition at line 83 of file evsl.c.
References _evsldata::Bmv, Calloc, _EVSLMatvec::data, _EVSLMatvec::func, matvec_csr(), _evsldata::n, and _csrMat::ncols.
Referenced by evsl_setb_csr(), and main().
int SetBMatvec | ( | int | n, |
MVFunc | func, | ||
void * | data | ||
) |
Set the user-input matvec routine and the associated data for B. Save them in evsldata.
Definition at line 117 of file evsl.c.
References _evsldata::Bmv, Calloc, _EVSLMatvec::data, _EVSLMatvec::func, and _evsldata::n.
Referenced by evsl_setbmv().
int SetBSol | ( | SolFuncR | func, |
void * | data | ||
) |
Set the solve routine and the associated data for B.
Definition at line 132 of file evsl.c.
References _evsldata::Bsol, Calloc, _EVSLBSol::data, and _EVSLBSol::func.
Referenced by evsl_setbsol(), main(), and setup_bsol_direct().
void SetDiagScal | ( | double * | ds | ) |
int SetGenEig | ( | ) |
Set the problem to generalized eigenvalue problem.
Definition at line 158 of file evsl.c.
References _evsldata::ifGenEv.
Referenced by evsl_set_geneig(), and main().
int SetLTSol | ( | SolFuncR | func, |
void * | data | ||
) |
Set the solve routine for LT.
Definition at line 185 of file evsl.c.
References Calloc, _EVSLLTSol::data, _EVSLLTSol::func, and _evsldata::LTsol.
Referenced by evsl_setltsol(), main(), and setup_bsol_direct().
int SetStdEig | ( | ) |
Set the problem to standard eigenvalue problem.
Definition at line 148 of file evsl.c.
References _evsldata::ifGenEv.
Referenced by main().
evslData evsldata |
global variable of EVSL
global variable is guaranteed to be initialized
Definition at line 15 of file evsl.c.
Referenced by ChebAv(), ChebLanNr(), ChebLanTr(), ChebSI(), evsl_cheblannr(), evsl_cheblantr(), evsl_lanbounds(), evsl_ratlannr(), evsl_ratlantr(), kpmdos(), LanBounds(), LanDos(), LanDosG(), LanTrbounds(), pnav(), RatFiltApply(), RatLanNr(), and RatLanTr().
evslStat evslstat |
global statistics of EVSL
global variable is guaranteed to be initialized
Definition at line 21 of file evsl.c.
Referenced by CGS_DGKS(), CGS_DGKS2(), ChebAv(), ChebLanNr(), ChebLanTr(), RatFiltApply(), RatLanNr(), RatLanTr(), SetupASIGMABSolDirect(), SetupBSolDirect(), StatsPrint(), StatsReset(), SymEigenSolver(), SymmTridEig(), and SymmTridEigS().