Array of formula values on quadrature points.
More...
#include <arrayElementFormula.hh>
List of all members.
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 BaseQuad< Real > &elm, const concepts::ElementFormulaContainer< F > frm) |
| | Constructor with calling of compute.
|
| void | compute (const BaseQuad< 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.
|
Detailed Description
template<class F = Real>
class hp2D::ArrayElementFormula< F >
Array of formula values on quadrature points.
Definition at line 25 of file arrayElementFormula.hh.
Constructor & Destructor Documentation
Member Function Documentation
Application operator to each component, e.g.
std::sin or std::conj
Definition at line 215 of file array.hh.
template<class F>
template<class H >
Application operator to each component.
Each array value is the function applied to the appropiate array value in a.
- Parameters:
-
| a | Array with elements of type H |
| fnc | Function which maps from H to F |
Definition at line 229 of file array.hh.
template<class F>
template<class H >
| Array<F>& concepts::Array< F >::apply |
( |
const Array< H > & |
a, |
|
|
F |
fncconst H &, const F & |
|
) |
| [inline, inherited] |
Application operator to each component.
Each array value is the function applied to the appropiate array value in a and to the old array value.
- Parameters:
-
| a | Array with elements of type H |
| fnc | Function which maps from (H,F) to F |
Definition at line 245 of file array.hh.
Evaluates the formula frm on all quadrature points of element elm.
Returns the size of the allocated memory.
Definition at line 258 of file array.hh.
template<class F >
| std::ostream & concepts::Array< F >::info |
( |
std::ostream & |
os | ) |
const [inherited] |
Returns the memory usage in bytes.
Definition at line 261 of file array.hh.
Returns a pointer to the array.
Definition at line 129 of file array.hh.
Returns a pointer to the array.
Definition at line 127 of file array.hh.
template<class F>
template<class G >
| Array<F>& concepts::Array< F >::operator*= |
( |
const G |
n | ) |
[inline, inherited] |
Scaling operator.
Definition at line 146 of file array.hh.
template<class F>
template<class H >
Multiplication operator.
Definition at line 154 of file array.hh.
template<class F>
| Array<F>& concepts::Array< F >::operator+= |
( |
const F |
n | ) |
[inline, inherited] |
Addition operator.
Definition at line 181 of file array.hh.
template<class F>
template<class H >
Addition operator.
Definition at line 187 of file array.hh.
Negation operator.
Definition at line 207 of file array.hh.
template<class F>
template<class H >
Subtraction operator.
Definition at line 200 of file array.hh.
template<class F>
| Array<F>& concepts::Array< F >::operator-= |
( |
const F |
n | ) |
[inline, inherited] |
Subtraction operator.
Definition at line 194 of file array.hh.
template<class F>
| const F& concepts::Array< F >::operator[] |
( |
const int |
i | ) |
const [inline, inherited] |
Resizes the array.
A reallocation occurs only if the requested space is not available, ie. making the array smaller does not result in a reallocation. If a reallocation occurs, the data is not preserved.
Definition at line 277 of file array.hh.
Resizes the array.
Basically, it does the same as resize. But, if a reallocation occurs, the data is preserved.
Definition at line 286 of file array.hh.
Reverse the order of the entries.
Definition at line 307 of file array.hh.
Returns the requested size of the array.
Definition at line 255 of file array.hh.
Fills the memory with zeros.
Definition at line 124 of file array.hh.
Member Data Documentation
Requested size of the array.
Definition at line 273 of file array.hh.
Current real size of the array.
Definition at line 271 of file array.hh.
The documentation for this class was generated from the following file: