Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::ArrayDeterminant< F, dim > Class Template Reference

#include <arrays.hh>

Inheritance diagram for concepts::ArrayDeterminant< F, dim >:
concepts::Array< F >

Public Member Functions

 ArrayDeterminant (const concepts::Array< concepts::Mapping< F, dim > > *array)
 
void resize (const uint sz)
 
void resizePreserve (const uint sz)
 
void zeros ()
 Fills the memory with zeros.
 
 operator F* ()
 Returns a pointer to the array.
 
 operator const F * () const
 Returns a pointer to the array.
 
const F & operator[] (const int i) const
 Index operator.
 
F & operator[] (const int i)
 Index operator.
 
template<class G >
Array< F > & operator*= (const G n)
 Scaling operator.
 
template<class H >
Array< F > & operator*= (const Array< H > &a)
 Multiplication operator.
 
Array< F > & operator+= (const F n)
 Addition operator.
 
template<class H >
Array< F > & operator+= (const Array< H > &a)
 Addition operator.
 
Array< F > & operator-= (const F n)
 Subtraction operator.
 
template<class H >
Array< F > & operator-= (const Array< H > &a)
 Subtraction operator.
 
Array< F > operator- () const
 Negation operator.
 
Array< F > & apply (F &fnc(F &))
 
template<class H >
Array< F > & apply (const Array< H > &a, F fnc(const H &))
 
template<class H >
Array< F > & apply (const Array< H > &a, F fnc(const H &, const F &))
 
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< F > & reverse ()
 Reverse the order of the entries.
 
std::ostream & info (std::ostream &os) const
 

Protected Attributes

F * data_
 Data.
 
uint size_
 Current real size of the array.
 
uint n_
 Requested size of the array.
 

Detailed Description

template<class F, int dim>
class concepts::ArrayDeterminant< F, dim >

Class, which calculates the determinant for each element of the array

Author
Kersten Schmidt, 2006

Definition at line 21 of file arrays.hh.

Constructor & Destructor Documentation

◆ ArrayDeterminant()

template<class F , int dim>
concepts::ArrayDeterminant< F, dim >::ArrayDeterminant ( const concepts::Array< concepts::Mapping< F, dim > > *  array)
inline

Definition at line 23 of file arrays.hh.

Member Function Documentation

◆ apply() [1/3]

template<class F >
template<class H >
Array< F > & concepts::Array< F >::apply ( const Array< H > &  a,
F   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]

template<class F >
template<class H >
Array< F > & concepts::Array< F >::apply ( const Array< H > &  a,
F   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]

template<class F >
Array< F > & concepts::Array< F >::apply ( F &  fncF &)
inlineinherited

Application operator to each component, e.g. std::sin or std::conj

Definition at line 219 of file array.hh.

◆ cursize()

template<class F >
uint concepts::Array< F >::cursize ( ) const
inlineinherited

Returns the size of the allocated memory.

Definition at line 262 of file array.hh.

◆ info()

template<class F >
std::ostream & concepts::Array< F >::info ( std::ostream &  os) const
inherited

Definition at line 302 of file array.hh.

◆ memory()

template<class F >
int concepts::Array< F >::memory ( ) const
inlineinherited

Returns the memory usage in bytes.

Definition at line 265 of file array.hh.

◆ operator const F *()

template<class F >
concepts::Array< F >::operator const F * ( ) const
inlineinherited

Returns a pointer to the array.

Definition at line 133 of file array.hh.

◆ operator F*()

template<class F >
concepts::Array< F >::operator F* ( )
inlineinherited

Returns a pointer to the array.

Definition at line 131 of file array.hh.

◆ operator*=() [1/2]

template<class F >
template<class H >
Array< F > & concepts::Array< F >::operator*= ( const Array< H > &  a)
inlineinherited

Multiplication operator.

Definition at line 158 of file array.hh.

◆ operator*=() [2/2]

template<class F >
template<class G >
Array< F > & concepts::Array< F >::operator*= ( const G  n)
inlineinherited

Scaling operator.

Definition at line 150 of file array.hh.

◆ operator+=() [1/2]

template<class F >
template<class H >
Array< F > & concepts::Array< F >::operator+= ( const Array< H > &  a)
inlineinherited

Addition operator.

Definition at line 191 of file array.hh.

◆ operator+=() [2/2]

template<class F >
Array< F > & concepts::Array< F >::operator+= ( const F  n)
inlineinherited

Addition operator.

Definition at line 185 of file array.hh.

◆ operator-()

template<class F >
Array< F > concepts::Array< F >::operator- ( ) const
inlineinherited

Negation operator.

Definition at line 211 of file array.hh.

◆ operator-=() [1/2]

template<class F >
template<class H >
Array< F > & concepts::Array< F >::operator-= ( const Array< H > &  a)
inlineinherited

Subtraction operator.

Definition at line 204 of file array.hh.

◆ operator-=() [2/2]

template<class F >
Array< F > & concepts::Array< F >::operator-= ( const F  n)
inlineinherited

Subtraction operator.

Definition at line 198 of file array.hh.

◆ operator[]() [1/2]

template<class F >
F & concepts::Array< F >::operator[] ( const int  i)
inlineinherited

Index operator.

Definition at line 142 of file array.hh.

◆ operator[]() [2/2]

template<class F >
const F & concepts::Array< F >::operator[] ( const int  i) const
inlineinherited

Index operator.

Definition at line 136 of file array.hh.

◆ resize()

template<class F >
void concepts::Array< F >::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 281 of file array.hh.

◆ resizePreserve()

template<class F >
void concepts::Array< F >::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 290 of file array.hh.

◆ reverse()

template<class F >
Array< F > & concepts::Array< F >::reverse ( )
inherited

Reverse the order of the entries.

Definition at line 311 of file array.hh.

◆ size()

template<class F >
uint concepts::Array< F >::size ( ) const
inlineinherited

Returns the requested size of the array.

Examples
hpFEM3d-EV.cc.

Definition at line 259 of file array.hh.

◆ zeros()

template<class F >
void concepts::Array< F >::zeros ( )
inlineinherited

Fills the memory with zeros.

Definition at line 128 of file array.hh.

Member Data Documentation

◆ data_

template<class F >
F* concepts::Array< F >::data_
protectedinherited

Data.

Definition at line 273 of file array.hh.

◆ n_

template<class F >
uint concepts::Array< F >::n_
protectedinherited

Requested size of the array.

Definition at line 277 of file array.hh.

◆ size_

template<class F >
uint concepts::Array< F >::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: