concepts::ArrayLocalCoord Class Reference
Array of local coordinates, e.g., inside a quad, but only along an edge. More...
#include <arrays.hh>
Inheritance diagram for concepts::ArrayLocalCoord:
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... | |
ArrayLocalCoord (const QuadNd &quad, uint k, uint dim, const Array< Real > &q) | |
Constructor for a QuadNd, where local coordinates are evaluated on the edge. 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... | |
Private Member Functions | |
bool | alongEdge (uint k, uint dim) |
Detailed Description
Array of local coordinates, e.g., inside a quad, but only along an edge.
Constructor & Destructor Documentation
◆ ArrayLocalCoord()
concepts::ArrayLocalCoord::ArrayLocalCoord | ( | const QuadNd & | quad, |
uint | k, | ||
uint | dim, | ||
const Array< Real > & | q | ||
) |
Constructor for a QuadNd, where local coordinates are evaluated on the edge.
If the wanted local direction it opposite to edge, then the array is of length 1.
- Parameters
-
quad cell k number of the edge dim local x- (dim = 0) or y-direction (dim = 1) q arrays of quadrature points in [0,1], 0 ~ first vertex of the edge 1 ~ second vertex of the edge
Member Function Documentation
◆ alongEdge()
|
inlineprivate |
◆ apply() [1/3]
|
inlineinherited |
◆ apply() [2/3]
|
inlineinherited |
◆ 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