concepts::ArrayJacobian< 2, 2 > Class Reference

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

#include <arrays.hh>

Inheritance diagram for concepts::ArrayJacobian< 2, 2 >:
concepts::Array< Mapping< Real, 2 > >

Public Member Functions

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

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

Detailed Description

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

Author
Kersten Schmidt, 2009
Robert Gruhlke, 2014

Definition at line 213 of file arrays.hh.

Constructor & Destructor Documentation

◆ ArrayJacobian() [1/2]

concepts::ArrayJacobian< 2, 2 >::ArrayJacobian ( const QuadNd quad,
const Array< Real > &  qX,
const Array< Real > &  qY,
bool  istensor = true 
)

Constructor for a QuadNd.

Parameters
quadgeometrical cell
qX,qYarrays of quadrature points in $[0,1]$
istensorIf true then the array is built for each combination of qX and qY, i.e., it has size qX*qY. If false the array has same size than qX and qY.

◆ ArrayJacobian() [2/2]

concepts::ArrayJacobian< 2, 2 >::ArrayJacobian ( const QuadNd quad,
uint  k,
const Array< Real > &  q 
)

Constructor for a QuadNd, 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

◆ apply() [1/3]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::apply ( const Array< H > &  a,
Mapping< Real, 2 >  fncconst H & 
)
inlineinherited

Application operator to each component.

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

  @param a   Array with elements of type H
  @param fnc Function which maps from H to F

Definition at line 233 of file array.hh.

◆ apply() [2/3]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::apply ( const Array< H > &  a,
Mapping< Real, 2 >  fncconst H &, const F & 
)
inlineinherited

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.

  @param a   Array with elements of type H
  @param fnc Function which maps from (H,F) to F

Definition at line 249 of file array.hh.

◆ apply() [3/3]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::apply ( Mapping< Real, 2 > &  fncF &)
inlineinherited

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 219 of file array.hh.

◆ cursize()

uint concepts::Array< Mapping< Real, 2 > >::cursize
inlineinherited

Returns the size of the allocated memory.

Definition at line 262 of file array.hh.

◆ info()

std::ostream & concepts::Array< Mapping< Real, 2 > >::info ( std::ostream &  os) const
inherited

Definition at line 270 of file array.hh.

◆ memory()

int concepts::Array< Mapping< Real, 2 > >::memory
inlineinherited

Returns the memory usage in bytes.

Definition at line 265 of file array.hh.

◆ operator const Mapping< Real, 2 > *()

concepts::Array< Mapping< Real, 2 > >::operator const Mapping< Real, 2 > *
inlineinherited

Returns a pointer to the array.

Definition at line 133 of file array.hh.

◆ operator Mapping< Real, 2 > *()

concepts::Array< Mapping< Real, 2 > >::operator Mapping< Real, 2 > *
inlineinherited

Returns a pointer to the array.

Definition at line 131 of file array.hh.

◆ operator*=() [1/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator*= ( const Array< H > &  a)
inlineinherited

Multiplication operator.

Definition at line 158 of file array.hh.

◆ operator*=() [2/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator*= ( const G  n)
inlineinherited

Scaling operator.

Definition at line 150 of file array.hh.

◆ operator+=() [1/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator+= ( const Array< H > &  a)
inlineinherited

Addition operator.

Definition at line 191 of file array.hh.

◆ operator+=() [2/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator+= ( const Mapping< Real, 2 >  n)
inlineinherited

Addition operator.

Definition at line 185 of file array.hh.

◆ operator-()

Array<Mapping< Real, 2 > > concepts::Array< Mapping< Real, 2 > >::operator-
inlineinherited

Negation operator.

Definition at line 211 of file array.hh.

◆ operator-=() [1/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator-= ( const Array< H > &  a)
inlineinherited

Subtraction operator.

Definition at line 204 of file array.hh.

◆ operator-=() [2/2]

Array<Mapping< Real, 2 > >& concepts::Array< Mapping< Real, 2 > >::operator-= ( const Mapping< Real, 2 >  n)
inlineinherited

Subtraction operator.

Definition at line 198 of file array.hh.

◆ operator[]() [1/2]

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

Index operator.

Definition at line 142 of file array.hh.

◆ operator[]() [2/2]

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

Index operator.

Definition at line 136 of file array.hh.

◆ resize()

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.

Definition at line 122 of file array.hh.

◆ resizePreserve()

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.

Definition at line 126 of file array.hh.

◆ reverse()

Array< Mapping< Real, 2 > > & concepts::Array< Mapping< Real, 2 > >::reverse
inherited

Reverse the order of the entries.

Definition at line 268 of file array.hh.

◆ size()

uint concepts::Array< Mapping< Real, 2 > >::size
inlineinherited

Returns the requested size of the array.

Definition at line 259 of file array.hh.

◆ zeros()

void concepts::Array< Mapping< Real, 2 > >::zeros
inlineinherited

Fills the memory with zeros.

Definition at line 128 of file array.hh.

Member Data Documentation

◆ data_

Mapping< Real, 2 > * concepts::Array< Mapping< Real, 2 > >::data_
protectedinherited

Data.

Definition at line 273 of file array.hh.

◆ n_

uint concepts::Array< Mapping< Real, 2 > >::n_
protectedinherited

Requested size of the array.

Definition at line 277 of file array.hh.

◆ size_

uint concepts::Array< Mapping< Real, 2 > >::size_
protectedinherited

Current real size of the array.

Definition at line 275 of file array.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich