template<class Scalar, class MV, class OP>
class Belos::GmresBaseFactory< Scalar, MV, OP >
Factory for creating GmresBase subclass instances.
- Mark Hoemmen
- This is EXPERIMENTAL CODE. DO NOT RELY ON THIS CODE. The interface or implementation may change at any time.
GmresBase describes a general GMRES or Flexible GMRES (FGMRES) iteration, and leaves the specifics up to the subclasses.
GmresBaseFactory is a factory class that generates subclass instances. The factory is responsible for:
- Picking the appropriate subclass of GmresBase (which may depend upon the static type of OP (and MV), as well as what information the caller provides in the parameter list
- Reading and validating parameters from the given parameter list, and filling in missing parameters with default values. (The parameter list will indicate whether or not Flexible GMRES is to be used, and also other information that the factory may use to help pick the subclass.)
- Constructing specialized kernels that depend on the operator(s), such as the matrix powers kernel (if applicable). This should actually be delegated to a matrix powers kernel factory class that "does the right thing," depending on the types and any additional information available.
Definition at line 75 of file BelosGmresBaseFactory.hpp.