Go to the documentation of this file.
152 template<
class MatrixType>
226 inline void applyHouseholder
236 template<
template<
typename>
class ListContainer>
237 void solvex(ListContainer<cmptType>&
x)
const;
241 template<
template<
typename>
class ListContainer>
245 const ListContainer<cmptType>& source
289 const storeMethods storeMethod = storeMethods::OUT_OF_PLACE,
298 const storeMethods storeMethod = storeMethods::OUT_OF_PLACE,
317 inline const MatrixType&
Q()
const;
320 inline const MatrixType&
R()
const;
400 template<
class MatrixType>
404 const scalar tol = 1
e-5
void solve(List< cmptType > &x, const UList< cmptType > &source) const
RectangularMatrix< cmptType > RMatrix
A class for managing temporary objects.
void applyLeftReflector(MatrixType &A, const RMatrix &reflector, const label k=0, const label k1=0)
Apply (in-place) Householder reflectors from the left side: u*A.
MatrixType pinv(const MatrixType &A, const scalar tol=1e-5)
RMatrix householderReflector(RMatrix u)
Compute Householder reflector on a given matrix column, u.
MatrixType::cmptType cmptType
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
SMatrix inv() const
Return the inverse of (Q*R), so that solving x = (Q*R).inv()*source.
const MatrixType & Q() const
Return the unitary similarity matrix.
switches on column pivoting
QRMatrix (i.e. QR decomposition, QR factorisation or orthogonal-triangular decomposition) decomposes ...
RMatrix backSubstitution(const SMatrix &A, const RMatrix &b)
Solve a row-echelon-form linear system starting from the bottom.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void applyRightReflector(MatrixType &A, const RMatrix &reflector, const label k=0)
Apply (in-place) Householder reflectors from the right side: (u*A)*u.
switches off column pivoting
replaces input matrix content with R
A templated (M x N) rectangular matrix of objects of <Type>, containing M*N elements,...
const MatrixType & R() const
Return the upper triangular matrix.
colPivoting
Options for the computation of column pivoting.
storeMethods
Options where to store R.
SquareMatrix< cmptType > SMatrix
QRMatrix()
Construct null.
const labelList & orderP() const
Return the permutation order (P) as a list.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label k
Boltzmann constant.
const dimensionedScalar e
Elementary charge.
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
outputTypes
Options for the output matrix forms of QRMatrix.
void decompose(MatrixType &A)
Compute QR decomposition according to constructor settings.
SMatrix P() const
Create and return the permutation matrix.