Psi4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
psi::QR Class Reference

#include <qr.h>

Public Member Functions

 QR (SharedMatrix A, double delta)
 
 ~QR ()
 
void decompose ()
 
void set_print (int print)
 
void set_debug (int debug)
 
SharedMatrix A () const
 
SharedMatrix Q () const
 
SharedMatrix R () const
 
SharedMatrix P () const
 
SharedMatrix N () const
 
const std::vector< int > & pivots () const
 

Protected Member Functions

void form_QR ()
 
void form_PN ()
 

Protected Attributes

int print_
 Print flag (defaults to 0) More...
 
int debug_
 Debug flag (defaults to 0) More...
 
double delta_
 Termination condition. More...
 
SharedMatrix A_
 Original matrix (untouched) More...
 
SharedMatrix Q_
 Q factor, partial. More...
 
SharedMatrix R_
 R factor, full. More...
 
std::vector< int > pivots_
 Pivots. More...
 
SharedMatrix P_
 P factor, partial. More...
 
SharedMatrix N_
 N factor, partial. More...
 

Detailed Description

First pass of QR decompostion for rank compression Hermitian only, wastes some memory Uses Householder reflections, as that sounds cooler

Constructor & Destructor Documentation

psi::QR::QR ( SharedMatrix  A,
double  delta 
)
psi::QR::~QR ( )

Member Function Documentation

SharedMatrix psi::QR::A ( ) const
inline
void psi::QR::decompose ( )
void psi::QR::form_PN ( )
protected
void psi::QR::form_QR ( )
protected
SharedMatrix psi::QR::N ( ) const
inline
SharedMatrix psi::QR::P ( ) const
inline
const std::vector<int>& psi::QR::pivots ( ) const
inline
SharedMatrix psi::QR::Q ( ) const
inline
SharedMatrix psi::QR::R ( ) const
inline
void psi::QR::set_debug ( int  debug)
inline
void psi::QR::set_print ( int  print)
inline

Member Data Documentation

SharedMatrix psi::QR::A_
protected

Original matrix (untouched)

int psi::QR::debug_
protected

Debug flag (defaults to 0)

double psi::QR::delta_
protected

Termination condition.

SharedMatrix psi::QR::N_
protected

N factor, partial.

SharedMatrix psi::QR::P_
protected

P factor, partial.

std::vector<int> psi::QR::pivots_
protected

Pivots.

int psi::QR::print_
protected

Print flag (defaults to 0)

SharedMatrix psi::QR::Q_
protected

Q factor, partial.

SharedMatrix psi::QR::R_
protected

R factor, full.


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