ThunderEgg  1.0.0
ThunderEgg::Poisson::MatrixHelper2d Class Reference

Create a matrix for the 2D second-order Laplacian operator. More...

#include <MatrixHelper2d.h>

Public Member Functions

 MatrixHelper2d (const Domain< 2 > &domain, std::bitset< 4 > neumann)
 Create a MatrixHelper for a given domain. More...
 
Mat formCRSMatrix (double lambda=0)
 Form the matrix. More...
 

Detailed Description

Create a matrix for the 2D second-order Laplacian operator.

Constructor & Destructor Documentation

◆ MatrixHelper2d()

ThunderEgg::Poisson::MatrixHelper2d::MatrixHelper2d ( const Domain< 2 > &  domain,
std::bitset< 4 >  neumann 
)

Create a MatrixHelper for a given domain.

Parameters
domainthe domain
neumannthe boundary conditions

Member Function Documentation

◆ formCRSMatrix()

Mat ThunderEgg::Poisson::MatrixHelper2d::formCRSMatrix ( double  lambda = 0)

Form the matrix.

Returns
the formed matrix

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