AlgebraicMultigrid 0.1
C++ algebraic multigrid.
|
Interface for linear interpolation. More...
#include <interpolator.hpp>
Public Member Functions | |
void | make_operators (size_t n_h_dofs, size_t n_H_dofs, size_t level) |
Construct P and R matrices based on dofs and level information. | |
Public Member Functions inherited from AMG::InterpolatorBase< EleType > | |
InterpolatorBase (size_t n_levels) | |
InterpolatorBase () | |
Construct a new Interpolator Base object. | |
Eigen::Matrix< EleType, -1, 1 > | prolongation (const Eigen::Matrix< EleType, -1, 1 > &v, size_t level) |
Prolongation operator on v and updating result inplace. | |
Eigen::Matrix< EleType, -1, 1 > | restriction (const Eigen::Matrix< EleType, -1, 1 > &v, size_t level) |
Restriction operator on v . | |
const Eigen::SparseMatrix< EleType > & | get_P (size_t level) const |
const Eigen::SparseMatrix< EleType > & | get_R (size_t level) const |
void | set_level_to_P (size_t level, Eigen::SparseMatrix< EleType > &P) |
void | set_level_to_R (size_t level, Eigen::SparseMatrix< EleType > &R) |
Private Attributes | |
const size_t | n_elements_per_columns = 3 |
Interface for linear interpolation.
References:
[1] : Briggs2000. "Introduction to Algebraic Multigrid, 2ed.". Chapter 3.
EleType |
|
inlinevirtual |
Construct P and R matrices based on dofs and level information.
n_h_dofs | Number of dofs in the finer level. |
n_H_dofs | Number of dofs in the coarser level. |
level | Current level. |
Implements AMG::InterpolatorBase< EleType >.
|
private |