<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
#include "tlapack/base/utils.hpp"
Go to the source code of this file.
Functions | |
template<TLAPACK_SCALAR T> | |
void | tlapack::laev2 (T a, T b, T c, T &s1, T &s2, T &cs, T &sn) |
Computes the eigenvalues and eigenvector of a real symmetric 2x2 matrix A [ a b ] [ b c ] On exit, the decomposition satisfies: [ cs sn ] [ a b ] [ cs -sn ] = [ s1 0 ] [ -sn cs ] [ b c ] [ sn cs ] [ 0 s2 ] where cs*cs + sn*sn = 1. | |