Array of formula values on quadrature points. More...
#include <formula.hh>


Public Member Functions | |
| Array< F > & | apply (F &fnc(F &)) |
| Application operator to each component, e.g. | |
| template<class H > | |
| Array< F > & | apply (const Array< H > &a, F fnc(const H &)) |
| Application operator to each component. | |
| template<class H > | |
| Array< F > & | apply (const Array< H > &a, F fnc(const H &, const F &)) |
| Application operator to each component. | |
| ArrayElementFormula () | |
| Constructor. | |
| ArrayElementFormula (const Element< Real > &elm, const concepts::ElementFormulaContainer< F > frm) | |
Constructor with calling of compute. | |
| void | compute (const Element< Real > &elm, const concepts::ElementFormulaContainer< F > frm) |
Evaluates the formula frm on all quadrature points of element elm. | |
| uint | cursize () const |
| Returns the size of the allocated memory. | |
| std::ostream & | info (std::ostream &os) const |
| int | memory () const |
| Returns the memory usage in bytes. | |
| operator const F * () const | |
| Returns a pointer to the array. | |
| operator F * () | |
| Returns a pointer to the array. | |
| template<class G > | |
| Array< F > & | operator*= (const G n) |
| Scaling operator. | |
| template<class H > | |
| Array< F > & | operator*= (const Array< H > &a) |
| Multiplication operator. | |
| Array< F > & | operator+= (const F n) |
| Addition operator. | |
| template<class H > | |
| Array< F > & | operator+= (const Array< H > &a) |
| Addition operator. | |
| Array< F > | operator- () const |
| Negation operator. | |
| Array< F > & | operator-= (const F n) |
| Subtraction operator. | |
| template<class H > | |
| Array< F > & | operator-= (const Array< H > &a) |
| Subtraction operator. | |
| const F & | operator[] (const int i) const |
| Index operator. | |
| F & | operator[] (const int i) |
| Index operator. | |
| void | resize (const uint sz) |
| Resizes the array. | |
| void | resizePreserve (const uint sz) |
| Resizes the array. | |
| Array< F > & | reverse () |
| Reverse the order of the entries. | |
| uint | size () const |
| Returns the requested size of the array. | |
| void | zeros () |
| Fills the memory with zeros. | |
Protected Attributes | |
| F * | data_ |
| Data. | |
| uint | n_ |
| Requested size of the array. | |
| uint | size_ |
| Current real size of the array. | |
Array of formula values on quadrature points.
Definition at line 58 of file formula.hh.
| hp1D::ArrayElementFormula< F >::ArrayElementFormula | ( | ) |
| hp1D::ArrayElementFormula< F >::ArrayElementFormula | ( | const Element< Real > & | elm, |
| const concepts::ElementFormulaContainer< F > | frm | ||
| ) |
Constructor with calling of compute.
Definition at line 80 of file formula.hh.
| Array<F>& concepts::Array< F >::apply | ( | F & | fncF & | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::apply | ( | const Array< H > & | a, |
| F | fncconst H & | ||
| ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::apply | ( | const Array< H > & | a, |
| F | fncconst H &, const F & | ||
| ) | [inline, inherited] |
| void hp1D::ArrayElementFormula< F >::compute | ( | const Element< Real > & | elm, |
| const concepts::ElementFormulaContainer< F > | frm | ||
| ) |
Evaluates the formula frm on all quadrature points of element elm.
| uint concepts::Array< F >::cursize | ( | ) | const [inline, inherited] |
| std::ostream & concepts::Array< F >::info | ( | std::ostream & | os | ) | const [inherited] |
| int concepts::Array< F >::memory | ( | ) | const [inline, inherited] |
| concepts::Array< F >::operator const F * | ( | ) | const [inline, inherited] |
| concepts::Array< F >::operator F * | ( | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::operator*= | ( | const G | n | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::operator*= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::operator+= | ( | const F | n | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::operator+= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<F> concepts::Array< F >::operator- | ( | ) | const [inline, inherited] |
| Array<F>& concepts::Array< F >::operator-= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<F>& concepts::Array< F >::operator-= | ( | const F | n | ) | [inline, inherited] |
| const F& concepts::Array< F >::operator[] | ( | const int | i | ) | const [inline, inherited] |
| F& concepts::Array< F >::operator[] | ( | const int | i | ) | [inline, inherited] |
| void concepts::Array< F >::resize | ( | const uint | sz | ) | [inherited] |
| void concepts::Array< F >::resizePreserve | ( | const uint | sz | ) | [inherited] |
| Array< F > & concepts::Array< F >::reverse | ( | ) | [inherited] |
| uint concepts::Array< F >::size | ( | ) | const [inline, inherited] |
| void concepts::Array< F >::zeros | ( | ) | [inline, inherited] |
F* concepts::Array< F >::data_ [protected, inherited] |
uint concepts::Array< F >::n_ [protected, inherited] |
uint concepts::Array< F >::size_ [protected, inherited] |