10#ifndef __TLAPACK_LAHQZ_EIG22_HH__
11#define __TLAPACK_LAHQZ_EIG22_HH__
34template <TLAPACK_MATRIX A_t, TLAPACK_MATRIX B_t, TLAPACK_SCALAR T>
43 auto x00 =
A(0, 0) /
B(0, 0);
44 auto x01 =
A(0, 1) /
B(1, 1);
45 auto x10 =
A(1, 0) /
B(0, 0);
46 auto x11 =
A(1, 1) /
B(1, 1);
47 auto u01 =
B(0, 1) /
B(1, 1);
void lahqr_eig22(T a00, T a01, T a10, T a11, complex_type< T > &s1, complex_type< T > &s2)
Computes the eigenvalues of a 2x2 matrix A.
Definition lahqr_eig22.hpp:34
void 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.
Definition lahqz_eig22.hpp:35
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113