SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Used to construct instances of the QR decomposition class, RWQRDecomp. More...
#include <rw/lapack/qr.h>
Inherits QRCalc.
Public Member Functions | |
RWQRDecompServer () | |
RWQRDecomp< TypeT, QRCalc > | operator() (const RWGenMat< TypeT > &) const |
void | setFreeIndex (int i) |
void | setInitialIndex (int i) |
void | setPivoting (bool) |
The QR decomposition server class, RWQRDecompServer, is used to construct instances of the QR decomposition class, RWQRDecomp. Using a server rather than the standard QR decomposition constructor gives you control over how pivoting is done.
Normally, columns in the input matrix may be moved in order to increase the robustness of the computation of the QR decomposition. This is called pivoting. In some cases, you may want to ensure that certain columns of the input matrix are kept at the front of the QR decomposition, or you may want to disable pivoting altogether. Using a server object gives you this control.
RWQRDecompServer< TypeT, QRCalc >::RWQRDecompServer | ( | ) |
Default constructor. Builds a new server, which does pivoting by default.
RWQRDecomp< TypeT, QRCalc > RWQRDecompServer< TypeT, QRCalc >::operator() | ( | const RWGenMat< TypeT > & | ) | const |
Computes a QR decomposition.
void RWQRDecompServer< TypeT, QRCalc >::setFreeIndex | ( | int | i | ) |
Makes i a free index, so that it may be pivoted to any column of the decomposition. Initially, all indices are free.
void RWQRDecompServer< TypeT, QRCalc >::setInitialIndex | ( | int | i | ) |
Moves i to an initial position in the decomposition.
void RWQRDecompServer< TypeT, QRCalc >::setPivoting | ( | bool | ) |
Controls whether pivoting is done.
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |