A column of a T matrix. More...

#include <analytical.hh>

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

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 TColumn< F > * 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...
 
uint n () const
 Returns the number of rows. 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...
 
 TColumn ()
 
 TColumn (const TColumn< F > &t)
 Copy constructor. More...
 
 TColumn (uint n, uint idx, TColumn< F > *lnk=0, F def=0)
 Constructor. More...
 
F * values ()
 Returns the array of entries. More...
 
const F * values () const
 Returns the array of entries. More...
 
virtual ~TColumn ()
 

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 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_
 Number of rows. More...
 

Detailed Description

template<class F>
class concepts::TColumn< F >

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.

See also
TMatrixBase

Definition at line 18 of file analytical.hh.

Constructor & Destructor Documentation

◆ TColumn() [1/3]

template<class F >
concepts::TColumn< F >::TColumn ( )
inline
Deprecated:
this constructor does not seem to make sense

Definition at line 51 of file tmatrix.hh.

◆ TColumn() [2/3]

template<class F >
concepts::TColumn< F >::TColumn ( uint  n,
uint  idx,
TColumn< F > *  lnk = 0,
def = 0 
)

Constructor.

Parameters
nNumber of rows
idxIndex of the column in a T matrix
lnkPointer to the next column (linked list)

◆ TColumn() [3/3]

template<class F >
concepts::TColumn< F >::TColumn ( const TColumn< F > &  t)

Copy constructor.

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

◆ ~TColumn()

template<class F >
virtual concepts::TColumn< F >::~TColumn ( )
virtual

Member Function Documentation

◆ append()

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

Appends a linked list of TColumns at the end.

◆ clear()

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

Deletes all member of the linked list.

◆ clone()

template<class F >
virtual TColumn<F>* concepts::TColumn< F >::clone ( ) const
virtual

Returns a copy of itself.

Reimplemented in concepts::TColumnTensor< F, dim >, and concepts::TColumnTensor< bool, 2 >.

◆ index()

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

Returns the index of the column in a matrix.

Definition at line 76 of file tmatrix.hh.

◆ info()

template<class F >
virtual ::std::ostream& concepts::TColumn< F >::info ( ::std::ostream &  os) const
protected

◆ link()

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

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

Definition at line 79 of file tmatrix.hh.

◆ n()

template<class F >
uint concepts::TColumn< F >::n ( ) const
inline

Returns the number of rows.

Definition at line 88 of file tmatrix.hh.

◆ operator[]() [1/2]

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

Returns the ith entry in the column.

Definition at line 68 of file tmatrix.hh.

◆ operator[]() [2/2]

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

Returns the ith entry in the column.

Definition at line 66 of file tmatrix.hh.

◆ successors_()

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

number of successors

◆ values() [1/2]

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

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
inline

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_
private

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_
private

Pointer to the next column in a linked list.

Definition at line 100 of file tmatrix.hh.

◆ n_

template<class F >
uint concepts::TColumn< F >::n_
private

Number of rows.

Definition at line 103 of file tmatrix.hh.

◆ val_

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

The data of the column itself.

Definition at line 97 of file tmatrix.hh.


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