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

Public Member Functions | Protected Attributes
concepts::ArrayMatrixTranspose< F, dim > Class Template Reference

Class, which calculates the transpose matrix for each element of the array. More...

#include <arrays.hh>

Inheritance diagram for concepts::ArrayMatrixTranspose< F, dim >:
Inheritance graph
[legend]
Collaboration diagram for concepts::ArrayMatrixTranspose< F, dim >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Array< concepts::Mapping< F,
dim > > & 
apply (concepts::Mapping< F, dim > &fnc(concepts::Mapping< F, dim > &))
 Application operator to each component, e.g.
Array< concepts::Mapping< F,
dim > > & 
apply (const Array< H > &a, concepts::Mapping< F, dim >fnc(const H &))
 Application operator to each component.
Array< concepts::Mapping< F,
dim > > & 
apply (const Array< H > &a, concepts::Mapping< F, dim >fnc(const H &, const concepts::Mapping< F, dim > &))
 Application operator to each component.
 ArrayMatrixTranspose (const concepts::Array< concepts::Mapping< F, dim > > *array)
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 concepts::Mapping< F, dim > * ()
 Returns a pointer to the array.
 operator const concepts::Mapping< F, dim > * () const
 Returns a pointer to the array.
Array< concepts::Mapping< F,
dim > > & 
operator*= (const G n)
 Scaling operator.
Array< concepts::Mapping< F,
dim > > & 
operator*= (const Array< H > &a)
 Multiplication operator.
Array< concepts::Mapping< F,
dim > > & 
operator+= (const concepts::Mapping< F, dim >n)
 Addition operator.
Array< concepts::Mapping< F,
dim > > & 
operator+= (const Array< H > &a)
 Addition operator.
Array< concepts::Mapping< F,
dim > > 
operator- () const
 Negation operator.
Array< concepts::Mapping< F,
dim > > & 
operator-= (const Array< H > &a)
 Subtraction operator.
Array< concepts::Mapping< F,
dim > > & 
operator-= (const concepts::Mapping< F, dim >n)
 Subtraction operator.
const concepts::Mapping< F, dim > & operator[] (const int i) const
 Index operator.
concepts::Mapping< F, dim > & operator[] (const int i)
 Index operator.
void resize (const uint sz)
 Resizes the array.
void resizePreserve (const uint sz)
 Resizes the array.
Array< concepts::Mapping< F,
dim > > & 
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

concepts::Mapping< F, dim > * data_
 Data.
uint n_
 Requested size of the array.
uint size_
 Current real size of the array.

Detailed Description

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

Class, which calculates the transpose matrix for each element of the array.

Author:
Kersten Schmidt, 2006

Definition at line 63 of file arrays.hh.


Constructor & Destructor Documentation

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

Definition at line 66 of file arrays.hh.

Here is the call graph for this function:


Member Function Documentation

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

Application operator to each component, e.g.

std::sin or std::conj

Definition at line 215 of file array.hh.

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

Returns the size of the allocated memory.

Definition at line 258 of file array.hh.

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

Returns the memory usage in bytes.

Definition at line 261 of file array.hh.

concepts::Array< concepts::Mapping< F, dim > >::operator concepts::Mapping< F, dim > * ( ) [inline, inherited]

Returns a pointer to the array.

Definition at line 127 of file array.hh.

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

Returns a pointer to the array.

Definition at line 129 of file array.hh.

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

Scaling operator.

Definition at line 146 of file array.hh.

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

Multiplication operator.

Definition at line 154 of file array.hh.

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

Addition operator.

Definition at line 187 of file array.hh.

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

Addition operator.

Definition at line 181 of file array.hh.

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

Negation operator.

Definition at line 207 of file array.hh.

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

Subtraction operator.

Definition at line 200 of file array.hh.

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

Subtraction operator.

Definition at line 194 of file array.hh.

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

Index operator.

Definition at line 132 of file array.hh.

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

Index operator.

Definition at line 138 of file array.hh.

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

Reverse the order of the entries.

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

Returns the requested size of the array.

Definition at line 255 of file array.hh.

void concepts::Array< concepts::Mapping< F, dim > >::zeros ( ) [inline, inherited]

Fills the memory with zeros.

Definition at line 124 of file array.hh.


Member Data Documentation

concepts::Mapping< F, dim > * concepts::Array< concepts::Mapping< F, dim > >::data_ [protected, inherited]

Data.

Definition at line 269 of file array.hh.

uint concepts::Array< concepts::Mapping< F, dim > >::n_ [protected, inherited]

Requested size of the array.

Definition at line 273 of file array.hh.

uint concepts::Array< concepts::Mapping< F, dim > >::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)