Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Attributes | Private Member Functions
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:
Inheritance graph
[legend]
Collaboration diagram for concepts::ArrayLocalCoord:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Array< Real > & apply (Real &fnc(Real &))
 Application operator to each component, e.g.
Array< Real > & apply (const Array< H > &a, Realfnc(const H &))
 Application operator to each component.
Array< Real > & apply (const Array< H > &a, Realfnc(const H &, const Real &))
 Application operator to each component.
 ArrayLocalCoord (const Quad2d &quad, uint k, uint dim, const Array< Real > &q)
 Constructor for a Quad2d, where local coordinates are evaluated on the edge.
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 Real * () const
 Returns a pointer to the array.
 operator Real * ()
 Returns a pointer to the array.
Array< Real > & operator*= (const G n)
 Scaling operator.
Array< Real > & operator*= (const Array< H > &a)
 Multiplication operator.
Array< Real > & operator+= (const Realn)
 Addition operator.
Array< Real > & operator+= (const Array< H > &a)
 Addition operator.
Array< Realoperator- () const
 Negation operator.
Array< Real > & operator-= (const Array< H > &a)
 Subtraction operator.
Array< Real > & operator-= (const Realn)
 Subtraction operator.
const Realoperator[] (const int i) const
 Index operator.
Realoperator[] (const int i)
 Index operator.
void resize (const uint sz)
 Resizes the array.
void resizePreserve (const uint sz)
 Resizes the array.
Array< Real > & 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

Realdata_
 Data.
uint n_
 Requested size of the array.
uint size_
 Current real size of the array.

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.

Author:
Kersten Schmidt, 2010

Definition at line 187 of file arrays.hh.


Constructor & Destructor Documentation

concepts::ArrayLocalCoord::ArrayLocalCoord ( const Quad2d quad,
uint  k,
uint  dim,
const Array< Real > &  q 
)

Constructor for a Quad2d, 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:
quadcell
knumber of the edge
dimlocal x- (dim = 0) or y-direction (dim = 1)
qarrays of quadrature points in [0,1], 0 ~ first vertex of the edge 1 ~ second vertex of the edge

Member Function Documentation

bool concepts::ArrayLocalCoord::alongEdge ( uint  k,
uint  dim 
) [inline, private]

Definition at line 203 of file arrays.hh.

Array<Real >& concepts::Array< Real >::apply ( Real fncF &) [inline, inherited]

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 215 of file array.hh.

Array<Real >& concepts::Array< Real >::apply ( const Array< H > &  a,
Real  fncconst H & 
) [inline, inherited]

Application operator to each component.

Each array value is the function applied to the appropiate array value in a.

Parameters:
aArray with elements of type H
fncFunction which maps from H to F

Definition at line 229 of file array.hh.

Array<Real >& concepts::Array< Real >::apply ( const Array< H > &  a,
Real  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:
aArray with elements of type H
fncFunction which maps from (H,F) to F

Definition at line 245 of file array.hh.

uint concepts::Array< Real >::cursize ( ) const [inline, inherited]

Returns the size of the allocated memory.

Definition at line 258 of file array.hh.

std::ostream& concepts::Array< Real >::info ( std::ostream &  os) const [inherited]
int concepts::Array< Real >::memory ( ) const [inline, inherited]

Returns the memory usage in bytes.

Definition at line 261 of file array.hh.

concepts::Array< Real >::operator const Real * ( ) const [inline, inherited]

Returns a pointer to the array.

Definition at line 129 of file array.hh.

concepts::Array< Real >::operator Real * ( ) [inline, inherited]

Returns a pointer to the array.

Definition at line 127 of file array.hh.

Array<Real >& concepts::Array< Real >::operator*= ( const G  n) [inline, inherited]

Scaling operator.

Definition at line 146 of file array.hh.

Array<Real >& concepts::Array< Real >::operator*= ( const Array< H > &  a) [inline, inherited]

Multiplication operator.

Definition at line 154 of file array.hh.

Array<Real >& concepts::Array< Real >::operator+= ( const Real  n) [inline, inherited]

Addition operator.

Definition at line 181 of file array.hh.

Array<Real >& concepts::Array< Real >::operator+= ( const Array< H > &  a) [inline, inherited]

Addition operator.

Definition at line 187 of file array.hh.

Array<Real > concepts::Array< Real >::operator- ( ) const [inline, inherited]

Negation operator.

Definition at line 207 of file array.hh.

Array<Real >& concepts::Array< Real >::operator-= ( const Array< H > &  a) [inline, inherited]

Subtraction operator.

Definition at line 200 of file array.hh.

Array<Real >& concepts::Array< Real >::operator-= ( const Real  n) [inline, inherited]

Subtraction operator.

Definition at line 194 of file array.hh.

const Real & concepts::Array< Real >::operator[] ( const int  i) const [inline, inherited]

Index operator.

Definition at line 132 of file array.hh.

Real & concepts::Array< Real >::operator[] ( const int  i) [inline, inherited]

Index operator.

Definition at line 138 of file array.hh.

void concepts::Array< Real >::resize ( const uint  sz) [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.

void concepts::Array< Real >::resizePreserve ( const uint  sz) [inherited]

Resizes the array.

Basically, it does the same as resize. But, if a reallocation occurs, the data is preserved.

Array<Real >& concepts::Array< Real >::reverse ( ) [inherited]

Reverse the order of the entries.

uint concepts::Array< Real >::size ( ) const [inline, inherited]

Returns the requested size of the array.

Examples:
hpFEM3d-EV.cc.

Definition at line 255 of file array.hh.

void concepts::Array< Real >::zeros ( ) [inline, inherited]

Fills the memory with zeros.

Definition at line 124 of file array.hh.


Member Data Documentation

Real * concepts::Array< Real >::data_ [protected, inherited]

Data.

Definition at line 269 of file array.hh.

uint concepts::Array< Real >::n_ [protected, inherited]

Requested size of the array.

Definition at line 273 of file array.hh.

uint concepts::Array< Real >::size_ [protected, inherited]

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:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)