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

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

A column of a T matrix. More...

#include <tmatrix.hh>

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

List of all members.

Public Member Functions

void append (TColumn< F > *T)
 Appends a linked list of TColumns at the end.
void clear ()
 Deletes all member of the linked list.
virtual TColumnTensor< F, dim > * clone () const
 Returns a copy of itself.
uint index () const
 Returns the index of the column in a matrix.
TColumn< F > * link () const
 Returns the pointer to the next column of the linked list.
const uint * n () const
 Returns the number of rows as an array.
operator[] (uint i) const
 Returns the ith entry in the column.
F & operator[] (uint i)
 Returns the ith entry in the column.
operator[] (uint *i) const
 Returns the ith entry in the column. i an array of size dim.
F & operator[] (uint *i)
 Returns the ith entry in the column. i an array of size dim.
 TColumnTensor (const TColumnTensor< F, dim > &t, const uint *n)
 Transformation constructor to higher number of rows.
 TColumnTensor (const uint *n, const uint idx, TColumn< F > *lnk=0)
 Constructor.
 TColumnTensor (const TColumnTensor< F, dim > &t)
 Copy constructor The link to the next element in the linear list (lnk_) is not copied!
 TColumnTensor (const TColumnBlock< F, dim > &t, uint k)
 Copy constructor, takes /c k .th block in /c t.
const F * values () const
 Returns the array of entries.
F * values ()
 Returns the array of entries.

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
uint successors_ () const
 number of successors

Protected Attributes

Array< F > val_
 The data of the column itself.

Private Member Functions

void recursiveOut_ (const int d, uint *n, std::ostream &os) const

Private Attributes

uint n_ [dim]
 Number of rows.

Detailed Description

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

A column of a T matrix.

More than one T column are arranged in a linked list. These columns are inserted into the T matrix.

This T column can be used for 2 and 3 dimensional problems where the T column needs to have a tensorized form (ie. for the application of an S matrix).

See also:
TMatrixBase
SMatrixBase
Author:
Philipp Frauenfelder, 2001.

Definition at line 125 of file tmatrix.hh.


Constructor & Destructor Documentation

template<class F, int dim>
concepts::TColumnTensor< F, dim >::TColumnTensor ( const uint *  n,
const uint  idx,
TColumn< F > *  lnk = 0 
)

Constructor.

Parameters:
nAn array of size dim with the lengths of the relevant parts
idxIndex of the column in a T matrix
lnkPointer to the next column (linked list)
template<class F, int dim>
concepts::TColumnTensor< F, dim >::TColumnTensor ( const TColumnTensor< F, dim > &  t)

Copy constructor The link to the next element in the linear list (lnk_) is not copied!

template<class F, int dim>
concepts::TColumnTensor< F, dim >::TColumnTensor ( const TColumnBlock< F, dim > &  t,
uint  k 
)

Copy constructor, takes /c k .th block in /c t.

template<class F, int dim>
concepts::TColumnTensor< F, dim >::TColumnTensor ( const TColumnTensor< F, dim > &  t,
const uint *  n 
)

Transformation constructor to higher number of rows.


Member Function Documentation

template<class F>
void concepts::TColumn< F >::append ( TColumn< F > *  T) [inherited]

Appends a linked list of TColumns at the end.

template<class F>
void concepts::TColumn< F >::clear ( ) [inherited]

Deletes all member of the linked list.

template<class F, int dim>
virtual TColumnTensor<F, dim>* concepts::TColumnTensor< F, dim >::clone ( ) const [virtual]

Returns a copy of itself.

Reimplemented from concepts::TColumn< F >.

template<class F>
uint concepts::TColumn< F >::index ( ) const [inline, inherited]

Returns the index of the column in a matrix.

Definition at line 67 of file tmatrix.hh.

template<class F, int dim>
virtual std::ostream& concepts::TColumnTensor< F, dim >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::TColumn< F >.

template<class F>
TColumn<F>* concepts::TColumn< F >::link ( ) const [inline, inherited]

Returns the pointer to the next column of the linked list.

Definition at line 70 of file tmatrix.hh.

template<class F, int dim>
const uint* concepts::TColumnTensor< F, dim >::n ( ) const [inline]

Returns the number of rows as an array.

Reimplemented from concepts::TColumn< F >.

Definition at line 166 of file tmatrix.hh.

template<class F, int dim>
F& concepts::TColumnTensor< F, dim >::operator[] ( uint *  i) [inline]

Returns the ith entry in the column. i an array of size dim.

Definition at line 156 of file tmatrix.hh.

template<class F>
F& concepts::TColumn< F >::operator[] ( uint  i) [inline, inherited]

Returns the ith entry in the column.

Definition at line 59 of file tmatrix.hh.

template<class F>
F concepts::TColumn< F >::operator[] ( uint  i) const [inline, inherited]

Returns the ith entry in the column.

Definition at line 57 of file tmatrix.hh.

template<class F, int dim>
F concepts::TColumnTensor< F, dim >::operator[] ( uint *  i) const [inline]

Returns the ith entry in the column. i an array of size dim.

Definition at line 145 of file tmatrix.hh.

template<class F, int dim>
void concepts::TColumnTensor< F, dim >::recursiveOut_ ( const int  d,
uint *  n,
std::ostream &  os 
) const [private]
template<class F>
uint concepts::TColumn< F >::successors_ ( ) const [protected, inherited]

number of successors

template<class F>
const F* concepts::TColumn< F >::values ( ) const [inline, inherited]

Returns the array of entries.

Definition at line 62 of file tmatrix.hh.

template<class F>
F* concepts::TColumn< F >::values ( ) [inline, inherited]

Returns the array of entries.

Definition at line 64 of file tmatrix.hh.


Member Data Documentation

template<class F, int dim>
uint concepts::TColumnTensor< F, dim >::n_[dim] [private]

Number of rows.

Reimplemented from concepts::TColumn< F >.

Definition at line 173 of file tmatrix.hh.

template<class F>
Array<F> concepts::TColumn< F >::val_ [protected, inherited]

The data of the column itself.

Definition at line 88 of file tmatrix.hh.


The documentation for this class was generated from the following file:

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