<T>LAPACK 0.1.1
C++ Template Linear Algebra PACKage
Loading...
Searching...
No Matches
lahqz_eig22.hpp File Reference
Include dependency graph for lahqz_eig22.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<TLAPACK_MATRIX A_t, TLAPACK_MATRIX B_t, TLAPACK_SCALAR T>
void tlapack::lahqz_eig22 (const A_t &A, const B_t &B, complex_type< T > &alpha1, complex_type< T > &alpha2, T &beta1, T &beta2)
 Computes the generalized eigenvalues of a 2x2 pencil (A,B) with B upper triangular.
 

Detailed Description

Author
Thijs Steel, KU Leuven, Belgium

Function Documentation

◆ lahqz_eig22()

void tlapack::lahqz_eig22 ( const A_t A,
const B_t B,
complex_type< T > &  alpha1,
complex_type< T > &  alpha2,
T &  beta1,
T &  beta2 
)

Computes the generalized eigenvalues of a 2x2 pencil (A,B) with B upper triangular.

Note: in LAPACK, this function is quite complicated, taking a lot of overflow conditions into account. I still need to translate that functionality.

Parameters
[in]A2x2 matrix
[in]B2x2 upper triangular matrix
[out]alpha1complex number
[out]alpha2complex number
[out]beta1number
[out]beta2number On exit, (alpha1, beta1), (alpha2, beta2) are the generalized eigenvalues of the pencil (A,B)