Public Member Functions | Public Attributes | List of all members
gnsstk::Householder< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::Householder< T >

Definition at line 745 of file MatrixFunctors.hpp.

#include <MatrixFunctors.hpp>

Public Member Functions

 Householder ()
 
template<class BaseClass >
void operator() (const ConstMatrixBase< T, BaseClass > &m)
 

Public Attributes

Matrix< T > A
 The upper triangular transformed matrix. More...
 

Constructor & Destructor Documentation

◆ Householder()

template<class T >
gnsstk::Householder< T >::Householder ( )
inline

Definition at line 748 of file MatrixFunctors.hpp.

Member Function Documentation

◆ operator()()

template<class T >
template<class BaseClass >
void gnsstk::Householder< T >::operator() ( const ConstMatrixBase< T, BaseClass > &  m)
inline

Explicitly perform the transformation, one column at a time, without actually constructing the transformation matrix. Let y be column k of the input matrix. y can be zeroed below the diagonal as follows: let sum=sign(y(k))*sqrt(y*y), and define vector u(k)=y(k)+sum, u(j)=y(j) (j.gt.k). This defines the transformation matrix as (1-bu*u), with b=2/u*u=1/sum*u(k). Redefine y(k)=u(k) and apply the transformation to elements of the input matrix below and to the right of the (k,k) element. This algorithm for each column k=0,n-1 in turn is equivalent to a single orthogonal transformation which triangularizes the matrix.

Exceptions
MatrixException

Definition at line 765 of file MatrixFunctors.hpp.

Member Data Documentation

◆ A

template<class T >
Matrix<T> gnsstk::Householder< T >::A

The upper triangular transformed matrix.

Definition at line 811 of file MatrixFunctors.hpp.


The documentation for this class was generated from the following file:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:45