Q-learning/mat.cpp
// tri-diagonalize a symmetric matrix.  The matrix will be destroyed and
// the diagonal will be returned in d and off diagonal in e.   It uses
// the Householder transformation
// WARNING: allocates space
tri-diagonalize a symmetric matrix.  The matrix will be destroyed and
the diagonal will be returned in d and off diagonal in e.   It uses
the Householder transformation
WARNING: allocates space
tri - diagonalize a symmetric matrix . The matrix will be destroyed and the diagonal will be returned in d and off diagonal in e . It uses the Householder transformation WARNING : allocates space
void Matrix::tridiagonalize(double *&d, double *&e)
{
    d = new double [maxc];  
    e = new double [maxc];  
    householder(m, maxc, d, e);
}
void Matrix :: tridiagonalize ( double * & d , double * & e ) { d = new double [ maxc ] ; e = new double [ maxc ] ; householder ( m , maxc , d , e ) ; }
tri-diagonalize a symmetric matrix.
tri - diagonalize a symmetric matrix .
// the diagonal elements // the off-diagonal elements