Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBmatrixDsc Class Template Reference

Matrix descriptor **. More...

#include <CTBmatrixDsc.hxx>

Inheritance diagram for CTBmatrixDsc:

Inheritance graph
[legend]
Collaboration diagram for CTBmatrixDsc:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTBmatrixDsc ()
 CTBmatrixDsc (T *p_data, CTBint i_nrow, CTBint i_ncol)
 CTBmatrixDsc (T *p_data, CTBint i_nrow, CTBint i_ncol, CTBint i_strrow, CTBint i_strcol=1)
 CTBmatrixDsc (T *p_data, CTBint i_ncol, const CTBrange &rrow, const CTBrange &rcol)
TData () const
CTBvectorDsc< TRow (CTBint i_row) const
CTBvectorDsc< TColumn (CTBint i_col) const
CTBvectorDsc< TDiagonal () const
CTBvectorDsc< Toperator[] (CTBint i_row) const
Toperator() (CTBint i_row, CTBint i_col) const
const CTBmatrixDsc< T > & operator= (const T &rhs) const
const CTBmatrixDsc< T > & operator= (const CTBmatrixDsc< T > &rhs) const
const CTBmatrixDsc< T > & operator= (const CTBmatrixCDsc< T > &rhs) const

Detailed Description

template<class T>
class CTBmatrixDsc< T >

Matrix descriptor **.

Definition at line 66 of file CTBmatrixDsc.hxx.


Constructor & Destructor Documentation

template<class T>
CTBmatrixDsc< T >::CTBmatrixDsc [inline]
 

Construct descriptor for empty (size=0) matrix.

Definition at line 294 of file CTBmatrixDsc.icc.

template<class T>
CTBmatrixDsc< T >::CTBmatrixDsc T * p_data,
CTBint i_nrow,
CTBint i_ncol
[inline]
 

Construct descriptor from data pointer and dimensions.

A compact matrix at p_data with i_nrow rows and i_ncol columns in normal C storage order is assumed. The row stride is thus set to i_ncol and the column stride to 1.

The value of p_data and a null is stored is ignored if i_nrow or i_ncol = 0. This simplifies the generation of descriptors in cases where the matrix is empty and prevents under all circumstances that pathological data pointers are passed around.

Definition at line 312 of file CTBmatrixDsc.icc.

template<class T>
CTBmatrixDsc< T >::CTBmatrixDsc T * p_data,
CTBint i_nrow,
CTBint i_ncol,
CTBint i_strrow,
CTBint i_strcol = 1
[inline]
 

Construct descriptor from data pointer, dimensions and strides.

This allows to represent a non-compact matrix in any storage order. p_data points to element (0,0), while p_data[i_strrow] refers to element (1,0) and p_data[i_strcol] to element (0,1).

The value of p_data and a null is stored is ignored if i_nrow or i_ncol = 0. This simplifies the generation of descriptors in cases where the matrix is empty and prevents under all circumstances that pathological data pointers are passed around.

Definition at line 330 of file CTBmatrixDsc.icc.

template<class T>
CTBmatrixDsc< T >::CTBmatrixDsc T * p_data,
CTBint i_ncol,
const CTBrange & rrow,
const CTBrange & rcol
[inline]
 

Construct descriptor from data pointer, number of columns and ranges.

Definition at line 339 of file CTBmatrixDsc.icc.


Member Function Documentation

template<class T>
T * CTBmatrixDsc< T >::Data const [inline]
 

Returns pointer to first element of matrix.

Reimplemented from CTBmatrixCDsc.

Definition at line 349 of file CTBmatrixDsc.icc.

template<class T>
CTBvectorDsc< T > CTBmatrixDsc< T >::Row CTBint i_row const [inline]
 

Access row (index checked if CTB__IndexCheck defined).

Reimplemented from CTBmatrixCDsc.

Definition at line 358 of file CTBmatrixDsc.icc.

template<class T>
CTBvectorDsc< T > CTBmatrixDsc< T >::Column CTBint i_col const [inline]
 

Access column (index checked if CTB__IndexCheck defined).

Reimplemented from CTBmatrixCDsc.

Definition at line 370 of file CTBmatrixDsc.icc.

template<class T>
CTBvectorDsc< T > CTBmatrixDsc< T >::Diagonal const [inline]
 

Access diagonal.

Reimplemented from CTBmatrixCDsc.

Definition at line 382 of file CTBmatrixDsc.icc.

template<class T>
CTBvectorDsc< T > CTBmatrixDsc< T >::operator[] CTBint i_row const [inline]
 

Access row (index checked if CTB__IndexCheck defined).

Reimplemented from CTBmatrixCDsc.

Definition at line 391 of file CTBmatrixDsc.icc.

template<class T>
T & CTBmatrixDsc< T >::operator() CTBint i_row,
CTBint i_col
const [inline]
 

Access element (index checked if CTB__IndexCheck defined).

Reimplemented from CTBmatrixCDsc.

Definition at line 403 of file CTBmatrixDsc.icc.

template<class T>
const CTBmatrixDsc< T > & CTBmatrixDsc< T >::operator= const T & rhs const
 

Set all elements to the scalar value rhs.

Definition at line 416 of file CTBmatrixDsc.icc.

Referenced by operator=().

template<class T>
const CTBmatrixDsc< T > & CTBmatrixDsc< T >::operator= const CTBmatrixDsc< T > & rhs const
 

Copy elements rhs (conformity checked if CTB__ConformityCheck).

Definition at line 442 of file CTBmatrixDsc.icc.

template<class T>
const CTBmatrixDsc< T > & CTBmatrixDsc< T >::operator= const CTBmatrixCDsc< T > & rhs const
 

Copy elements rhs (conformity checked if CTB__ConformityCheck).

Definition at line 452 of file CTBmatrixDsc.icc.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:13:56 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001