Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

matrix.h File Reference


Detailed Description

Wrapper for matrix classes to make it simpler to switch between different underlying implementations.

Header
/u/nn/cvsroot/lissom/src/matrix.h,v 1.14 2002/10/18 20:44:09 jbednar Exp

Definition in file matrix.h.

#include <numeric>
#include "tnt/tnt.h"
#include "tnt/cmat.h"
#include "tnt/vec.h"
#include "tnt/region1d.h"
#include "tnt/region2d.h"

Include dependency graph for matrix.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  mat
namespace  mtl
namespace  TNT

Compounds

struct  MatrixType
 Wrapper to disguise the actual type of matrices while allowing the value type to be templated; simple typedefs wouldn't allow that. More...


Defines

#define USE_TNT_MATRIX
#define num_cols   ncols
 Hack to substitute MTL's spelling of the dimension size functions.

#define num_rows   nrows
#define SubMatrixType   const_Region
 Type of a submatrix or region.

#define MatIndex(i)   (i+1)
 Wrapper for a matrix index.

#define UpperBound(i)   (i)
 Wrapper for the upper bound of a range.

#define MSEQ(container)   (container).begin(),(container).end()
 Iterator pair for a matrix; works for any normal container.

#define CMSEQ(container)   (container).begin(),(container).end()
 Iterator pair for a constant matrix; works for any normal container.

#define MBEGIN(container)   (container).begin()
 Begin iterator for a matrix; works for any normal container.

#define CMBEGIN(container)   (container).begin()
 Begin iterator for a constant matrix; works for any normal container.


Define Documentation

#define MatIndex      (i+1)
 

Wrapper for a matrix index.

Appropriate for TNT's 1-based operator() (blame Fortran)

Definition at line 68 of file matrix.h.

Referenced by mat::elem(), mat::MatrixAdapter< M, value_type >::operator()(), and mat::submatrix().

#define UpperBound      (i)
 

Wrapper for the upper bound of a range.

TNT's is inclusive.

Definition at line 70 of file matrix.h.

Referenced by mat::submatrix().


Generated on Mon Jan 20 02:36:18 2003 for RF-LISSOM by doxygen1.3-rc2