concepts::ArrayCoord< 1 > Class Reference
Array with coordinates in 2D. More...
#include <arrays.hh>
Inheritance diagram for concepts::ArrayCoord< 1 >:
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... | |
ArrayCoord (const Edge1d &edge, const Array< Real > &p) | |
Constructor for a Edge1d. 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
Constructor & Destructor Documentation
◆ ArrayCoord()
concepts::ArrayCoord< 1 >::ArrayCoord | ( | const Edge1d & | edge, |
const Array< Real > & | p | ||
) |
Constructor for a Edge1d.
- Parameters
-
edge cell q array of quadrature points in [0,1]
Member Function Documentation
◆ apply() [1/3]
◆ apply() [2/3]
◆ apply() [3/3]
|
inlineinherited |
◆ 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:
- geometry/arrays.hh