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

Public Member Functions | Protected Attributes
concepts::ArrayJacobian< 2, 2 > Class Template Reference

Array of jacobian matrices in 2D on 2D elements. More...

#include <arrays.hh>

Inheritance diagram for concepts::ArrayJacobian< 2, 2 >:
Inheritance graph
[legend]
Collaboration diagram for concepts::ArrayJacobian< 2, 2 >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Array< Mapping< Real, 2 > > & apply (Mapping< Real, 2 > &fnc(Mapping< Real, 2 > &))
 Application operator to each component, e.g.
Array< Mapping< Real, 2 > > & apply (const Array< H > &a, Mapping< Real, 2 >fnc(const H &))
 Application operator to each component.
Array< Mapping< Real, 2 > > & apply (const Array< H > &a, Mapping< Real, 2 >fnc(const H &, const Mapping< Real, 2 > &))
 Application operator to each component.
 ArrayJacobian (const Quad2d &quad, const Array< Real > &qX, const Array< Real > &qY)
 Constructor for a Quad2d.
 ArrayJacobian (const Quad2d &quad, uint k, const Array< Real > &q)
 Constructor for a Quad2d, evaluated on an 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 Mapping< Real, 2 > * () const
 Returns a pointer to the array.
 operator Mapping< Real, 2 > * ()
 Returns a pointer to the array.
Array< Mapping< Real, 2 > > & operator*= (const Array< H > &a)
 Multiplication operator.
Array< Mapping< Real, 2 > > & operator*= (const G n)
 Scaling operator.
Array< Mapping< Real, 2 > > & operator+= (const Mapping< Real, 2 >n)
 Addition operator.
Array< Mapping< Real, 2 > > & operator+= (const Array< H > &a)
 Addition operator.
Array< Mapping< Real, 2 > > operator- () const
 Negation operator.
Array< Mapping< Real, 2 > > & operator-= (const Array< H > &a)
 Subtraction operator.
Array< Mapping< Real, 2 > > & operator-= (const Mapping< Real, 2 >n)
 Subtraction operator.
const Mapping< Real, 2 > & operator[] (const int i) const
 Index operator.
Mapping< Real, 2 > & operator[] (const int i)
 Index operator.
void resize (const uint sz)
 Resizes the array.
void resizePreserve (const uint sz)
 Resizes the array.
Array< Mapping< Real, 2 > > & 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

Mapping< Real, 2 > * data_
 Data.
uint n_
 Requested size of the array.
uint size_
 Current real size of the array.

Detailed Description

template<>
class concepts::ArrayJacobian< 2, 2 >

Array of jacobian matrices in 2D on 2D elements.

Author:
Kersten Schmidt, 2009

Definition at line 158 of file arrays.hh.


Constructor & Destructor Documentation

concepts::ArrayJacobian< 2, 2 >::ArrayJacobian ( const Quad2d quad,
const Array< Real > &  qX,
const Array< Real > &  qY 
)

Constructor for a Quad2d.

Parameters:
quadcell
qX,qYarrays of quadrature points in [0,1]
concepts::ArrayJacobian< 2, 2 >::ArrayJacobian ( const Quad2d quad,
uint  k,
const Array< Real > &  q 
)

Constructor for a Quad2d, evaluated on an edge.

Parameters:
quadcell
knumber of the edge
qarrays of quadrature points in [0,1], 0 ~ first vertex of the edge 1 ~ second vertex of the edge

Member Function Documentation

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

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 215 of file array.hh.

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::apply ( const Array< H > &  a,
Mapping< Real, 2 >  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<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::apply ( const Array< H > &  a,
Mapping< Real, 2 >  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< Mapping< Real, 2 > >::cursize ( ) const [inline, inherited]

Returns the size of the allocated memory.

Definition at line 258 of file array.hh.

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

Returns the memory usage in bytes.

Definition at line 261 of file array.hh.

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

Returns a pointer to the array.

Definition at line 129 of file array.hh.

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

Returns a pointer to the array.

Definition at line 127 of file array.hh.

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

Scaling operator.

Definition at line 146 of file array.hh.

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

Multiplication operator.

Definition at line 154 of file array.hh.

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

Addition operator.

Definition at line 187 of file array.hh.

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

Addition operator.

Definition at line 181 of file array.hh.

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

Negation operator.

Definition at line 207 of file array.hh.

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

Subtraction operator.

Definition at line 200 of file array.hh.

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

Subtraction operator.

Definition at line 194 of file array.hh.

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

Index operator.

Definition at line 132 of file array.hh.

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

Index operator.

Definition at line 138 of file array.hh.

void concepts::Array< Mapping< Real, 2 > >::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< Mapping< Real, 2 > >::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<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::reverse ( ) [inherited]

Reverse the order of the entries.

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

Returns the requested size of the array.

Definition at line 255 of file array.hh.

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

Fills the memory with zeros.

Definition at line 124 of file array.hh.


Member Data Documentation

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

Data.

Definition at line 269 of file array.hh.

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

Requested size of the array.

Definition at line 273 of file array.hh.

uint concepts::Array< Mapping< Real, 2 > >::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)