#include <sparseqr.hh>

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) |
| Smatrix * | RemoveEntry (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 |
| Packed * | pmatrix |
| int * | prow |
| Qmatrix * | q |
| double | rtol |
| Smatrix ** | scol |
| Smatrix ** | srow |
| double | ztol |
QR factorization.
Definition at line 122 of file sparseqr.hh.
| 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.
| qrpmatrix | Matrix which should be factorized in sparse format |
| qrnr | Number of rows of the matrix |
| qrnc | Number of columns of the matrix |
| qrb | Right hand side |
| qrq | Space 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). |
| qrprow | Permutation vector for row indices. If not given, is allocated by the class. |
| qrpcol | Permutation vector for column indices. If not given, is allocated by the class. |
| qrztol | Tolerance for use in determining zero entries when using Given's rotations. If zero or negative, only zero entries are deleted. |
| rtol | Tolerance for use in determining rank tolerance by testing the diagonal entry in the final R matrix. |
| sparseqr::QR::~QR | ( | ) |
| void sparseqr::QR::BackSolve | ( | int | rank, |
| double * | x | ||
| ) |
Performes backsolve.
| rank | Rank of the matrix |
| x | Preallocated space to store solution |
| int sparseqr::QR::givens | ( | int | , |
| int | , | ||
| int | |||
| ) |
Performs Given's rotations.
| void sparseqr::QR::RemoveEntry | ( | int | , |
| int | |||
| ) |
| int sparseqr::QR::RemoveMarkedEntries | ( | int | ) |
| int sparseqr::QR::sparseqr | ( | ) |
Performs QR factorization.
| 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.
| long int sparseqr::QR::fillin |
Definition at line 129 of file sparseqr.hh.
| long int sparseqr::QR::flops |
Definition at line 129 of file sparseqr.hh.
| int sparseqr::QR::nc |
Definition at line 124 of file sparseqr.hh.
| long int sparseqr::QR::ngivens |
Definition at line 129 of file sparseqr.hh.
| int sparseqr::QR::nr |
Definition at line 124 of file sparseqr.hh.
| unsigned* sparseqr::QR::nrow |
Definition at line 127 of file sparseqr.hh.
| int * sparseqr::QR::pcol |
Definition at line 124 of file sparseqr.hh.
Definition at line 132 of file sparseqr.hh.
| int * sparseqr::QR::prow |
Definition at line 124 of file sparseqr.hh.
Definition at line 134 of file sparseqr.hh.
| double sparseqr::QR::rtol |
Definition at line 131 of file sparseqr.hh.
Definition at line 133 of file sparseqr.hh.
Definition at line 133 of file sparseqr.hh.
| double sparseqr::QR::ztol |
Definition at line 131 of file sparseqr.hh.