#include <arrays.hh>
Public Member Functions | |
ArrayCoord (const Quad2d &quad, const Array< Real > &qX, const Array< Real > &qY, bool tensor=true) | |
ArrayCoord (const Edge2d &edge, const Array< Real > &p) | |
void | resize (const uint sz) |
void | resizePreserve (const uint sz) |
void | zeros () |
Fills the memory with zeros. | |
operator Real2d * () | |
Returns a pointer to the array. | |
operator const Real2d * () const | |
Returns a pointer to the array. | |
const Real2d & | operator[] (const int i) const |
Index operator. | |
Real2d & | operator[] (const int i) |
Index operator. | |
Array< Real2d > & | operator*= (const G n) |
Scaling operator. | |
Array< Real2d > & | operator*= (const Array< H > &a) |
Multiplication operator. | |
Array< Real2d > & | operator+= (const Real2d n) |
Addition operator. | |
Array< Real2d > & | operator+= (const Array< H > &a) |
Addition operator. | |
Array< Real2d > & | operator-= (const Real2d n) |
Subtraction operator. | |
Array< Real2d > & | operator-= (const Array< H > &a) |
Subtraction operator. | |
Array< Real2d > | operator- () const |
Negation operator. | |
Array< Real2d > & | apply (Real2d &fnc(Real2d &)) |
Array< Real2d > & | apply (const Array< H > &a, Real2d fnc(const H &)) |
Array< Real2d > & | apply (const Array< H > &a, Real2d fnc(const H &, const Real2d &)) |
uint | size () const |
Returns the requested size of the array. | |
uint | cursize () const |
Returns the size of the allocated memory. | |
int | memory () const |
Returns the memory usage in bytes. | |
Array< Real2d > & | reverse () |
Reverse the order of the entries. | |
std::ostream & | info (std::ostream &os) const |
Protected Attributes | |
Real2d * | data_ |
Data. | |
uint | size_ |
Current real size of the array. | |
uint | n_ |
Requested size of the array. | |
concepts::ArrayCoord< 2 >::ArrayCoord | ( | const Quad2d & | quad, |
const Array< Real > & | qX, | ||
const Array< Real > & | qY, | ||
bool | tensor = true |
||
) |
Constructor for a Quad2d
quad | cell |
qX,qY | arrays of quadrature points in [0,1] |
concepts::ArrayCoord< 2 >::ArrayCoord | ( | const Edge2d & | edge, |
const Array< Real > & | p | ||
) |
Constructor for a Edge2d
edge | cell |
q | array of quadrature points in [0,1] |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |