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

UpperTriangular< S > Class Template Reference

#include <Matrix.h>

Inheritance diagram for UpperTriangular< S >:

Matrix< S, UpperTriangular< S > > UTRMatrix< S > List of all members.

Detailed Description

template<typename S>
class UpperTriangular< S >

Storage allocation and subscripting for square upper triangular matrices.
Parameters:
S the type of matrix entries.

Definition at line 479 of file Matrix.h.

Public Types

typedef LowerTriangular< S > TransposeType

Public Member Functions

int rows () const
int cols () const
void setCols (int)
S ** allocate (int nRows, int nCols)
 UpperTriangular (int nRows, int nCols)
 ~UpperTriangular ()
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 dim
S ** dptr


Member Typedef Documentation

template<typename S>
typedef LowerTriangular<S> UpperTriangular< S >::TransposeType
 

Reimplemented in Matrix< S, UpperTriangular< S > >, and Matrix< Real, UpperTriangular< Real > >.

Definition at line 488 of file Matrix.h.


Constructor & Destructor Documentation

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

Number of rows must equal number of columns.

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

Definition at line 519 of file Matrix.h.

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

Definition at line 521 of file Matrix.h.


Member Function Documentation

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

Number of rows.

Definition at line 491 of file Matrix.h.

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

Number of columns.

Definition at line 493 of file Matrix.h.

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

Empty function. Action needed only in nonsquare case.

Definition at line 495 of file Matrix.h.

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

Memory allocation.

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

Definition at line 501 of file Matrix.h.

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

Subscripting from zero index base: .

Definition at line 526 of file Matrix.h.

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

Subscripting from zero index base: .

Definition at line 528 of file Matrix.h.

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

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

Definition at line 532 of file Matrix.h.

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

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

Definition at line 535 of file Matrix.h.

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

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

Definition at line 538 of file Matrix.h.

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

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

Definition at line 541 of file Matrix.h.


Member Data Documentation

template<typename S>
int UpperTriangular< S >::dim [protected]
 

Definition at line 483 of file Matrix.h.

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

Definition at line 484 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