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

Rectangular< S > Class Template Reference

#include <Matrix.h>

List of all members.


Detailed Description

template<typename S>
class Rectangular< S >

Storage allocation and entries for rectangular matrices.
Parameters:
S the type of matrix entries.

Definition at line 627 of file Matrix.h.

Public Types

typedef Rectangular< S > TransposeType

Public Member Functions

int rows () const
int cols () const
void setCols (int nCols)
S ** allocate (int nRows, int nCols)
 Rectangular (int nRows, int nCols)
 ~Rectangular ()
S & entry (int i, int j)
const S & entry (int i, int j) const
int rowBegin (int i) const
int rowEnd (int i) const
int colBegin (int j) const
int colEnd (int j) const

Protected Attributes

int rows_
int cols_
S ** dptr


Member Typedef Documentation

template<typename S>
typedef Rectangular<S> Rectangular< S >::TransposeType
 

Reimplemented in Matrix< Real, Rectangular< Real > >.

Definition at line 638 of file Matrix.h.


Constructor & Destructor Documentation

template<typename S>
Rectangular< S >::Rectangular int    nRows,
int    nCols
[inline]
 

Parameters:
nRows number of rows.
nCols number of columns.

Definition at line 668 of file Matrix.h.

template<typename S>
Rectangular< S >::~Rectangular   [inline]
 

Definition at line 672 of file Matrix.h.


Member Function Documentation

template<typename S>
int Rectangular< S >::rows   const [inline]
 

Number of rows.

Definition at line 641 of file Matrix.h.

template<typename S>
int Rectangular< S >::cols   const [inline]
 

Number of columns.

Definition at line 643 of file Matrix.h.

template<typename S>
void Rectangular< S >::setCols int    nCols [inline]
 

Set field for number of columns. No action on memory.

Definition at line 645 of file Matrix.h.

template<typename S>
S** Rectangular< S >::allocate int    nRows,
int    nCols
[inline]
 

Memory allocation.

Parameters:
nRows number of rows.
nCols number of columns.

Definition at line 652 of file Matrix.h.

template<typename S>
S& Rectangular< S >::entry int    i,
int    j
[inline]
 

Subscripting from zero index base.

Definition at line 676 of file Matrix.h.

template<typename S>
const S& Rectangular< S >::entry int    i,
int    j
const [inline]
 

Subscripting from zero index base.

Definition at line 678 of file Matrix.h.

template<typename S>
int Rectangular< S >::rowBegin int    i const [inline]
 

Beginning of nonzero entries in row i relative to zero index base.

Definition at line 682 of file Matrix.h.

template<typename S>
int Rectangular< S >::rowEnd int    i const [inline]
 

End of nonzero entries in row i relative to zero index base.

Definition at line 685 of file Matrix.h.

template<typename S>
int Rectangular< S >::colBegin int    j const [inline]
 

Beginning of nonzero entries in column j relative to zero index base.

Definition at line 688 of file Matrix.h.

template<typename S>
int Rectangular< S >::colEnd int    j const [inline]
 

End of nonzero entries in column j relative to zero index base.

Definition at line 691 of file Matrix.h.


Member Data Documentation

template<typename S>
int Rectangular< S >::rows_ [protected]
 

Definition at line 631 of file Matrix.h.

template<typename S>
int Rectangular< S >::cols_ [protected]
 

Definition at line 631 of file Matrix.h.

template<typename S>
S** Rectangular< S >::dptr [protected]
 

Definition at line 633 of file Matrix.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 22 02:16:33 2003 for Libor-Library by doxygen1.3-rc3