KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
#include <dense_qr_decomposition.h>
Public Member Functions | |
Life Cycle | |
DenseQRDecomposition ()=default | |
virtual | ~DenseQRDecomposition ()=default |
Type Definitions | |
typedef TDenseSpaceType::DataType | DataType |
typedef TDenseSpaceType::VectorType | VectorType |
typedef TDenseSpaceType::MatrixType | MatrixType |
KRATOS_CLASS_POINTER_DEFINITION (DenseQRDecomposition) | |
Definition of the shared pointer of the class. More... | |
Operations | |
virtual void | Compute (MatrixType &rInputMatrix)=0 |
Compute the QR Computes the QR Decomposition (QR) of the given imput matrix. More... | |
virtual void | Compute (MatrixType &rInputMatrix, MatrixType &rMatrixQ, MatrixType &rMatrixR)=0 |
Compute the QR Computes the QR (QR) of the given input matrix. More... | |
virtual void | Solve (MatrixType &rB, MatrixType &rX) const =0 |
Solves the problem Ax=b Being A the input matrix, this method solves the problem Ax = b. More... | |
virtual void | Solve (const VectorType &rB, VectorType &rX) const =0 |
Solves the problem Ax=b Being A the input matrix, this method solves the problem Ax = b. More... | |
virtual void | MatrixQ (MatrixType &rMatrixQ) const =0 |
Unitary matrix getter If computed, this method sets the unitary matrix in the provided array. More... | |
virtual void | MatrixR (MatrixType &rMatrixR) const =0 |
Upper triangular matrix getter If computed, this method sets the upper triangular matrix in the provided array. More... | |
virtual void | MatrixP (MatrixType &rMatrixP) const =0 |
Pivoting matrix getter If computed, this method sets the pivoting matrix. More... | |
virtual std::size_t | Rank () const =0 |
Rank of the provided array Calculates and returns the rank of the array decomposed with the QR. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const =0 |
QR information Outputs the QR class information. More... | |
static std::string | Name () |
Name of the QR Returns a string containing the name of the current QR decomposition. More... | |
typedef TDenseSpaceType::DataType Kratos::DenseQRDecomposition< TDenseSpaceType >::DataType |
typedef TDenseSpaceType::MatrixType Kratos::DenseQRDecomposition< TDenseSpaceType >::MatrixType |
typedef TDenseSpaceType::VectorType Kratos::DenseQRDecomposition< TDenseSpaceType >::VectorType |
|
default |
|
virtualdefault |
|
pure virtual |
Compute the QR Computes the QR Decomposition (QR) of the given imput matrix.
rInputMatrix | Matrix to compute the QR decomposition |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
|
pure virtual |
Compute the QR Computes the QR (QR) of the given input matrix.
rInputMatrix | Matrix to compute the QR decomposition |
rMatrixQ | Unitary matrix |
rMatrixR | Upper triangular matrix |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
Kratos::DenseQRDecomposition< TDenseSpaceType >::KRATOS_CLASS_POINTER_DEFINITION | ( | DenseQRDecomposition< TDenseSpaceType > | ) |
Definition of the shared pointer of the class.
|
pure virtual |
Pivoting matrix getter If computed, this method sets the pivoting matrix.
rMatrixP | Pivoting matrix |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
|
pure virtual |
Unitary matrix getter If computed, this method sets the unitary matrix in the provided array.
rMatrixU | Unitary matrix |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
|
pure virtual |
Upper triangular matrix getter If computed, this method sets the upper triangular matrix in the provided array.
rMatrixV | Upper triangular matrix |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
|
inlinestatic |
Name of the QR Returns a string containing the name of the current QR decomposition.
|
pure virtual |
QR information Outputs the QR class information.
rOStream | Information output |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >, Kratos::EigenDenseHouseholderQRDecomposition< TDenseSpace >, and Kratos::EigenDenseColumnPivotingHouseholderQRDecomposition< TDenseSpace >.
|
pure virtual |
Rank of the provided array Calculates and returns the rank of the array decomposed with the QR.
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >, Kratos::EigenDenseHouseholderQRDecomposition< TDenseSpace >, and Kratos::EigenDenseColumnPivotingHouseholderQRDecomposition< TDenseSpace >.
|
pure virtual |
Solves the problem Ax=b Being A the input matrix, this method solves the problem Ax = b.
rB | The Right Hand Side (RHS) vector |
rX | The solution vector |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.
|
pure virtual |
Solves the problem Ax=b Being A the input matrix, this method solves the problem Ax = b.
rB | The Right Hand Side (RHS) matrix |
rX | The solution matrix |
Implemented in Kratos::DenseHouseholderQRDecomposition< TDenseSpaceType >.