HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Loading...
Searching...
No Matches
Classes | Functions
HArDCore2D::Tests Namespace Reference

Classes

class  L2Projection
 Compute the L2-orthogonal projection of a function. More...
 

Functions

template<typename T >
double squared_l2_norm (const Eigen::VectorXd &f_dofs, const QuadratureRule &quad, const boost::multi_array< T, 2 > &basis_quad)
 Compute the squared L2-norm of a discrete function.
 
template<typename T >
double l2_norm (const Eigen::VectorXd &f_dofs, const QuadratureRule &quad, const boost::multi_array< T, 2 > &basis_quad)
 Compute the L2-norm of a discrete function.
 

Function Documentation

◆ l2_norm()

template<typename T >
double HArDCore2D::Tests::l2_norm ( const Eigen::VectorXd &  f_dofs,
const QuadratureRule quad,
const boost::multi_array< T, 2 > &  basis_quad 
)

Compute the L2-norm of a discrete function.

Parameters
f_dofsVector of DOFs of the discrete function
quadQuadrature rule
basis_quadEvaluation of the basis at quadrature nodes

◆ squared_l2_norm()

template<typename T >
double HArDCore2D::Tests::squared_l2_norm ( const Eigen::VectorXd &  f_dofs,
const QuadratureRule quad,
const boost::multi_array< T, 2 > &  basis_quad 
)

Compute the squared L2-norm of a discrete function.

Parameters
f_dofsVector of DOFs of the discrete function
quadQuadrature rule
basis_quadEvaluation of the basis at quadrature nodes