A column of a T matrix. More...

#include <tmatrix.hh>

Inheritance diagram for concepts::TColumnTensor< F, dim >:
concepts::TColumn< F >

Public Member Functions

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

Protected Member Functions

virtual ::std::ostream & info (::std::ostream &os) const
 
uint successors_ () const
 number of successors More...
 

Protected Attributes

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

Private Member Functions

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

Private Attributes

uint idx_
 Index of the column in a matrix. More...
 
TColumn< F > * lnk_
 Pointer to the next column in a linked list. More...
 
uint n_ [dim]
 Number of rows. More...
 

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 134 of file tmatrix.hh.

Constructor & Destructor Documentation

◆ TColumnTensor() [1/4]

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)

◆ TColumnTensor() [2/4]

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!

◆ TColumnTensor() [3/4]

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.

◆ TColumnTensor() [4/4]

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

◆ append()

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

Appends a linked list of TColumns at the end.

◆ clear()

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

Deletes all member of the linked list.

◆ clone()

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 >.

◆ index()

template<class F >
uint concepts::TColumn< F >::index ( ) const
inlineinherited

Returns the index of the column in a matrix.

Definition at line 76 of file tmatrix.hh.

◆ info()

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

◆ link()

template<class F >
TColumn<F>* concepts::TColumn< F >::link ( ) const
inlineinherited

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

Definition at line 79 of file tmatrix.hh.

◆ n()

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

Returns the number of rows as an array.

Definition at line 175 of file tmatrix.hh.

◆ operator[]() [1/4]

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 165 of file tmatrix.hh.

◆ operator[]() [2/4]

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 154 of file tmatrix.hh.

◆ operator[]() [3/4]

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

Returns the ith entry in the column.

Definition at line 68 of file tmatrix.hh.

◆ operator[]() [4/4]

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

Returns the ith entry in the column.

Definition at line 66 of file tmatrix.hh.

◆ recursiveOut_()

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

◆ successors_()

template<class F >
uint concepts::TColumn< F >::successors_ ( ) const
protectedinherited

number of successors

◆ values() [1/2]

template<class F >
F* concepts::TColumn< F >::values ( )
inlineinherited

Returns the array of entries.

Definition at line 73 of file tmatrix.hh.

◆ values() [2/2]

template<class F >
const F* concepts::TColumn< F >::values ( ) const
inlineinherited

Returns the array of entries.

Definition at line 71 of file tmatrix.hh.

Member Data Documentation

◆ idx_

template<class F >
uint concepts::TColumn< F >::idx_
privateinherited

Index of the column in a matrix.

Definition at line 106 of file tmatrix.hh.

◆ lnk_

template<class F >
TColumn<F>* concepts::TColumn< F >::lnk_
privateinherited

Pointer to the next column in a linked list.

Definition at line 100 of file tmatrix.hh.

◆ n_

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

Number of rows.

Definition at line 182 of file tmatrix.hh.

◆ val_

template<class F >
Array<F> concepts::TColumn< F >::val_
protectedinherited

The data of the column itself.

Definition at line 97 of file tmatrix.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