SG++-Doxygen-Documentation
python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor Class Reference
Inheritance diagram for python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor:

Public Member Functions

def __getattr__ (self, attr)
 
def __init__ (self, builder)
 
def withAccuracy (self, accuracy)
 
def withAlphaReusing (self)
 
def withImax (self, imax)
 
def withThreshold (self, threshold)
 

Detailed Description

CGSolver Descriptor helps to implement fluid interface patter on python
it encapsulates functionality concerning creation of the CG-Solver

Constructor & Destructor Documentation

◆ __init__()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__init__ (   self,
  builder 
)

References python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__solver, python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__solver, python.uq.analysis.asgc.ASGCDescriptor.ASGCDescriptor._builder, and python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor._builder.

Member Function Documentation

◆ __getattr__()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__getattr__ (   self,
  attr 
)
Overrides built-in method
if method called is not a object method of this Descriptor, most
probably it's a method of LearnerBuilder so it tries to call the
method from our builder
@param attr: String for method name
@return: Method calling in LearnerBuilder

References python.uq.analysis.asgc.ASGCDescriptor.ASGCDescriptor._builder, and python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor._builder.

◆ withAccuracy()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.withAccuracy (   self,
  accuracy 
)
Defines the accuracy of CG-Solver
@param accuracy: float for accuracy

References python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__solver, and python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__solver.

◆ withAlphaReusing()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.withAlphaReusing (   self)
The reusage of previous alpha data in the CG iteration

References python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__solver, and python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__solver.

◆ withImax()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.withImax (   self,
  imax 
)
Defines the maximal number of iterations in CG algorithms
@param imax: integer for maximal number of iteration in CG

References python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__solver, and python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__solver.

◆ withThreshold()

def python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.withThreshold (   self,
  threshold 
)
Defines the maximal accuracy. If the norm of the residuum
falls below this threshold, stop the CG iterations.
@param threshold: float maximal accuracy

References python.uq.learner.builder.CGSolverDescriptor.CGSolverDescriptor.__solver, and python.learner.LearnerBuilder.LearnerBuilder.CGSolverDescriptor.__solver.


The documentation for this class was generated from the following file: