naginterfaces.library.sparseig.complex_band_init¶
- naginterfaces.library.sparseig.complex_band_init(n, nev, ncv)[source]¶
complex_band_init
is a setup function forcomplex_band_solve()
which may be used for finding some eigenvalues (and optionally the corresponding eigenvectors) of a standard or generalized eigenvalue problem defined by complex, banded, non-Hermitian matrices. The banded matrix must be stored using the LAPACK column ordered storage format for complex banded non-Hermitian matrices (see the F07 Introduction).For full information please refer to the NAG Library document for f12at
https://support.nag.com/numeric/nl/nagdoc_30.2/flhtml/f12/f12atf.html
- Parameters
- nint
The order of the matrix (and the order of the matrix for the generalized problem) that defines the eigenvalue problem.
- nevint
The number of eigenvalues to be computed.
- ncvint
The number of Lanczos basis vectors to use during the computation.
At present there is no a priori analysis to guide the selection of relative to .
However, it is recommended that .
If many problems of the same type are to be solved, you should experiment with increasing while keeping fixed for a given test problem.
This will usually decrease the required number of matrix-vector operations but it also increases the work and storage required to maintain the orthogonal basis vectors.
The optimal ‘cross-over’ with respect to CPU time is problem dependent and must be determined empirically.
- Returns
- commdict, communication object
Communication structure.
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, , and .
Constraint: and .
- Notes
The pair of functions
complex_band_init
andcomplex_band_solve()
together with the option setting functioncomplex_option()
are designed to calculate some of the eigenvalues, , (and optionally the corresponding eigenvectors, ) of a standard eigenvalue problem , or of a generalized eigenvalue problem of order , where is large and the coefficient matrices and are banded complex and non-Hermitian.complex_band_init
is a setup function which must be called before the option setting functioncomplex_option()
and the solver functioncomplex_band_solve()
. Internally,complex_band_solve()
makes calls tocomplex_iter()
andcomplex_proc()
; the function documents forcomplex_iter()
andcomplex_proc()
should be consulted for details of the algorithm used.This setup function initializes the communication arrays, sets (to their default values) all options that can be set by you via the option setting function
complex_option()
, and checks that the lengths of the communication arrays as passed by you are of sufficient length. For details of the options available and how to set them, see Other Parameters for complex_option.
- References
Lehoucq, R B, 2001, Implicitly restarted Arnoldi methods and subspace iteration, SIAM Journal on Matrix Analysis and Applications (23), 551–562
Lehoucq, R B and Scott, J A, 1996, An evaluation of software for computing eigenvalues of sparse nonsymmetric matrices, Preprint MCS-P547-1195, Argonne National Laboratory
Lehoucq, R B and Sorensen, D C, 1996, Deflation techniques for an implicitly restarted Arnoldi iteration, SIAM Journal on Matrix Analysis and Applications (17), 789–821
Lehoucq, R B, Sorensen, D C and Yang, C, 1998, ARPACK Users’ Guide: Solution of Large-scale Eigenvalue Problems with Implicitly Restarted Arnoldi Methods, SIAM, Philadelphia