SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
python.painlesscg Namespace Reference

Functions

 ApplyA (B, C, alpha, result, x, l)
 
 BiCGStab (b, alpha, imax, epsilon, ApplyMatrix, verbose=True)
 
 cg (y, alpha, grid, x, imax, epsilon, l, verbose=True)
 
 cg_new (b, alpha, imax, epsilon, ApplyMatrix, reuse=False, verbose=True, max_threshold=None)
 Conjugated Gradient method for sparse grids, solving A.alpha=b.
 
 sd (y, alpha, grid, x, imax, epsilon, l)
 

Function Documentation

◆ ApplyA()

python.painlesscg.ApplyA (   B,
  C,
  alpha,
  result,
  x,
  l 
)

◆ BiCGStab()

python.painlesscg.BiCGStab (   b,
  alpha,
  imax,
  epsilon,
  ApplyMatrix,
  verbose = True 
)

◆ cg()

python.painlesscg.cg (   y,
  alpha,
  grid,
  x,
  imax,
  epsilon,
  l,
  verbose = True 
)

◆ cg_new()

python.painlesscg.cg_new (   b,
  alpha,
  imax,
  epsilon,
  ApplyMatrix,
  reuse = False,
  verbose = True,
  max_threshold = None 
)

Conjugated Gradient method for sparse grids, solving A.alpha=b.

The resulting vector is stored in alpha.

Parameters
bRHS of equation
alphavector of unknowns
imaxmax. number of iterations (abort, if reached)
epsilonaccuracy requirements (reduce initial norm of residuum |delta_0| below epsilon*|delta_0|)
ApplyMatrixprocedure that applies A to a vector
reusestarting vector is 0 by default. If true, use current values in alpha
verboseverbose output (default False)
max_thresholdmaximal threshold
Returns
tuple (number of iterations, final norm of residuum)

◆ sd()

python.painlesscg.sd (   y,
  alpha,
  grid,
  x,
  imax,
  epsilon,
  l 
)