AlgebraicMultigrid 0.1
C++ algebraic multigrid.
Loading...
Searching...
No Matches
AMG Namespace Reference

Classes

class  Grid
 Static functions for constructing A and b, the components of a linear system Au = b. More...
 
class  InterpolatorBase
 Base class for interpolators that implement prolongation and restriction as linear operators constructed by the make_operators virtual function. More...
 
class  Jacobi
 Dense Jacobi iterative method. More...
 
class  LinearInterpolator
 Interface for linear interpolation. More...
 
class  Multigrid
 Interface for multigrid solver (via solve) that iteratively performs standard vcycles. More...
 
class  SmootherBase
 Base class for smoothers that must implement a smooth function for the iterative solution of a linear system Au = b. More...
 
class  SparseGaussSeidel
 Symmetric Gauss-Seidel smoother for sparse systems. More...
 
class  SuccessiveOverRelaxation
 Dense successive over relaxation iterative method. More...
 

Functions

template<class EleType >
EleType rss (const Eigen::SparseMatrix< EleType > &A, const Eigen::Matrix< EleType, -1, 1 > &u, const Eigen::Matrix< EleType, -1, 1 > &b)
 Return residual sum of squares of bhat from Au and rhs b.
 

Function Documentation

◆ rss()

template<class EleType >
EleType AMG::rss ( const Eigen::SparseMatrix< EleType > & A,
const Eigen::Matrix< EleType, -1, 1 > & u,
const Eigen::Matrix< EleType, -1, 1 > & b )

Return residual sum of squares of bhat from Au and rhs b.

Template Parameters
EleType
Parameters
ACoefficients matrix for discretized governing equations.
uSolution to linear system of equations.
bRight hand side of linear system Au = b.
Returns
EleType