hp3D::ArrayElementFormula< F > Class Template Reference
Array of formula values on quadrature points. More...
#include <arrayElementFormula.hh>
Inheritance diagram for hp3D::ArrayElementFormula< F >:
Public Member Functions | |
Array< Real > & | apply (const Array< H > &a, Real fnc(const H &)) |
Application operator to each component. More... | |
Array< Real > & | apply (const Array< H > &a, Real fnc(const H &, const Real &)) |
Application operator to each component. More... | |
Array< Real > & | apply (Real &fnc(Real &)) |
Application operator to each component, e.g. More... | |
ArrayElementFormula () | |
Constructor. More... | |
ArrayElementFormula (const Hexahedron &elm, const concepts::ElementFormulaContainer< F > frm) | |
Constructor with calling of compute . More... | |
void | compute (const Hexahedron &elm, const concepts::ElementFormulaContainer< F > frm) |
Evaluates the formula frm on all quadrature points of element elm . More... | |
uint | cursize () const |
Returns the size of the allocated memory. More... | |
std::ostream & | info (std::ostream &os) const |
int | memory () const |
Returns the memory usage in bytes. More... | |
operator const Real * () const | |
Returns a pointer to the array. More... | |
operator Real * () | |
Returns a pointer to the array. More... | |
Array< Real > & | operator*= (const Array< H > &a) |
Multiplication operator. More... | |
Array< Real > & | operator*= (const G n) |
Scaling operator. More... | |
Array< Real > & | operator+= (const Array< H > &a) |
Addition operator. More... | |
Array< Real > & | operator+= (const Real n) |
Addition operator. More... | |
Array< Real > | operator- () const |
Negation operator. More... | |
Array< Real > & | operator-= (const Array< H > &a) |
Subtraction operator. More... | |
Array< Real > & | operator-= (const Real n) |
Subtraction operator. More... | |
Real & | operator[] (const int i) |
Index operator. More... | |
const Real & | operator[] (const int i) const |
Index operator. More... | |
void | resize (const uint sz) |
Resizes the array. More... | |
void | resizePreserve (const uint sz) |
Resizes the array. More... | |
Array< Real > & | reverse () |
Reverse the order of the entries. More... | |
uint | size () const |
Returns the requested size of the array. More... | |
void | zeros () |
Fills the memory with zeros. More... | |
Protected Attributes | |
Real * | data_ |
Data. More... | |
uint | n_ |
Requested size of the array. More... | |
uint | size_ |
Current real size of the array. More... | |
Detailed Description
template<class F = Real>
class hp3D::ArrayElementFormula< F >
Array of formula values on quadrature points.
Definition at line 23 of file arrayElementFormula.hh.
Constructor & Destructor Documentation
◆ ArrayElementFormula() [1/2]
template<class F >
hp3D::ArrayElementFormula< F >::ArrayElementFormula |
Constructor.
The array is empty at the beginning.
Definition at line 41 of file arrayElementFormula.hh.
◆ ArrayElementFormula() [2/2]
template<class F >
hp3D::ArrayElementFormula< F >::ArrayElementFormula | ( | const Hexahedron & | elm, |
const concepts::ElementFormulaContainer< F > | frm | ||
) |
Constructor with calling of compute
.
Definition at line 44 of file arrayElementFormula.hh.
Member Function Documentation
◆ apply() [1/3]
|
inlineinherited |
◆ apply() [2/3]
|
inlineinherited |
◆ apply() [3/3]
|
inlineinherited |
◆ compute()
template<class F = Real>
void hp3D::ArrayElementFormula< F >::compute | ( | const Hexahedron & | elm, |
const concepts::ElementFormulaContainer< F > | frm | ||
) |
Evaluates the formula frm
on all quadrature points of element elm
.
◆ cursize()
|
inlineinherited |
◆ info()
|
inherited |
◆ memory()
|
inlineinherited |
◆ operator const Real *()
|
inlineinherited |
◆ operator Real *()
|
inlineinherited |
◆ operator*=() [1/2]
|
inlineinherited |
◆ operator*=() [2/2]
|
inlineinherited |
◆ operator+=() [1/2]
|
inlineinherited |
◆ operator+=() [2/2]
|
inlineinherited |
◆ operator-()
|
inlineinherited |
◆ operator-=() [1/2]
|
inlineinherited |
◆ operator-=() [2/2]
|
inlineinherited |
◆ operator[]() [1/2]
|
inlineinherited |
◆ operator[]() [2/2]
|
inlineinherited |
◆ resize()
|
inherited |
◆ resizePreserve()
|
inherited |
◆ reverse()
|
inherited |
◆ size()
|
inlineinherited |
◆ zeros()
|
inlineinherited |
Member Data Documentation
◆ data_
|
protectedinherited |
◆ n_
|
protectedinherited |
◆ size_
|
protectedinherited |
The documentation for this class was generated from the following file: