Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Public Attributes
sparseqr::QR Class Reference

QR factorization. More...

#include <sparseqr.hh>

Collaboration diagram for sparseqr::QR:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void BackSolve (int rank, double *x)
 Performes backsolve.
int givens (int, int, int)
 Performs Given's rotations.
 QR (Packed *qrpmatrix, int qrnr, int qrnc, double *qrb=NULL, Qmatrix *qrq=NULL, int *qrprow=NULL, int *qrpcol=NULL, double qrztol=DBL_EPSILON, double qrrtol=0.0)
 Constructor.
void RemoveEntry (int, int)
SmatrixRemoveEntry (int, int, Smatrix *, Smatrix *)
int RemoveMarkedEntries (int)
int sparseqr ()
 Performs QR factorization.
 ~QR ()

Public Attributes

double * b
bool del_pcol
bool del_prow
 Stores if delete[] of prow and pcol is allowed.
long int fillin
long int flops
int nc
long int ngivens
int nr
unsigned * nrow
int * pcol
Packedpmatrix
int * prow
Qmatrixq
double rtol
Smatrix ** scol
Smatrix ** srow
double ztol

Detailed Description

QR factorization.

Author:
Thomas H. Robey, 1996, 1997, 1998
See also:
Homepage of SparseQR
Thomas H. Robey and Deborah L. Sulsky, Row Ordering for Sparse QR Decomposition, SIAM J. Matrix Anal. and Appl., Vol. 15, No. 4, pp. 1208-1225, October 1994.

Definition at line 122 of file sparseqr.hh.


Constructor & Destructor Documentation

sparseqr::QR::QR ( Packed qrpmatrix,
int  qrnr,
int  qrnc,
double *  qrb = NULL,
Qmatrix qrq = NULL,
int *  qrprow = NULL,
int *  qrpcol = NULL,
double  qrztol = DBL_EPSILON,
double  qrrtol = 0.0 
)

Constructor.

Parameters:
qrpmatrixMatrix which should be factorized in sparse format
qrnrNumber of rows of the matrix
qrncNumber of columns of the matrix
qrbRight hand side
qrqSpace to store the Given's rotations. Does not need to be given, if they should not be stored (ie. solving for just 1 right hand side).
qrprowPermutation vector for row indices. If not given, is allocated by the class.
qrpcolPermutation vector for column indices. If not given, is allocated by the class.
qrztolTolerance for use in determining zero entries when using Given's rotations. If zero or negative, only zero entries are deleted.
rtolTolerance for use in determining rank tolerance by testing the diagonal entry in the final R matrix.
sparseqr::QR::~QR ( )

Member Function Documentation

void sparseqr::QR::BackSolve ( int  rank,
double *  x 
)

Performes backsolve.

Parameters:
rankRank of the matrix
xPreallocated space to store solution
int sparseqr::QR::givens ( int  ,
int  ,
int   
)

Performs Given's rotations.

Smatrix* sparseqr::QR::RemoveEntry ( int  ,
int  ,
Smatrix ,
Smatrix  
)
void sparseqr::QR::RemoveEntry ( int  ,
int   
)
int sparseqr::QR::RemoveMarkedEntries ( int  )
int sparseqr::QR::sparseqr ( )

Performs QR factorization.

Returns:
Rank of factorized matrix

Member Data Documentation

double * sparseqr::QR::b

Definition at line 131 of file sparseqr.hh.

Definition at line 126 of file sparseqr.hh.

Stores if delete[] of prow and pcol is allowed.

Definition at line 126 of file sparseqr.hh.

Definition at line 129 of file sparseqr.hh.

Definition at line 129 of file sparseqr.hh.

Definition at line 124 of file sparseqr.hh.

Definition at line 129 of file sparseqr.hh.

Definition at line 124 of file sparseqr.hh.

unsigned* sparseqr::QR::nrow

Definition at line 127 of file sparseqr.hh.

Definition at line 124 of file sparseqr.hh.

Definition at line 132 of file sparseqr.hh.

Definition at line 124 of file sparseqr.hh.

Definition at line 134 of file sparseqr.hh.

Definition at line 131 of file sparseqr.hh.

Definition at line 133 of file sparseqr.hh.

Definition at line 133 of file sparseqr.hh.

Definition at line 131 of file sparseqr.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)