Flow123d  master-f44eb46
Public Member Functions | List of all members
QMidpoint Class Reference

Class representing midpoint rule, with uniformly distributed points of the same weight. More...

#include <qmidpoint.hh>

Inheritance diagram for QMidpoint:
Inheritance graph
[legend]
Collaboration diagram for QMidpoint:
Collaboration graph
[legend]

Public Member Functions

 QMidpoint (unsigned int n_quadrature_points)
 Empty constructor. More...
 
- Public Member Functions inherited from Quadrature
 Quadrature (const Quadrature &q)
 Copy constructor. More...
 
 Quadrature (unsigned int dimension, unsigned int n_quadrature_points=0)
 Constructor. More...
 
virtual ~Quadrature ()
 Constructor from quadrature of lower dimension (e.g. for side integration). More...
 
unsigned int dim () const
 
void resize (unsigned int n_q_points)
 Modify the number of quadrature points. More...
 
unsigned int size () const
 Returns number of quadrature points. More...
 
template<unsigned int point_dim>
Armor::ArmaVec< double, point_dim > point (unsigned int i) const
 Returns the ith quadrature point. More...
 
Armor::Array< double >::ArrayMatSet set (uint i)
 
const Armor::Array< double > & get_points () const
 Return a reference to the whole array of quadrature points. More...
 
double weight (unsigned int i) const
 Returns the ith weight. More...
 
double & weight (unsigned int i)
 Returns the ith weight (non-const version). More...
 
const std::vector< double > & get_weights () const
 Return a reference to the whole array of weights. More...
 
Quadratureoperator= (const Quadrature &q)
 
template<unsigned int bulk_dim>
Quadrature make_from_side (unsigned int sid) const
 
template<>
Quadrature make_from_side (FMT_UNUSED unsigned int sid) const
 
template<>
Quadrature make_from_side (unsigned int sid) const
 
template<>
Armor::ArmaVec< double, 0 > point (unsigned int i) const
 

Additional Inherited Members

- Protected Attributes inherited from Quadrature
const unsigned int dim_
 Dimension of quadrature points. More...
 
Armor::Array< double > quadrature_points
 List of quadrature points. More...
 
std::vector< double > weights
 List of weights to the quadrature points. More...
 

Detailed Description

Class representing midpoint rule, with uniformly distributed points of the same weight.

Definition at line 30 of file qmidpoint.hh.

Constructor & Destructor Documentation

◆ QMidpoint()

QMidpoint::QMidpoint ( unsigned int  n_quadrature_points)
inline

Empty constructor.

Definition at line 33 of file qmidpoint.hh.


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