|
MueLu
Version of the Day
|
#include <MueLu_MatlabSmoother_decl.hpp>
Public Member Functions | |
| template<typename Node2 > | |
| RCP< MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > | clone (const RCP< Node2 > &node2, const RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > &A_newnode) const |
Constructors / destructors | |
| template<class Scalar2 , class LocalOrdinal2 , class GlobalOrdinal2 , class Node2 > | |
| class | MatlabSmoother |
| Constructor. More... | |
| MatlabSmoother (const Teuchos::ParameterList ¶mList=Teuchos::ParameterList()) | |
| virtual | ~MatlabSmoother () |
| Destructor. More... | |
| void | SetParameterList (const Teuchos::ParameterList ¶mList) |
| void | DeclareInput (Level ¤tLevel) const |
| Input. More... | |
Computational methods. | |
| void | Setup (Level ¤tLevel) |
| Set up the smoother. More... | |
| void | Apply (MultiVector &X, const MultiVector &B, bool InitialGuessIsZero=false) const |
| Apply the preconditioner. More... | |
Utilities | |
| RCP< SmootherPrototype > | Copy () const |
| template<typename Node2 > | |
| RCP< MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > | clone (const RCP< Node2 > &node2, const Teuchos::RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > &A_newnode) const |
| Clone the smoother to a different node type. More... | |
Overridden from Teuchos::Describable | |
| std::string | needsSetup_ |
| List of arguments to the MATLAB setup function besides "A", in order. More... | |
| size_t | solveDataSize_ |
| Amount of solve data (besides A, LHS & RHS) More... | |
| std::vector< Teuchos::RCP< MuemexArg > > | solveData_ |
| List of data generated by setup which will be sent to solve after "A", "LHS" and "RHS". More... | |
| std::string | setupFunction_ |
| Matlab setup function. More... | |
| std::string | solveFunction_ |
| Matlab solve function. More... | |
| RCP< Matrix > | A_ |
| Matrix, (maybe) used in apply. More... | |
| std::string | description () const |
| Return a simple one-line description of this object. More... | |
| void | print (Teuchos::FancyOStream &out, const VerbLevel verbLevel=Default) const |
| Print the object with some verbosity level to an FancyOStream object. More... | |
| size_t | getNodeSmootherComplexity () const |
@class MatlabSmoother @ingroup MueMexClasses @brief Class that encapsulates Matlab smoothers.
This class creates an Matlab preconditioner factory. The factory creates a smoother based on the type and ParameterList passed into the constructor. See the constructor for more information.
Definition at line 74 of file MueLu_MatlabSmoother_decl.hpp.
| MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::MatlabSmoother | ( | const Teuchos::ParameterList & | paramList = Teuchos::ParameterList() | ) |
Definition at line 58 of file MueLu_MatlabSmoother_def.hpp.
|
inlinevirtual |
Destructor.
Definition at line 99 of file MueLu_MatlabSmoother_decl.hpp.
| void MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetParameterList | ( | const Teuchos::ParameterList & | paramList | ) |
Definition at line 64 of file MueLu_MatlabSmoother_def.hpp.
| void MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::DeclareInput | ( | Level & | currentLevel | ) | const |
Input.
Definition at line 74 of file MueLu_MatlabSmoother_def.hpp.
| void MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Setup | ( | Level & | currentLevel | ) |
Set up the smoother.
This creates the underlying Matlab smoother object, copies any parameter list options supplied to the constructor to the Matlab object, and computes the preconditioner.
TODO The eigenvalue estimate should come from A_, not the Matlab parameter list.
Definition at line 89 of file MueLu_MatlabSmoother_def.hpp.
| void MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Apply | ( | MultiVector & | X, |
| const MultiVector & | B, | ||
| bool | InitialGuessIsZero = false |
||
| ) | const |
Apply the preconditioner.
Solves the linear system AX=B using the constructed smoother.
| X | initial guess |
| B | right-hand side |
| InitialGuessIsZero | (optional) If false, some work can be avoided. Whether this actually saves any work depends on the underlying Matlab implementation. |
Definition at line 109 of file MueLu_MatlabSmoother_def.hpp.
| RCP< MueLu::SmootherPrototype< Scalar, LocalOrdinal, GlobalOrdinal, Node > > MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::Copy |
Definition at line 134 of file MueLu_MatlabSmoother_def.hpp.
| RCP<MueLu::MatlabSmoother<Scalar,LocalOrdinal,GlobalOrdinal,Node2> > MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::clone | ( | const RCP< Node2 > & | node2, |
| const Teuchos::RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > & | A_newnode | ||
| ) | const |
Clone the smoother to a different node type.
| std::string MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::description |
Return a simple one-line description of this object.
Definition at line 142 of file MueLu_MatlabSmoother_def.hpp.
| void MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::print | ( | Teuchos::FancyOStream & | out, |
| const VerbLevel | verbLevel = Default |
||
| ) | const |
Print the object with some verbosity level to an FancyOStream object.
Definition at line 153 of file MueLu_MatlabSmoother_def.hpp.
|
inline |
Definition at line 159 of file MueLu_MatlabSmoother_decl.hpp.
| RCP<MueLu::MatlabSmoother<Scalar,LocalOrdinal,GlobalOrdinal,Node2> > MueLu::MatlabSmoother< Scalar, LocalOrdinal, GlobalOrdinal, Node >::clone | ( | const RCP< Node2 > & | node2, |
| const RCP< const Xpetra::Matrix< Scalar, LocalOrdinal, GlobalOrdinal, Node2 > > & | A_newnode | ||
| ) | const |
Definition at line 189 of file MueLu_MatlabSmoother_decl.hpp.
|
friend |
|
mutableprivate |
List of arguments to the MATLAB setup function besides "A", in order.
Definition at line 167 of file MueLu_MatlabSmoother_decl.hpp.
|
private |
Amount of solve data (besides A, LHS & RHS)
Definition at line 170 of file MueLu_MatlabSmoother_decl.hpp.
|
private |
List of data generated by setup which will be sent to solve after "A", "LHS" and "RHS".
Definition at line 173 of file MueLu_MatlabSmoother_decl.hpp.
|
private |
Matlab setup function.
Definition at line 176 of file MueLu_MatlabSmoother_decl.hpp.
|
private |
Matlab solve function.
Definition at line 179 of file MueLu_MatlabSmoother_decl.hpp.
|
mutableprivate |
Matrix, (maybe) used in apply.
Definition at line 182 of file MueLu_MatlabSmoother_decl.hpp.